qml: add FeePicker manual fee/feerate input validators
This commit is contained in:
@@ -140,6 +140,9 @@ Item {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: finalizer.userFeerate
|
text: finalizer.userFeerate
|
||||||
inputMethodHints: Qt.ImhDigitsOnly
|
inputMethodHints: Qt.ImhDigitsOnly
|
||||||
|
validator: RegularExpressionValidator {
|
||||||
|
regularExpression: /^[0-9]*\.[0-9]?$/
|
||||||
|
}
|
||||||
onTextEdited: {
|
onTextEdited: {
|
||||||
finalizer.userFeerate = text
|
finalizer.userFeerate = text
|
||||||
}
|
}
|
||||||
@@ -156,6 +159,9 @@ Item {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: finalizer.userFee
|
text: finalizer.userFee
|
||||||
inputMethodHints: Qt.ImhDigitsOnly
|
inputMethodHints: Qt.ImhDigitsOnly
|
||||||
|
validator: RegularExpressionValidator {
|
||||||
|
regularExpression: /^[0-9]*$/
|
||||||
|
}
|
||||||
onTextEdited: {
|
onTextEdited: {
|
||||||
finalizer.userFee = text
|
finalizer.userFee = text
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user