1
0

qml: add FeePicker manual fee/feerate input validators

This commit is contained in:
Sander van Grieken
2025-12-17 12:09:07 +01:00
parent 7ef605ee5c
commit fffcf4a90b

View File

@@ -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
}