summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2015-12-08 18:40:56 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2015-12-08 18:40:56 +0100
commit4ef189a7aab1e56fe5947f2d57c95921660b06cf (patch)
tree2d5fbcda7c498bb899e7f1ed6be9a521c6a2c25c
parent727be50d12e4366df6add54d9e9fb249352316f6 (diff)
downloadkube-4ef189a7aab1e56fe5947f2d57c95921660b06cf.tar.gz
kube-4ef189a7aab1e56fe5947f2d57c95921660b06cf.zip
set folderId for mailList controller when clicking on a folder in folderlist
-rw-r--r--applications/kmail-quick/package/contents/ui/FolderListView.qml10
1 files changed, 9 insertions, 1 deletions
diff --git a/applications/kmail-quick/package/contents/ui/FolderListView.qml b/applications/kmail-quick/package/contents/ui/FolderListView.qml
index f6b55695..7eeebbda 100644
--- a/applications/kmail-quick/package/contents/ui/FolderListView.qml
+++ b/applications/kmail-quick/package/contents/ui/FolderListView.qml
@@ -20,6 +20,7 @@ import QtQuick.Controls 1.3
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
21 21
22import org.kde.plasma.core 2.0 as PlasmaCore 22import org.kde.plasma.core 2.0 as PlasmaCore
23import org.kde.plasma.components 2.0 as PlasmaComponents
23 24
24import org.kde.akonadi2.mail 1.0 as Mail 25import org.kde.akonadi2.mail 1.0 as Mail
25 26
@@ -52,16 +53,23 @@ Item {
52 } 53 }
53 54
54 ListView { 55 ListView {
56 id: listView
55 57
56 clip: true 58 clip: true
57 59
58 model: folderList.model //FolderModel {} 60 model: folderList.model //FolderModel {}
59 61
60 delegate: ListItem { 62 delegate: PlasmaComponents.ListItem {
61 63
62 width: root.width 64 width: root.width
63 height: unit.size * 10 65 height: unit.size * 10
64 66
67 enabled: true
68
69 onClicked: {
70 mailList.folderId = model.id
71 }
72
65 PlasmaCore.IconItem { 73 PlasmaCore.IconItem {
66 id: iconItem 74 id: iconItem
67 75