From 322d0276cb88c1d9fc5f1de82b25e8a11a5724ae Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 23 Jun 2017 17:31:40 +0200 Subject: Use Kube.IconButton for the outbox as well --- framework/qml/Outbox.qml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'framework/qml') 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 @@ import QtQuick 2.4 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 -import QtQuick.Controls 1.3 as Controls import org.kube.framework 1.0 as Kube -Controls.ToolButton { +Kube.IconButton { id: root visible: outboxModel.count > 0 @@ -50,6 +49,8 @@ Controls.ToolButton { anchors { right: parent.right bottom: parent.bottom + rightMargin: 1 + bottomMargin: 1 } width: Kube.Units.smallSpacing text: outboxModel.count @@ -126,17 +127,13 @@ Controls.ToolButton { spacing: Kube.Units.smallSpacing - Controls.ToolButton { + Kube.IconButton { iconName: Kube.Icons.moveToTrash - text: qsTr("Delete Mail") - tooltip: text onClicked: Kube.Fabric.postMessage(Kube.Messages.moveToTrash, {"mail": model.domainObject}) } - Controls.ToolButton { + Kube.IconButton { iconName: Kube.Icons.edit - text: qsTr("Edit") - tooltip: text onClicked: { Kube.Fabric.postMessage(Kube.Messages.moveToDrafts, {"mail": model.domainObject}) //TODO stage upon completion -- cgit v1.2.3