From 55d17efe983ed3720f3e6f2e1ab04b6dedd28191 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 8 Jun 2017 14:21:08 +0200 Subject: open attachment, when clicking on it instead of the button --- framework/qml/AttachmentDelegate.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'framework') 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 { color: Kube.Colors.disabledTextColor } + MouseArea { + anchors.fill: parent + + onClicked: root.open() + } + Row { id: content anchors.centerIn: parent @@ -56,9 +62,5 @@ Item { iconName: Kube.Icons.goDown_inverted onClicked: root.download() } - Kube.IconButton { - iconName: Kube.Icons.edit_inverted - onClicked: root.open() - } } } -- cgit v1.2.3