aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-11-02 07:51:15 +0100
committerJaquee <jaquee.monero@gmail.com>2017-11-03 16:57:12 +0100
commit2170f6a46d42704f5fe1b0ff04bf7a9a5992804f (patch)
tree4e44336b8ee08d93c58f3d08eddbf9fe0411ca34 /components
parente6ada22611dcdb34dbba3298dc1597fd04e29590 (diff)
downloadmonzero-gui-2170f6a46d42704f5fe1b0ff04bf7a9a5992804f.tar.gz
monzero-gui-2170f6a46d42704f5fe1b0ff04bf7a9a5992804f.tar.xz
monzero-gui-2170f6a46d42704f5fe1b0ff04bf7a9a5992804f.zip
Improve copy text handling
Diffstat (limited to 'components')
-rw-r--r--components/AddressBookTable.qml4
-rw-r--r--components/StandardDialog.qml15
2 files changed, 18 insertions, 1 deletions
diff --git a/components/AddressBookTable.qml b/components/AddressBookTable.qml
index abf72371..4d281440 100644
--- a/components/AddressBookTable.qml
+++ b/components/AddressBookTable.qml
@@ -144,8 +144,10 @@ ListView {
onOptionClicked: {
// Ensure tooltip is closed
appWindow.toolTip.visible = false;
- if(option === 0)
+ if(option === 0) {
clipboard.setText(address)
+ appWindow.showStatusMessage(qsTr("Address copied to clipboard"),3)
+ }
else if(option === 1){
console.log("Sending to: ", address +" "+ paymentId);
middlePanel.sendTo(address, paymentId, description);
diff --git a/components/StandardDialog.qml b/components/StandardDialog.qml
index d3e14b29..044c0a5c 100644
--- a/components/StandardDialog.qml
+++ b/components/StandardDialog.qml
@@ -113,6 +113,21 @@ Rectangle {
textFormat: TextEdit.AutoText
readOnly: true
font.pixelSize: 12 * scaleRatio
+ selectByMouse: false
+
+ 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("Content copied to clipboard"),3)
+ }
+ }
}
}