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>
This commit is contained in:
Tomaz Canabrava 2015-09-17 17:57:41 -03:00 committed by Dirk Hohndel
parent b7daffbf08
commit c0d16267af

View file

@ -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();
}
}