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