summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.h
diff options
context:
space:
mode:
authorGravatar Yosef Hamza <jo.adam.93@gmail.com>2014-04-13 18:19:15 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-14 05:16:31 -0700
commitad9eb73d73b0200150d34807616ebcc8dd2a4b4f (patch)
tree7359b595479838a8a2c7fec1687a09ec2ff261eb /qt-ui/maintab.h
parentf46e2803ebabb05d5988050660992c2b0b54a8b1 (diff)
downloadsubsurface-ad9eb73d73b0200150d34807616ebcc8dd2a4b4f.tar.gz
Mark Air/Water temp field red for wrong input.
As a warining for the user mark the field red. If the user inputs invalid input that will be ignored while parsing. But with adding a one character error margin to prevent it from toggling between Red and Yellow while editing existing values, for example "After Deleting unit and last number after '.'" Signed-off-by: Yousef Hamza <jo.adam.93@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r--qt-ui/maintab.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h
index eee07a31d..4a0b0b9c5 100644
--- a/qt-ui/maintab.h
+++ b/qt-ui/maintab.h
@@ -81,6 +81,7 @@ slots:
void on_notes_textChanged();
void on_airtemp_textChanged(const QString &text);
void on_watertemp_textChanged(const QString &text);
+ void validate_temp_field(QLineEdit *tempField,const QString &text);
void on_dateTimeEdit_dateTimeChanged(const QDateTime &datetime);
void on_rating_valueChanged(int value);
void on_visibility_valueChanged(int value);