From c0d16267afd66e03591a449d9fa4bff78903b203 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 17 Sep 2015 17:57:41 -0300 Subject: Preferences: Apply / Cancel / Defaults All functions that should control the preferences are created. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- desktop-widgets/preferences/preferencesdialog.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'desktop-widgets') 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(); + } } -- cgit v1.2.3-70-g09d2