forked from Public/monero-gui
Add a clear payment ID button
This commit is contained in:
@@ -64,6 +64,7 @@ Rectangle {
|
|||||||
integratedAddressLine.text = qsTr("Invalid payment ID")
|
integratedAddressLine.text = qsTr("Invalid payment ID")
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
paymentIdLine.text = ""
|
||||||
integratedAddressLine.text = ""
|
integratedAddressLine.text = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -248,9 +249,20 @@ Rectangle {
|
|||||||
releasedColor: "#FF6C3C"
|
releasedColor: "#FF6C3C"
|
||||||
pressedColor: "#FF4304"
|
pressedColor: "#FF4304"
|
||||||
text: qsTr("Generate") + translationManager.emptyString;
|
text: qsTr("Generate") + translationManager.emptyString;
|
||||||
anchors.right: parent.right
|
|
||||||
onClicked: updatePaymentId()
|
onClicked: updatePaymentId()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StandardButton {
|
||||||
|
id: clearPaymentId
|
||||||
|
enabled: !!paymentIdLine.text
|
||||||
|
width: 80
|
||||||
|
shadowReleasedColor: "#FF4304"
|
||||||
|
shadowPressedColor: "#B32D00"
|
||||||
|
releasedColor: "#FF6C3C"
|
||||||
|
pressedColor: "#FF4304"
|
||||||
|
text: qsTr("Clear") + translationManager.emptyString;
|
||||||
|
onClicked: updatePaymentId("")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|||||||
Reference in New Issue
Block a user