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

Dirk Hohndel dirk at hohndel.org
Sat Nov 16 08:09:04 UTC 2013


I took the patch, but I wonder about the '%' unit... I usually see
gradient factors just given as 30/70 or something like this, not as
30%/70%

What do others think?

/D

On Sat, 2013-11-16 at 11:51 +0100, Anton Lundin wrote:
> 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>




More information about the subsurface mailing list