mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
b7daffbf08
commit
c0d16267af
1 changed files with 10 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue