Add some limits to the GF's

Sets the limit for GF's in the preferences panel to 1<=x<=150 and color
it read if gf > 100. Remove the % in the diveplanner view that was
rejected for the preferences view.
The 150 maximum is needed because QSpinBox defaults to maximum 99.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2013-12-05 00:48:37 +01:00 committed by Dirk Hohndel
parent b5d3476b0b
commit a0df62d913
4 changed files with 41 additions and 9 deletions

View file

@ -779,7 +779,14 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="gflow"/>
<widget class="QSpinBox" name="gflow">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>150</number>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_20">
@ -789,7 +796,14 @@
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="gfhigh"/>
<widget class="QSpinBox" name="gfhigh">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>150</number>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="gf_low_at_maxdepth">