diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-06-08 14:21:08 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-06-08 14:21:08 +0200 |
commit | 55d17efe983ed3720f3e6f2e1ab04b6dedd28191 (patch) | |
tree | bd187bd483ecf00c03d50eb93d5dcec42cbb6f30 | |
parent | 5c6522d10c8cd29ebec28db03eac588a66f6c473 (diff) | |
download | kube-55d17efe983ed3720f3e6f2e1ab04b6dedd28191.tar.gz kube-55d17efe983ed3720f3e6f2e1ab04b6dedd28191.zip |
open attachment, when clicking on it instead of the button
-rw-r--r-- | framework/qml/AttachmentDelegate.qml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/framework/qml/AttachmentDelegate.qml b/framework/qml/AttachmentDelegate.qml index a1785527..508c6aa8 100644 --- a/framework/qml/AttachmentDelegate.qml +++ b/framework/qml/AttachmentDelegate.qml | |||
@@ -37,6 +37,12 @@ Item { | |||
37 | color: Kube.Colors.disabledTextColor | 37 | color: Kube.Colors.disabledTextColor |
38 | } | 38 | } |
39 | 39 | ||
40 | MouseArea { | ||
41 | anchors.fill: parent | ||
42 | |||
43 | onClicked: root.open() | ||
44 | } | ||
45 | |||
40 | Row { | 46 | Row { |
41 | id: content | 47 | id: content |
42 | anchors.centerIn: parent | 48 | anchors.centerIn: parent |
@@ -56,9 +62,5 @@ Item { | |||
56 | iconName: Kube.Icons.goDown_inverted | 62 | iconName: Kube.Icons.goDown_inverted |
57 | onClicked: root.download() | 63 | onClicked: root.download() |
58 | } | 64 | } |
59 | Kube.IconButton { | ||
60 | iconName: Kube.Icons.edit_inverted | ||
61 | onClicked: root.open() | ||
62 | } | ||
63 | } | 65 | } |
64 | } | 66 | } |