diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-03 21:08:49 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-03 21:08:49 +0900 |
commit | b38e2ab485756e33d4d8bbab8baf1969405a1d90 (patch) | |
tree | c3ac889102b6da5ad4c62fd02cbeb697c36c4028 /qt-ui/preferences.h | |
parent | 77c4b8ef87fcbf0fd6be7cdd7581035bb96f0b58 (diff) | |
download | subsurface-b38e2ab485756e33d4d8bbab8baf1969405a1d90.tar.gz |
Tie all the pieces together and make Preferences work as intended
Not Apply / Close without Saving / OK work as designed. And things get
correctly stored and reset.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.h')
-rw-r--r-- | qt-ui/preferences.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/qt-ui/preferences.h b/qt-ui/preferences.h index f50c05c1b..171c41e61 100644 --- a/qt-ui/preferences.h +++ b/qt-ui/preferences.h @@ -20,11 +20,14 @@ signals: public slots: void buttonClicked(QAbstractButton* button); void syncSettings(); - void resetSettings(); + void restorePrefs(); + void rememberPrefs(); private: explicit PreferencesDialog(QWidget* parent = 0, Qt::WindowFlags f = 0); - void reloadPrefs(); + void setUiFromPrefs(); + void setPrefsFromUi(); + void setUIFromSettings(); Ui::PreferencesDialog* ui; struct preferences oldPrefs; }; |