From e22a452cf51297f452766c0cee507b9c589dc3a3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 20 Feb 2016 21:50:11 -0800 Subject: [PATCH] QML UI: don't allow negative duration or depth Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveDetailsEdit.qml | 2 ++ 1 file changed, 2 insertions(+) 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 {