summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2015-12-08 00:04:47 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2015-12-08 00:04:47 +0100
commit4a698080f6d20c56f6463fa56c12f1d0d8bc8255 (patch)
treede275cef0242bd8df8490ff7ee6a4776a376033e
parent44901be43a92827325bae8e3c22fed794274393b (diff)
downloadkube-4a698080f6d20c56f6463fa56c12f1d0d8bc8255.tar.gz
kube-4a698080f6d20c56f6463fa56c12f1d0d8bc8255.zip
create controller in the main UI
-rw-r--r--applications/kmail-quick/package/contents/ui/main.qml20
1 files changed, 18 insertions, 2 deletions
diff --git a/applications/kmail-quick/package/contents/ui/main.qml b/applications/kmail-quick/package/contents/ui/main.qml
index 737e3f59..63b66c6d 100644
--- a/applications/kmail-quick/package/contents/ui/main.qml
+++ b/applications/kmail-quick/package/contents/ui/main.qml
@@ -20,6 +20,8 @@ import QtQuick.Controls 1.3
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
21import org.kde.plasma.components 2.0 as PlasmaComponents 21import org.kde.plasma.components 2.0 as PlasmaComponents
22 22
23import org.kde.akonadi2.mail 1.0 as Mail
24
23ApplicationWindow { 25ApplicationWindow {
24 id: app 26 id: app
25 27
@@ -30,6 +32,20 @@ ApplicationWindow {
30 32
31 visible: true 33 visible: true
32 34
35 //Controller:
36 Mail.FolderList {
37 id: folderList
38 }
39
40 Mail.MailList {
41 id: mailList
42 }
43
44 Mail.SingleMail{
45 id: singleMail
46 }
47
48 //UI
33 toolBar: ToolBar { 49 toolBar: ToolBar {
34 50
35 Row { 51 Row {
@@ -59,7 +75,7 @@ ApplicationWindow {
59 anchors.fill: parent 75 anchors.fill: parent
60 76
61 FolderListView { 77 FolderListView {
62 id: folderList 78 id: folderListView
63 79
64 width: unit.size * 55 80 width: unit.size * 55
65 Layout.maximumWidth: unit.size * 150 81 Layout.maximumWidth: unit.size * 150
@@ -67,7 +83,7 @@ ApplicationWindow {
67 } 83 }
68 84
69 MailListView { 85 MailListView {
70 id: mailList 86 id: mailListView
71 87
72 width: unit.size * 80 88 width: unit.size * 80
73 Layout.maximumWidth: unit.size * 250 89 Layout.maximumWidth: unit.size * 250