summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences/preferencesdialog.cpp
diff options
context:
space:
mode:
authorGravatar willemferguson <willemferguson@zoology.up.ac.za>2019-12-10 15:02:13 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-25 02:57:42 +0900
commit75b5be8f40df3d3b7d354eead0439b53b2490024 (patch)
treeec10df44d61174459c0498ddff7a2bf25d842a8d /desktop-widgets/preferences/preferencesdialog.cpp
parentb6c3cdb20cbcb1654c83d555d278476f55d3d103 (diff)
downloadsubsurface-75b5be8f40df3d3b7d354eead0439b53b2490024.tar.gz
Preferences UI: add reset tab
Add a separate preferences tab for resetting all preferences to their default values. One or two very small alterations to other sections of the preferences UI code. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences/preferencesdialog.cpp')
-rw-r--r--desktop-widgets/preferences/preferencesdialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop-widgets/preferences/preferencesdialog.cpp b/desktop-widgets/preferences/preferencesdialog.cpp
index 7602a3817..7f9f91dd4 100644
--- a/desktop-widgets/preferences/preferencesdialog.cpp
+++ b/desktop-widgets/preferences/preferencesdialog.cpp
@@ -13,6 +13,7 @@
#include "preferences_media.h"
#include "preferences_dc.h"
#include "preferences_log.h"
+#include "preferences_reset.h"
#include "core/qthelper.h"
@@ -52,8 +53,8 @@ PreferencesDialog::PreferencesDialog()
QDialogButtonBox::Apply |
QDialogButtonBox::Cancel);
- pagesList->setMinimumWidth(120);
- pagesList->setMaximumWidth(120);
+ pagesList->setMinimumWidth(140);
+ pagesList->setMaximumWidth(140);
QHBoxLayout *h = new QHBoxLayout();
h->addWidget(pagesList);
@@ -75,6 +76,7 @@ PreferencesDialog::PreferencesDialog()
addPreferencePage(new PreferencesMedia());
addPreferencePage(new PreferencesDc());
addPreferencePage(new PreferencesLog());
+ addPreferencePage(new PreferencesReset());
refreshPages();