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 {
|
TextField {
|
||||||
id: txtDepth
|
id: txtDepth
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
validator: RegExpValidator { regExp: /[^-]*/ }
|
||||||
}
|
}
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
|
@ -113,6 +114,7 @@ Item {
|
||||||
TextField {
|
TextField {
|
||||||
id: txtDuration
|
id: txtDuration
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
validator: RegExpValidator { regExp: /[^-]*/ }
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileComponents.Label {
|
MobileComponents.Label {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue