-
- Downloads
Make settings window only save data that changes
Currently, if a user presses 'OK' or 'Apply' on the settings window, it will save all data from all controls on a settings pane, regardless of whether of not they were changed. The major issue with this is that setting the data will overwrite all default values, making it impossible for default values to be used if a user didn't actually change a value. (Thanks to palana for pointing this fact out) So instead, mark a control as 'changed' using QObject::property() and QObject::sender(), and add a few helper functions to controls to ensure that they are checked to see whether they were actually changed directly by the user before saving the value to the config.
Loading
Please register or sign in to comment