forked from Public/monero-gui
Improve copy text handling
This commit is contained in:
@@ -75,10 +75,14 @@ Rectangle {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
appWindow.showStatusMessage(qsTr("Double tap to copy"),3)
|
||||
}
|
||||
onDoubleClicked: {
|
||||
parent.selectAll()
|
||||
parent.copy()
|
||||
parent.deselect()
|
||||
console.log("copied to clipboard");
|
||||
appWindow.showStatusMessage(qsTr("Seed copied to clipboard"),3)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -105,10 +109,14 @@ Rectangle {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
appWindow.showStatusMessage(qsTr("Double tap to copy"),3)
|
||||
}
|
||||
onDoubleClicked: {
|
||||
parent.selectAll()
|
||||
parent.copy()
|
||||
parent.deselect()
|
||||
console.log("copied to clipboard");
|
||||
appWindow.showStatusMessage(qsTr("Keys copied to clipboard"),3)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -205,6 +205,7 @@ Rectangle {
|
||||
if (addressLine.text.length > 0) {
|
||||
console.log(addressLine.text + " copied to clipboard")
|
||||
clipboard.setText(addressLine.text)
|
||||
appWindow.showStatusMessage(qsTr("Address copied to clipboard"),3)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -237,6 +238,7 @@ Rectangle {
|
||||
onClicked: {
|
||||
if (paymentIdLine.text.length > 0) {
|
||||
clipboard.setText(paymentIdLine.text)
|
||||
appWindow.showStatusMessage(qsTr("Payment ID copied to clipboard"),3)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -289,6 +291,7 @@ Rectangle {
|
||||
onClicked: {
|
||||
if (integratedAddressLine.text.length > 0) {
|
||||
clipboard.setText(integratedAddressLine.text)
|
||||
appWindow.showStatusMessage(qsTr("Integrated address copied to clipboard"),3)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user