mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
transfer: change description/pid checkbox
This commit is contained in:
parent
e81cb7e640
commit
9b7adfc0a8
1 changed files with 47 additions and 50 deletions
|
@ -304,19 +304,45 @@ Rectangle {
|
|||
}
|
||||
|
||||
ColumnLayout {
|
||||
visible: appWindow.persistentSettings.showPid || paymentIdCheckbox.checked
|
||||
spacing: 15
|
||||
|
||||
ColumnLayout {
|
||||
CheckBox {
|
||||
id: descriptionCheckbox
|
||||
border: false
|
||||
checkedIcon: "qrc:///images/plus-in-circle-medium-white.png"
|
||||
uncheckedIcon: "qrc:///images/plus-in-circle-medium-white.png"
|
||||
fontSize: descriptionLine.labelFontSize
|
||||
iconOnTheLeft: true
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Add description") + translationManager.emptyString
|
||||
onClicked: {
|
||||
if (!descriptionCheckbox.checked) {
|
||||
descriptionLine.text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LineEditMulti {
|
||||
id: descriptionLine
|
||||
placeholderText: qsTr("Saved to local wallet history") + translationManager.emptyString
|
||||
Layout.fillWidth: true
|
||||
visible: descriptionCheckbox.checked
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
visible: appWindow.persistentSettings.showPid || paymentIdCheckbox.checked
|
||||
// @TODO: remove after pid removal hardfork
|
||||
CheckBox {
|
||||
id: paymentIdCheckbox
|
||||
border: false
|
||||
checkedIcon: "qrc:///images/minus-white.png"
|
||||
uncheckedIcon: "qrc:///images/plus-white.png"
|
||||
imgWidth: 12
|
||||
imgHeight: 12
|
||||
checkedIcon: "qrc:///images/plus-in-circle-medium-white.png"
|
||||
uncheckedIcon: "qrc:///images/plus-in-circle-medium-white.png"
|
||||
fontSize: paymentIdLine.labelFontSize
|
||||
iconOnTheLeft: false
|
||||
iconOnTheLeft: true
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Payment ID <font size='2'>( Optional )</font>") + translationManager.emptyString
|
||||
text: qsTr("Add payment ID") + translationManager.emptyString
|
||||
onClicked: {
|
||||
if (!paymentIdCheckbox.checked) {
|
||||
paymentIdLine.text = "";
|
||||
|
@ -335,35 +361,6 @@ Rectangle {
|
|||
visible: paymentIdCheckbox.checked
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
CheckBox {
|
||||
id: descriptionCheckbox
|
||||
border: false
|
||||
checkedIcon: "qrc:///images/minus-white.png"
|
||||
uncheckedIcon: "qrc:///images/plus-white.png"
|
||||
imgWidth: 12
|
||||
imgHeight: 12
|
||||
fontSize: descriptionLine.labelFontSize
|
||||
iconOnTheLeft: false
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Description <font size='2'>( Optional )</font>") + translationManager.emptyString
|
||||
onClicked: {
|
||||
if (!descriptionCheckbox.checked) {
|
||||
descriptionLine.text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LineEditMulti {
|
||||
id: descriptionLine
|
||||
placeholderText: qsTr("Saved to local wallet history") + translationManager.emptyString
|
||||
Layout.fillWidth: true
|
||||
visible: descriptionCheckbox.checked
|
||||
onTextChanged: {
|
||||
paymentIdWarningBox.visible = walletManager.paymentIdValid(text) && !persistentSettings.showPid
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MoneroComponents.WarningBox {
|
||||
|
|
Loading…
Reference in a new issue