-
Notifications
You must be signed in to change notification settings - Fork 22
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
Use KConfig (this commit will probably fail here) #106
base: master
Are you sure you want to change the base?
Conversation
This is uneeded, we can set this directly on the constructor. The element will be sligtly bigger as it's holding the two values, but the overall code is simpler to reason with and smaller
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
7b71739
to
5904d92
Compare
It can have an undefined behavior.
It can have an undefined behavior.
It can have an undefined behavior.
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Signed-off-by: Patrick José Pereira <[email protected]>
Moved vars to private and created access functions.
Organized public, private and protected repeating. This class is inherited by all classes in app/element/ and ic.cpp
can you rebase this to update the CI? master now should be able to compile. |
Removed all QSettings and changed to KConfig: CMakeLists bewaveddolphin icmanager mainwindow recentfilescontroller simplewaveform thememanager Created the config files: wpanda.kcfg WPandaSettings.kcfgc Created auxiliary functions in globalproperties
The WPandaSetting is static now.
04161ab
to
9efcc78
Compare
Is there a good reason to use On the differences between both, KDE states:
Which aren't features we seem to be in need of. If KConfig isn't super necessary then we should probably pass on adding another build and runtime dependency Edit: @tcanabrava has now told me about the additional security KConfig offers |
Just as a complementary explanation, as when I explained to @vrmiguel I was mostly sleeping at 2am. This is KConfigXt, not KConfig. KConfigXT is a configurator generator that makes impossible for you to use the wrong config, and it also gives the application a coherent way to define configurations. KConfig is the same thing as QSettings with the same possible errors. The problems that happen with QSettings:
It's also extermely dangerous to use string identification for settings:
It's easy to spot the typo in contest / context. but it's not easy to spot the typo with 20 other settings laying around. |
Is this program still being ported to KDE? |
This build will fail if the process flow does not install KDE framworks.
Change all QSettings to use KConfig
Changed the mainwindow to add missing prefixes, there was no change to use static KConfig from last commit.