Re: local settings
Posted by
LordOfBikes on
May 12, 2015; 10:20pm
URL: https://forum.librecad.org/local-settings-tp5711509p5711515.html
As we already use the QSettings class from Qt to make things platform independent, we should not force the user to fiddle around in the registry or delete config files in hidden folders.
We should offer a function, e.g. in application preferences, to reset all settings. QSettings has the ability to remove whole groups, independent from OS. So we can delete whole groups or overwrite keys with a set of hard coded default values for that.
I don't stay on top of LibreCAD settings, to decide which way is better, removing or overwriting. But I remember, that I've recognised RS_Settings class as a refactoring candidate in past.
Another idea I had recently is an expert view for preferences. Many programs offer these editable table views of preferences which are not included in the standard GUI screens. But I'm not sure if there is a good solution with QSettings/RS_Settings classes. This may need a move to a database for storing settings, e.g. SQLite, which is supported by Qt.
Armin
investing less than half an hour into Search function can save hours or days of waiting for a solution