diff options
author | willemferguson <willemferguson@zoology.up.ac.za> | 2019-11-28 10:47:12 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-03 20:37:57 -0800 |
commit | 7dc8a9850db1f33fcccdfec393b431c50ff05b42 (patch) | |
tree | d6f13eb616a6d5bfcf221650734fb5c92ee64bd9 /desktop-widgets/preferences | |
parent | 33e49637ec6a99c50ad56bfbfc88b4e925d01e7d (diff) | |
download | subsurface-7dc8a9850db1f33fcccdfec393b431c50ff05b42.tar.gz |
Desktop: handle environmental states in Information tab
Create a preference setting on the General Settings page. The setting is saved
with the other preferences.
Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences')
-rw-r--r-- | desktop-widgets/preferences/preferences_defaults.cpp | 2 | ||||
-rw-r--r-- | desktop-widgets/preferences/preferences_defaults.ui | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/desktop-widgets/preferences/preferences_defaults.cpp b/desktop-widgets/preferences/preferences_defaults.cpp index c11927af8..f439b0702 100644 --- a/desktop-widgets/preferences/preferences_defaults.cpp +++ b/desktop-widgets/preferences/preferences_defaults.cpp @@ -138,6 +138,7 @@ void PreferencesDefaults::refreshSettings() ui->extractVideoThumbnails->setChecked(qPrefGeneral::extract_video_thumbnails()); ui->videoThumbnailPosition->setValue(qPrefGeneral::extract_video_thumbnails_position()); ui->ffmpegExecutable->setText(qPrefGeneral::ffmpeg_executable()); + ui->extraEnvironmentalDefault->setChecked(prefs.extraEnvironmentalDefault); } void PreferencesDefaults::syncSettings() @@ -160,4 +161,5 @@ void PreferencesDefaults::syncSettings() qPrefDisplay::set_font_size(ui->fontsize->value()); qPrefDisplay::set_display_invalid_dives(ui->displayinvalid->isChecked()); qPrefDisplay::set_animation_speed(ui->velocitySlider->value()); + qPrefGeneral::set_extraEnvironmentalDefault(ui->extraEnvironmentalDefault->isChecked()); } diff --git a/desktop-widgets/preferences/preferences_defaults.ui b/desktop-widgets/preferences/preferences_defaults.ui index 7fcd53a36..b1538f33d 100644 --- a/desktop-widgets/preferences/preferences_defaults.ui +++ b/desktop-widgets/preferences/preferences_defaults.ui @@ -306,6 +306,22 @@ </widget> </item> <item> + <widget class="QGroupBox" name="groupBox_extra_star_widgets"> + <property name="title"> + <string>Environmental parameters in Information tab</string> + </property> + <layout class="QHBoxLayout" name="extraWidgetLayout"> + <item> + <widget class="QCheckBox" name="extraEnvironmentalDefault"> + <property name="text"> + <string>Show extended range of environmental paramaters</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> <spacer name="verticalSpacer_2"> <property name="orientation"> <enum>Qt::Vertical</enum> |