From 75b5be8f40df3d3b7d354eead0439b53b2490024 Mon Sep 17 00:00:00 2001 From: willemferguson Date: Tue, 10 Dec 2019 15:02:13 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- desktop-widgets/preferences/preferencesdialog.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'desktop-widgets/preferences/preferencesdialog.cpp') 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(); -- cgit v1.2.3-70-g09d2