aboutsummaryrefslogtreecommitdiff
path: root/components/LineEditMulti.qml
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-11-08 00:56:10 +0000
committerxiphon <xiphon@protonmail.com>2019-11-08 12:41:32 +0000
commit74e12ce71d00e7e9aea43a985e8a9dbfc4ad0844 (patch)
tree917f48165df3aabf85a1e82211f6ad1668213c18 /components/LineEditMulti.qml
parent7f7a39292c57f9b51090005d8a8e39297d988e0b (diff)
downloadmonzero-gui-74e12ce71d00e7e9aea43a985e8a9dbfc4ad0844.tar.gz
monzero-gui-74e12ce71d00e7e9aea43a985e8a9dbfc4ad0844.tar.xz
monzero-gui-74e12ce71d00e7e9aea43a985e8a9dbfc4ad0844.zip
ContextMenu: implement 'paste' context menu for all text fields
Diffstat (limited to 'components/LineEditMulti.qml')
-rw-r--r--components/LineEditMulti.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/LineEditMulti.qml b/components/LineEditMulti.qml
index 266c6a30..46052495 100644
--- a/components/LineEditMulti.qml
+++ b/components/LineEditMulti.qml
@@ -80,9 +80,6 @@ ColumnLayout {
property alias readOnly: input.readOnly
property bool copyButton: false
property bool pasteButton: false
- property var onPaste: function(clipboardText) {
- item.text = clipboardText;
- }
property bool showingHeader: labelText != "" || copyButton || pasteButton
property var wrapMode: Text.NoWrap
property alias addressValidation: input.addressValidation
@@ -146,7 +143,10 @@ ColumnLayout {
MoneroComponents.LabelButton {
id: pasteButtonId
- onClicked: item.onPaste(clipboard.text())
+ onClicked: {
+ input.clear();
+ input.paste();
+ }
text: qsTr("Paste") + translationManager.emptyString
visible: pasteButton
}