From 7d8ba56cb0ed21d51c7dfa1b1d7acf0ec014d1f6 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Wed, 20 Apr 2016 10:23:36 +0200 Subject: port away from plasmacomponents.toolbutton --- components/mail/contents/ui/main.qml | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml index 414e3f5d..1c51c9f1 100644 --- a/components/mail/contents/ui/main.qml +++ b/components/mail/contents/ui/main.qml @@ -18,7 +18,6 @@ import QtQuick 2.4 import QtQuick.Controls 1.3 import QtQuick.Layouts 1.1 -import org.kde.plasma.components 2.0 as PlasmaComponents import org.kube.framework.actions 1.0 as KubeAction import org.kube.framework.settings 1.0 as KubeSettings @@ -35,17 +34,6 @@ ApplicationWindow { visible: true - // Action.ActionHandler { - // actionId: "org.kde.kube.actions.mark-as-read" - // function isReady(context) { - // return context.mail ? true : false; - // } - // - // function handler(context) { - // console.warn("Got message:", context.mail) - // } - // } - KubeAction.Context { id: maillistcontext property variant mail @@ -82,7 +70,7 @@ ApplicationWindow { Row { anchors.fill: parent - PlasmaComponents.ToolButton { + ToolButton { height: parent.height text: "Settings" onClicked: { @@ -97,7 +85,7 @@ ApplicationWindow { } } - PlasmaComponents.ToolButton { + ToolButton { height: parent.height iconName: "mail-message-new" text: "Compose" @@ -106,7 +94,7 @@ ApplicationWindow { } } - PlasmaComponents.ToolButton { + ToolButton { height: parent.height iconName: "mail-message-reply" text: "Reply" @@ -123,7 +111,7 @@ ApplicationWindow { } } - PlasmaComponents.ToolButton { + ToolButton { height: parent.height iconName: "mail-mark-unread" text: "Mark As Read" @@ -133,7 +121,7 @@ ApplicationWindow { } } - PlasmaComponents.ToolButton { + ToolButton { height: parent.height iconName: "mail-mark-important" text: "Mark Important" @@ -142,7 +130,7 @@ ApplicationWindow { } } - PlasmaComponents.ToolButton { + ToolButton { height: parent.height iconName: "edit-delete" text: "Delete Mail" @@ -152,7 +140,7 @@ ApplicationWindow { } } - PlasmaComponents.ToolButton { + ToolButton { height: parent.height iconName: "view-refresh" text: "Sync" -- cgit v1.2.3