summaryrefslogtreecommitdiffstats
path: root/qt-ui/preferences.h
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-12-05 00:48:37 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-04 15:49:55 -0800
commita0df62d913a8bfc54aae0c7b69a3197bdfae3dd5 (patch)
treea82134e53650111508fb34f9cc2db019d574d857 /qt-ui/preferences.h
parentb5d3476b0ba881699c604a3d97c5801b8bb99a08 (diff)
downloadsubsurface-a0df62d913a8bfc54aae0c7b69a3197bdfae3dd5.tar.gz
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>
Diffstat (limited to 'qt-ui/preferences.h')
-rw-r--r--qt-ui/preferences.h3
1 files changed, 3 insertions, 0 deletions
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);