summaryrefslogtreecommitdiffstats
path: root/qt-ui/preferences.ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-29 15:32:31 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-29 15:32:31 +0900
commitda52ff56b2cc2b4aecda03b4f21f94ce3ff0ce22 (patch)
treefaf2bd2a5fc72f4f017f5b7a02285d8b835c6579 /qt-ui/preferences.ui
parentc78d0ad51b2495b4807ae999667b44432a05cb3b (diff)
downloadsubsurface-da52ff56b2cc2b4aecda03b4f21f94ce3ff0ce22.tar.gz
Correct the ceiling preference handling
Added the red dc ceiling as preference option. Hooked them all up together so the sub-preferences are enabled when the master preference is set (for 3m and red ceiling). Use the options in the profile plotting functions. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.ui')
-rw-r--r--qt-ui/preferences.ui55
1 files changed, 49 insertions, 6 deletions
diff --git a/qt-ui/preferences.ui b/qt-ui/preferences.ui
index c442f5d2c..348e62ecd 100644
--- a/qt-ui/preferences.ui
+++ b/qt-ui/preferences.ui
@@ -593,12 +593,39 @@
</widget>
</item>
<item>
- <widget class="QCheckBox" name="dc_reported_ceiling">
- <property name="text">
- <string>Dive computer reported ceiling</string>
- </property>
- </widget>
- </item>
+ <layout class="QHBoxLayout" name="horizontalLayout_10b">
+ <item>
+ <widget class="QCheckBox" name="dc_reported_ceiling">
+ <property name="text">
+ <string>Dive computer reported ceiling</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_6b">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="red_ceiling">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>draw ceiling red</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
@@ -864,6 +891,22 @@
</hints>
</connection>
<connection>
+ <sender>dc_ceiling</sender>
+ <signal>clicked(bool)</signal>
+ <receiver>red_ceiling</receiver>
+ <slot>setEnabled(bool)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>288</x>
+ <y>364</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>555</x>
+ <y>371</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
<sender>calculated_ceiling</sender>
<signal>clicked(bool)</signal>
<receiver>increment_3m</receiver>