summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--framework/qml/Outbox.qml13
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 @@
19import QtQuick 2.4 19import QtQuick 2.4
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
21import QtQuick.Controls 2.0 21import QtQuick.Controls 2.0
22import QtQuick.Controls 1.3 as Controls
23 22
24import org.kube.framework 1.0 as Kube 23import org.kube.framework 1.0 as Kube
25 24
26 25
27Controls.ToolButton { 26Kube.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