summaryrefslogtreecommitdiffstats
path: root/framework/qml/SelectableLabel.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-08-03 21:03:52 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-08-03 21:03:52 -0600
commitf70fb14b36c2d6af498f31c36b5fd5d8beb827f4 (patch)
tree0d8571811fb73f02661c8f4e2c2949529acebc80 /framework/qml/SelectableLabel.qml
parent26675cf7af9198941210fd0db664d74dc3401712 (diff)
downloadkube-f70fb14b36c2d6af498f31c36b5fd5d8beb827f4.tar.gz
kube-f70fb14b36c2d6af498f31c36b5fd5d8beb827f4.zip
auto-close the menu when something has been selected
Diffstat (limited to 'framework/qml/SelectableLabel.qml')
-rw-r--r--framework/qml/SelectableLabel.qml5
1 files changed, 1 insertions, 4 deletions
diff --git a/framework/qml/SelectableLabel.qml b/framework/qml/SelectableLabel.qml
index 159a717f..4bb4eae9 100644
--- a/framework/qml/SelectableLabel.qml
+++ b/framework/qml/SelectableLabel.qml
@@ -30,10 +30,7 @@ Kube.Label {
30 Kube.TextButton { 30 Kube.TextButton {
31 id: button 31 id: button
32 text: qsTr("Copy") 32 text: qsTr("Copy")
33 onClicked: { 33 onClicked: clipboard.text = root.text
34 clipboard.text = root.text
35 menu.close()
36 }
37 Kube.Clipboard { 34 Kube.Clipboard {
38 id: clipboard 35 id: clipboard
39 } 36 }