diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-09-17 17:57:41 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-30 10:36:50 -0700 |
commit | c0d16267afd66e03591a449d9fa4bff78903b203 (patch) | |
tree | 65e844686e8419e90967cf43634ccc911c3a2061 /desktop-widgets/preferences | |
parent | b7daffbf084c44b099c9d1f84fb3935ce5735b39 (diff) | |
download | subsurface-c0d16267afd66e03591a449d9fa4bff78903b203.tar.gz |
Preferences: Apply / Cancel / Defaults
All functions that should control the preferences are
created.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences')
-rw-r--r-- | desktop-widgets/preferences/preferencesdialog.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/desktop-widgets/preferences/preferencesdialog.cpp b/desktop-widgets/preferences/preferencesdialog.cpp index e21207761..a50e6c406 100644 --- a/desktop-widgets/preferences/preferencesdialog.cpp +++ b/desktop-widgets/preferences/preferencesdialog.cpp @@ -86,15 +86,22 @@ void PreferencesDialogV2::refreshPages() void PreferencesDialogV2::applyRequested() { - qDebug() << "Apply Clicked"; + Q_FOREACH(AbstractPreferencesWidget *page, pages) { + page->syncSettings(); + } } void PreferencesDialogV2::cancelRequested() { - qDebug() << "Cancel Clicked"; + Q_FOREACH(AbstractPreferencesWidget *page, pages) { + page->refreshSettings(); + } } void PreferencesDialogV2::defaultsRequested() { - qDebug() << "Defaults Clicked"; + prefs = default_prefs; + Q_FOREACH(AbstractPreferencesWidget *page, pages) { + page->refreshSettings(); + } } |