aboutsummaryrefslogtreecommitdiff
path: root/components/StandardDialog.qml
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/StandardDialog.qml
parente6ada22611dcdb34dbba3298dc1597fd04e29590 (diff)
downloadmonzero-gui-2170f6a46d42704f5fe1b0ff04bf7a9a5992804f.tar.gz
monzero-gui-2170f6a46d42704f5fe1b0ff04bf7a9a5992804f.tar.xz
monzero-gui-2170f6a46d42704f5fe1b0ff04bf7a9a5992804f.zip
Improve copy text handling
Diffstat (limited to 'components/StandardDialog.qml')
-rw-r--r--components/StandardDialog.qml15
1 files changed, 15 insertions, 0 deletions
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)
+ }
+ }
}
}