diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-11-13 09:03:02 -0600 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-11-13 09:03:02 -0600 |
| commit | 8bd820b9099679f91fb0c542eb9edfd71a720332 (patch) | |
| tree | 9a0faed7cc20e81dc197bba305327dc90dd5e90e /components/LineEditMulti.qml | |
| parent | f948d0e21443e0ffc913b7c2b65a87400c4d8fe3 (diff) | |
| parent | 74e12ce71d00e7e9aea43a985e8a9dbfc4ad0844 (diff) | |
| download | monzero-gui-8bd820b9099679f91fb0c542eb9edfd71a720332.tar.gz monzero-gui-8bd820b9099679f91fb0c542eb9edfd71a720332.tar.xz monzero-gui-8bd820b9099679f91fb0c542eb9edfd71a720332.zip | |
Merge pull request #2429
74e12ce ContextMenu: implement 'paste' context menu for all text fields (xiphon)
Diffstat (limited to 'components/LineEditMulti.qml')
| -rw-r--r-- | components/LineEditMulti.qml | 8 |
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 } |
