[PATCH] Preferences: Add some units and limits to the GF's

Anton Lundin glance at acc.umu.se
Sat Nov 16 02:51:58 UTC 2013


Sets the limit for GF's in the preferences panel to 1<=x<=100 and add a
% as unit.

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

diff --git a/qt-ui/preferences.ui b/qt-ui/preferences.ui
index 7e071fa..444577d 100644
--- a/qt-ui/preferences.ui
+++ b/qt-ui/preferences.ui
@@ -751,7 +751,17 @@
              </widget>
             </item>
             <item row="0" column="1">
-             <widget class="QSpinBox" name="gflow"/>
+             <widget class="QSpinBox" name="gflow">
+              <property name="suffix">
+               <string>%</string>
+              </property>
+              <property name="minimum">
+               <number>1</number>
+              </property>
+              <property name="maximum">
+               <number>100</number>
+              </property>
+             </widget>
             </item>
             <item row="1" column="0">
              <widget class="QLabel" name="label_20">
@@ -761,7 +771,17 @@
              </widget>
             </item>
             <item row="1" column="1">
-             <widget class="QSpinBox" name="gfhigh"/>
+             <widget class="QSpinBox" name="gfhigh">
+              <property name="suffix">
+               <string>%</string>
+              </property>
+              <property name="minimum">
+               <number>1</number>
+              </property>
+              <property name="maximum">
+               <number>100</number>
+              </property>
+             </widget>
             </item>
            </layout>
           </widget>
-- 
1.8.3.2



More information about the subsurface mailing list