QML UI: don't allow negative duration or depth

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-02-20 21:50:11 -08:00
parent 38ab11a6c0
commit e22a452cf5

View file

@ -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 {