summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile')
-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 {