mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: don't allow negative duration or depth
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
38ab11a6c0
commit
e22a452cf5
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue