diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-23 17:31:40 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-23 17:45:02 +0200 |
commit | 322d0276cb88c1d9fc5f1de82b25e8a11a5724ae (patch) | |
tree | 1bde8f9cdf83193be4c05cf1473bd938720b02f7 | |
parent | 0ff830ff10df95c0f4507925c07114354c70ae6f (diff) | |
download | kube-322d0276cb88c1d9fc5f1de82b25e8a11a5724ae.tar.gz kube-322d0276cb88c1d9fc5f1de82b25e8a11a5724ae.zip |
Use Kube.IconButton for the outbox as well
-rw-r--r-- | framework/qml/Outbox.qml | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/framework/qml/Outbox.qml b/framework/qml/Outbox.qml index 0be1768a..9fad8db5 100644 --- a/framework/qml/Outbox.qml +++ b/framework/qml/Outbox.qml | |||
@@ -19,12 +19,11 @@ | |||
19 | import QtQuick 2.4 | 19 | import QtQuick 2.4 |
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
21 | import QtQuick.Controls 2.0 | 21 | import QtQuick.Controls 2.0 |
22 | import QtQuick.Controls 1.3 as Controls | ||
23 | 22 | ||
24 | import org.kube.framework 1.0 as Kube | 23 | import org.kube.framework 1.0 as Kube |
25 | 24 | ||
26 | 25 | ||
27 | Controls.ToolButton { | 26 | Kube.IconButton { |
28 | id: root | 27 | id: root |
29 | 28 | ||
30 | visible: outboxModel.count > 0 | 29 | visible: outboxModel.count > 0 |
@@ -50,6 +49,8 @@ Controls.ToolButton { | |||
50 | anchors { | 49 | anchors { |
51 | right: parent.right | 50 | right: parent.right |
52 | bottom: parent.bottom | 51 | bottom: parent.bottom |
52 | rightMargin: 1 | ||
53 | bottomMargin: 1 | ||
53 | } | 54 | } |
54 | width: Kube.Units.smallSpacing | 55 | width: Kube.Units.smallSpacing |
55 | text: outboxModel.count | 56 | text: outboxModel.count |
@@ -126,17 +127,13 @@ Controls.ToolButton { | |||
126 | 127 | ||
127 | spacing: Kube.Units.smallSpacing | 128 | spacing: Kube.Units.smallSpacing |
128 | 129 | ||
129 | Controls.ToolButton { | 130 | Kube.IconButton { |
130 | iconName: Kube.Icons.moveToTrash | 131 | iconName: Kube.Icons.moveToTrash |
131 | text: qsTr("Delete Mail") | ||
132 | tooltip: text | ||
133 | onClicked: Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": model.domainObject}) | 132 | onClicked: Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": model.domainObject}) |
134 | } | 133 | } |
135 | 134 | ||
136 | Controls.ToolButton { | 135 | Kube.IconButton { |
137 | iconName: Kube.Icons.edit | 136 | iconName: Kube.Icons.edit |
138 | text: qsTr("Edit") | ||
139 | tooltip: text | ||
140 | onClicked: { | 137 | onClicked: { |
141 | Kube.Fabric.postMessage(Kube.Messages.moveToDrafts, {"mail": model.domainObject}) | 138 | Kube.Fabric.postMessage(Kube.Messages.moveToDrafts, {"mail": model.domainObject}) |
142 | //TODO stage upon completion | 139 | //TODO stage upon completion |