summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-20 21:50:11 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-20 21:50:11 -0800
commite22a452cf51297f452766c0cee507b9c589dc3a3 (patch)
tree1c29aa64d6f8abd34dda350b54085ef6f7bb9dbc
parent38ab11a6c0299fb55944bdb1438d9ac357682d4d (diff)
downloadsubsurface-e22a452cf51297f452766c0cee507b9c589dc3a3.tar.gz
QML UI: don't allow negative duration or depth
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-mobile/qml/DiveDetailsEdit.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveDetailsEdit.qml b/qt-mobile/qml/DiveDetailsEdit.qml
index de9d84262..2c7baf3e1 100644
--- a/qt-mobile/qml/DiveDetailsEdit.qml
+++ b/qt-mobile/qml/DiveDetailsEdit.qml
@@ -105,6 +105,7 @@ Item {
TextField {
id: txtDepth
Layout.fillWidth: true
+ validator: RegExpValidator { regExp: /[^-]*/ }
}
MobileComponents.Label {
Layout.alignment: Qt.AlignRight
@@ -113,6 +114,7 @@ Item {
TextField {
id: txtDuration
Layout.fillWidth: true
+ validator: RegExpValidator { regExp: /[^-]*/ }
}
MobileComponents.Label {