[PATCH 1/9] Set limits for Saturation/Desaturation on OSTC3

Anton Lundin glance at acc.umu.se
Wed Oct 15 16:13:50 PDT 2014


The default max value for a QSpinBox is 99. The default Saturation
factor for the OSTC3 is 110%. This code sets the max, min and default
values on those spinboxes.
The values comes from me reading the assembler code for the OSTC3.

Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 qt-ui/configuredivecomputerdialog.ui | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/qt-ui/configuredivecomputerdialog.ui b/qt-ui/configuredivecomputerdialog.ui
index b8092b3..ea836f4 100644
--- a/qt-ui/configuredivecomputerdialog.ui
+++ b/qt-ui/configuredivecomputerdialog.ui
@@ -354,8 +354,14 @@
               <property name="suffix">
                <string>%</string>
               </property>
+              <property name="minimum">
+               <number>100</number>
+              </property>
               <property name="maximum">
-               <number>255</number>
+               <number>140</number>
+              </property>
+              <property name="value">
+               <number>110</number>
               </property>
              </widget>
             </item>
@@ -374,8 +380,14 @@
               <property name="suffix">
                <string>%</string>
               </property>
+              <property name="minimum">
+               <number>60</number>
+              </property>
               <property name="maximum">
-               <number>255</number>
+               <number>100</number>
+              </property>
+              <property name="value">
+               <number>90</number>
               </property>
              </widget>
             </item>
-- 
1.9.1



More information about the subsurface mailing list