From a0df62d913a8bfc54aae0c7b69a3197bdfae3dd5 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 5 Dec 2013 00:48:37 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/preferences.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/preferences.h') diff --git a/qt-ui/preferences.h b/qt-ui/preferences.h index fb0fcbc94..dbc17cb9f 100644 --- a/qt-ui/preferences.h +++ b/qt-ui/preferences.h @@ -22,6 +22,9 @@ public slots: void syncSettings(); void restorePrefs(); void rememberPrefs(); + void gflowChanged(int gf); + void gfhighChanged(int gf); + private: explicit PreferencesDialog(QWidget* parent = 0, Qt::WindowFlags f = 0); -- cgit v1.2.3-70-g09d2