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 | |
parent | ca5597c69385814a2b93b744d1a6e88a93ff05d2 (diff) | |
download | kube-4106162feb2c7af0c0fec6477c5068a1fcb10fae.tar.gz kube-4106162feb2c7af0c0fec6477c5068a1fcb10fae.zip |
Remove button
Diffstat (limited to 'framework/qml')
-rw-r--r-- | framework/qml/AttachmentDelegate.qml | 11 | ||||
-rw-r--r-- | framework/qml/Icons.qml | 1 | ||||
-rw-r--r-- | framework/qml/MailViewer.qml | 10 |
3 files changed, 11 insertions, 11 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 | } |
diff --git a/framework/qml/Icons.qml b/framework/qml/Icons.qml index e3272eb8..9a3bcb77 100644 --- a/framework/qml/Icons.qml +++ b/framework/qml/Icons.qml | |||
@@ -54,6 +54,7 @@ Item { | |||
54 | property string goUp: "go-down" | 54 | property string goUp: "go-down" |
55 | 55 | ||
56 | property string addNew: "list-add" | 56 | property string addNew: "list-add" |
57 | property string remove: "list-remove" | ||
57 | property string folder: "folder" | 58 | property string folder: "folder" |
58 | property string save_inverted: "document-save-inverted" | 59 | property string save_inverted: "document-save-inverted" |
59 | 60 | ||
diff --git a/framework/qml/MailViewer.qml b/framework/qml/MailViewer.qml index 2fc304b2..67279d6b 100644 --- a/framework/qml/MailViewer.qml +++ b/framework/qml/MailViewer.qml | |||
@@ -281,12 +281,10 @@ Rectangle { | |||
281 | icon: model.iconName | 281 | icon: model.iconName |
282 | 282 | ||
283 | clip: true | 283 | clip: true |
284 | onDownload: { | 284 | |
285 | messageParser.attachments.saveAttachmentToDisk(messageParser.attachments.index(index, 0)) | 285 | actionIcon: Kube.Icons.save_inverted |
286 | } | 286 | onExecute: messageParser.attachments.saveAttachmentToDisk(messageParser.attachments.index(index, 0)) |
287 | onOpen: { | 287 | onClicked: messageParser.attachments.openAttachment(messageParser.attachments.index(index, 0)) |
288 | messageParser.attachments.openAttachment(messageParser.attachments.index(index, 0)) | ||
289 | } | ||
290 | } | 288 | } |
291 | } | 289 | } |
292 | } | 290 | } |