Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving centered text in table config file does not work #283

Open
titanic-jb opened this issue Apr 1, 2024 · 1 comment
Open

Saving centered text in table config file does not work #283

titanic-jb opened this issue Apr 1, 2024 · 1 comment

Comments

@titanic-jb
Copy link

I was creating a Bill of Materials (bom for short) table via the menu in Project --> Add a Nomenclature.

I changed the alignment of the header text to be centered.

Than I saved the configuration by defining a file name (jb-bom) and clicking the floppy icon to save it.

In the next project, I clicked on the drop down list, selected the saved file jb-bom and most of the configuration was re-established, except the centered headings.

I found file graphics-table.json in ~/.qet. When opening the file in an editor, I found this text inside:

{
    "jb-bom": {
        "header": {
            "alignment": "AlignHCenter",
            "font": "Sans Serif,9,-1,5,50,0,0,0,0,0",
            "margins": "5;5;10;5"
        },
        "table": {
            "alignment": "AlignLeft",
            "font": "Sans Serif,9,-1,5,50,0,0,0,0,0",
            "margins": "5;5;10;5"
        }
    },
}

Changing the alignment line from "alignment": "AlignHCenter", to "alignment": "AlignCenter", and restarting QElectroTech did the trick to me.

I was working with version 0.9 on MacOS. I downloaded the lastet dev, with the same result. Saving the config also writes AlignHCenter to the json file.

QElectroTech V 0.100.0-dev
Compilation : CLANG 14.0.0 (clang-1400.0.29.102)
Built with Qt 5.15.12 - arm64 - Date : Mar 18 2024 : 09:36:28
Git Revision : a2beabd

Besides that: great job everybody. I enjoyed drafting the last couple of days in QET very much! Thank you all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants