diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-02-20 21:50:11 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-20 21:50:11 -0800 |
commit | e22a452cf51297f452766c0cee507b9c589dc3a3 (patch) | |
tree | 1c29aa64d6f8abd34dda350b54085ef6f7bb9dbc /qt-mobile/qml/DiveDetailsEdit.qml | |
parent | 38ab11a6c0299fb55944bdb1438d9ac357682d4d (diff) | |
download | subsurface-e22a452cf51297f452766c0cee507b9c589dc3a3.tar.gz |
QML UI: don't allow negative duration or depth
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetailsEdit.qml')
-rw-r--r-- | qt-mobile/qml/DiveDetailsEdit.qml | 2 |
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 { |