diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-14 15:38:25 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-14 15:51:56 +0200 |
commit | 4106162feb2c7af0c0fec6477c5068a1fcb10fae (patch) | |
tree | f0db43e1990307d6bf9ca6b64f0e0c2a9ce578c2 /framework/qml/AttachmentDelegate.qml | |
parent | ca5597c69385814a2b93b744d1a6e88a93ff05d2 (diff) | |
download | kube-4106162feb2c7af0c0fec6477c5068a1fcb10fae.tar.gz kube-4106162feb2c7af0c0fec6477c5068a1fcb10fae.zip |
Remove button
Diffstat (limited to 'framework/qml/AttachmentDelegate.qml')
-rw-r--r-- | framework/qml/AttachmentDelegate.qml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/framework/qml/AttachmentDelegate.qml b/framework/qml/AttachmentDelegate.qml index 46cf76f9..2167fa12 100644 --- a/framework/qml/AttachmentDelegate.qml +++ b/framework/qml/AttachmentDelegate.qml | |||
@@ -24,8 +24,9 @@ Item { | |||
24 | 24 | ||
25 | property string name | 25 | property string name |
26 | property string icon | 26 | property string icon |
27 | signal open; | 27 | property alias actionIcon: actionButton.iconName |
28 | signal download; | 28 | signal clicked; |
29 | signal execute; | ||
29 | 30 | ||
30 | width: content.width + Kube.Units.smallSpacing | 31 | width: content.width + Kube.Units.smallSpacing |
31 | height: content.height + Kube.Units.smallSpacing | 32 | height: content.height + Kube.Units.smallSpacing |
@@ -40,7 +41,7 @@ Item { | |||
40 | MouseArea { | 41 | MouseArea { |
41 | anchors.fill: parent | 42 | anchors.fill: parent |
42 | 43 | ||
43 | onClicked: root.open() | 44 | onClicked: root.clicked() |
44 | } | 45 | } |
45 | 46 | ||
46 | Row { | 47 | Row { |
@@ -59,10 +60,10 @@ Item { | |||
59 | color: Kube.Colors.backgroundColor | 60 | color: Kube.Colors.backgroundColor |
60 | } | 61 | } |
61 | Kube.IconButton { | 62 | Kube.IconButton { |
63 | id: actionButton | ||
62 | height: Kube.Units.gridUnit | 64 | height: Kube.Units.gridUnit |
63 | width: height | 65 | width: height |
64 | iconName: Kube.Icons.save_inverted | 66 | onClicked: root.execute() |
65 | onClicked: root.download() | ||
66 | padding: 0 | 67 | padding: 0 |
67 | } | 68 | } |
68 | } | 69 | } |