summaryrefslogtreecommitdiffstats
path: root/components/mail/contents
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-04-20 10:23:36 +0200
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-04-20 10:23:36 +0200
commit7d8ba56cb0ed21d51c7dfa1b1d7acf0ec014d1f6 (patch)
tree91533cab23f84b2b2082f4514c987f002863f6e4 /components/mail/contents
parent381057197ac0423aaceb138e1198c48945d9f176 (diff)
downloadkube-7d8ba56cb0ed21d51c7dfa1b1d7acf0ec014d1f6.tar.gz
kube-7d8ba56cb0ed21d51c7dfa1b1d7acf0ec014d1f6.zip
port away from plasmacomponents.toolbutton
Diffstat (limited to 'components/mail/contents')
-rw-r--r--components/mail/contents/ui/main.qml26
1 files 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 @@
18import QtQuick 2.4 18import QtQuick 2.4
19import QtQuick.Controls 1.3 19import QtQuick.Controls 1.3
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
21import org.kde.plasma.components 2.0 as PlasmaComponents
22 21
23import org.kube.framework.actions 1.0 as KubeAction 22import org.kube.framework.actions 1.0 as KubeAction
24import org.kube.framework.settings 1.0 as KubeSettings 23import org.kube.framework.settings 1.0 as KubeSettings
@@ -35,17 +34,6 @@ ApplicationWindow {
35 34
36 visible: true 35 visible: true
37 36
38 // Action.ActionHandler {
39 // actionId: "org.kde.kube.actions.mark-as-read"
40 // function isReady(context) {
41 // return context.mail ? true : false;
42 // }
43 //
44 // function handler(context) {
45 // console.warn("Got message:", context.mail)
46 // }
47 // }
48
49 KubeAction.Context { 37 KubeAction.Context {
50 id: maillistcontext 38 id: maillistcontext
51 property variant mail 39 property variant mail
@@ -82,7 +70,7 @@ ApplicationWindow {
82 Row { 70 Row {
83 anchors.fill: parent 71 anchors.fill: parent
84 72
85 PlasmaComponents.ToolButton { 73 ToolButton {
86 height: parent.height 74 height: parent.height
87 text: "Settings" 75 text: "Settings"
88 onClicked: { 76 onClicked: {
@@ -97,7 +85,7 @@ ApplicationWindow {
97 } 85 }
98 } 86 }
99 87
100 PlasmaComponents.ToolButton { 88 ToolButton {
101 height: parent.height 89 height: parent.height
102 iconName: "mail-message-new" 90 iconName: "mail-message-new"
103 text: "Compose" 91 text: "Compose"
@@ -106,7 +94,7 @@ ApplicationWindow {
106 } 94 }
107 } 95 }
108 96
109 PlasmaComponents.ToolButton { 97 ToolButton {
110 height: parent.height 98 height: parent.height
111 iconName: "mail-message-reply" 99 iconName: "mail-message-reply"
112 text: "Reply" 100 text: "Reply"
@@ -123,7 +111,7 @@ ApplicationWindow {
123 } 111 }
124 } 112 }
125 113
126 PlasmaComponents.ToolButton { 114 ToolButton {
127 height: parent.height 115 height: parent.height
128 iconName: "mail-mark-unread" 116 iconName: "mail-mark-unread"
129 text: "Mark As Read" 117 text: "Mark As Read"
@@ -133,7 +121,7 @@ ApplicationWindow {
133 } 121 }
134 } 122 }
135 123
136 PlasmaComponents.ToolButton { 124 ToolButton {
137 height: parent.height 125 height: parent.height
138 iconName: "mail-mark-important" 126 iconName: "mail-mark-important"
139 text: "Mark Important" 127 text: "Mark Important"
@@ -142,7 +130,7 @@ ApplicationWindow {
142 } 130 }
143 } 131 }
144 132
145 PlasmaComponents.ToolButton { 133 ToolButton {
146 height: parent.height 134 height: parent.height
147 iconName: "edit-delete" 135 iconName: "edit-delete"
148 text: "Delete Mail" 136 text: "Delete Mail"
@@ -152,7 +140,7 @@ ApplicationWindow {
152 } 140 }
153 } 141 }
154 142
155 PlasmaComponents.ToolButton { 143 ToolButton {
156 height: parent.height 144 height: parent.height
157 iconName: "view-refresh" 145 iconName: "view-refresh"
158 text: "Sync" 146 text: "Sync"