summaryrefslogtreecommitdiffstats
path: root/applications/kmail-quick
diff options
context:
space:
mode:
Diffstat (limited to 'applications/kmail-quick')
-rw-r--r--applications/kmail-quick/package/contents/ui/FolderListView.qml73
1 files changed, 51 insertions, 22 deletions
diff --git a/applications/kmail-quick/package/contents/ui/FolderListView.qml b/applications/kmail-quick/package/contents/ui/FolderListView.qml
index ee23bdf9..4a341a1a 100644
--- a/applications/kmail-quick/package/contents/ui/FolderListView.qml
+++ b/applications/kmail-quick/package/contents/ui/FolderListView.qml
@@ -21,38 +21,67 @@ import QtQuick.Layouts 1.1
21 21
22import org.kde.plasma.core 2.0 as PlasmaCore 22import org.kde.plasma.core 2.0 as PlasmaCore
23 23
24ListView {
25 id: root
26 24
27 model: FolderModel {} 25Item {
28 26
29 delegate: ListItem { 27 Item {
28 id: searchBox
30 29
31 width: root.width 30 width: root.width
32 height: unit.size * 10 31 height: unit.size * 12
33 32
34 PlasmaCore.IconItem { 33 TextField {
35 id: iconItem 34 anchors. centerIn: parent
36 35
37 anchors { 36 width: parent.width * 0.9
38 verticalCenter: parent.verticalCenter 37
39 left: parent.left 38 placeholderText: "Search email..."
40 leftMargin: unit.size * 3 39
41 } 40 }
41 }
42
43 ListView {
44 id: root
42 45
43 source: model.icon 46 clip: true
47
48 anchors {
49 top: searchBox.bottom
50 left: parent.left
51 right: parent.right
52 bottom: parent.bottom
44 } 53 }
45 54
46 Label { 55 model: FolderModel {}
47 id: label 56
57 delegate: ListItem {
48 58
49 anchors { 59 width: root.width
50 verticalCenter: parent.verticalCenter 60 height: unit.size * 10
51 left: iconItem.right
52 leftMargin: unit.size * 3
53 }
54 61
55 text: model.name 62 PlasmaCore.IconItem {
56 } 63 id: iconItem
64
65 anchors {
66 verticalCenter: parent.verticalCenter
67 left: parent.left
68 leftMargin: unit.size * 3
69 }
70
71 source: model.icon
72 }
73
74 Label {
75 id: label
76
77 anchors {
78 verticalCenter: parent.verticalCenter
79 left: iconItem.right
80 leftMargin: unit.size * 3
81 }
82
83 text: model.name
84 }
85 }
57 } 86 }
58} \ No newline at end of file 87} \ No newline at end of file