diff options
Diffstat (limited to 'components/StandardDialog.qml')
| -rw-r--r-- | components/StandardDialog.qml | 15 |
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) + } + } } } |
