use regex for value input

This commit is contained in:
cryptochangements34
2018-05-11 18:56:04 -04:00
parent a7e99dc08a
commit d003b255b9
2 changed files with 5 additions and 13 deletions

View File

@@ -193,12 +193,8 @@ Rectangle {
inlineButtonText: qsTr("All") + translationManager.emptyString
inlineButton.onClicked: amountLine.text = "(all)"
validator: DoubleValidator {
bottom: 0.0
top: 18446744.073709551615
decimals: 12
notation: DoubleValidator.StandardNotation
locale: "C"
validator: RegExpValidator {
regExp: /(\d{1,8})([.]\d{1,12})?$/
}
}
}