diff options
author | willemferguson <willemferguson@zoology.up.ac.za> | 2019-12-10 15:02:13 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-25 02:57:42 +0900 |
commit | 75b5be8f40df3d3b7d354eead0439b53b2490024 (patch) | |
tree | ec10df44d61174459c0498ddff7a2bf25d842a8d /desktop-widgets/preferences/preferences_reset.ui | |
parent | b6c3cdb20cbcb1654c83d555d278476f55d3d103 (diff) | |
download | subsurface-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/preferences_reset.ui')
-rw-r--r-- | desktop-widgets/preferences/preferences_reset.ui | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/desktop-widgets/preferences/preferences_reset.ui b/desktop-widgets/preferences/preferences_reset.ui new file mode 100644 index 000000000..c9e53dd5f --- /dev/null +++ b/desktop-widgets/preferences/preferences_reset.ui @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>PreferencesReset</class> + <widget class="QWidget" name="PreferencesReset"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>561</width> + <height>558</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <layout class="QGridLayout" name="gridLayout"> + + + + + <item row="0" column="0" colspan="2"> + <layout class="QHBoxLayout" name="horizontalLayout"> + + <item> + <widget class="QLabel" name="resetWarningIcon"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Maximum"> + </sizepolicy> + </property> + </widget> + </item> + + <item> + <widget class="QLabel" name="warningLabel"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="text"> + <string>Selecting this button will reset all settings to their default values</string> + </property> + </widget> + </item> + + </layout> + </item> + + <item row="1" column="0"> + <widget class="QPushButton" name="resetSettings"> + <property name="text"> + <string>Reset all settings</string> + </property> + </widget> + </item> + + <item row="2" column="0">> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>0</width> + <height>195</height> + </size> + </property> + </spacer> + </item> + + </layout> + </widget> + <resources/> + <connections> + </connections> +</ui> |