diff options
Diffstat (limited to 'applications/kmail-quick/package/contents/ui/FolderListView.qml')
-rw-r--r-- | applications/kmail-quick/package/contents/ui/FolderListView.qml | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/applications/kmail-quick/package/contents/ui/FolderListView.qml b/applications/kmail-quick/package/contents/ui/FolderListView.qml index 4a341a1a..1b9e179d 100644 --- a/applications/kmail-quick/package/contents/ui/FolderListView.qml +++ b/applications/kmail-quick/package/contents/ui/FolderListView.qml | |||
@@ -22,7 +22,9 @@ import QtQuick.Layouts 1.1 | |||
22 | import org.kde.plasma.core 2.0 as PlasmaCore | 22 | import org.kde.plasma.core 2.0 as PlasmaCore |
23 | 23 | ||
24 | 24 | ||
25 | |||
25 | Item { | 26 | Item { |
27 | id: root | ||
26 | 28 | ||
27 | Item { | 29 | Item { |
28 | id: searchBox | 30 | id: searchBox |
@@ -40,10 +42,8 @@ Item { | |||
40 | } | 42 | } |
41 | } | 43 | } |
42 | 44 | ||
43 | ListView { | ||
44 | id: root | ||
45 | 45 | ||
46 | clip: true | 46 | ScrollView { |
47 | 47 | ||
48 | anchors { | 48 | anchors { |
49 | top: searchBox.bottom | 49 | top: searchBox.bottom |
@@ -52,35 +52,40 @@ Item { | |||
52 | bottom: parent.bottom | 52 | bottom: parent.bottom |
53 | } | 53 | } |
54 | 54 | ||
55 | model: FolderModel {} | 55 | ListView { |
56 | 56 | ||
57 | delegate: ListItem { | 57 | clip: true |
58 | 58 | ||
59 | width: root.width | 59 | model: FolderModel {} |
60 | height: unit.size * 10 | ||
61 | 60 | ||
62 | PlasmaCore.IconItem { | 61 | delegate: ListItem { |
63 | id: iconItem | ||
64 | 62 | ||
65 | anchors { | 63 | width: root.width |
66 | verticalCenter: parent.verticalCenter | 64 | height: unit.size * 10 |
67 | left: parent.left | ||
68 | leftMargin: unit.size * 3 | ||
69 | } | ||
70 | 65 | ||
71 | source: model.icon | 66 | PlasmaCore.IconItem { |
72 | } | 67 | id: iconItem |
73 | 68 | ||
74 | Label { | 69 | anchors { |
75 | id: label | 70 | verticalCenter: parent.verticalCenter |
71 | left: parent.left | ||
72 | leftMargin: unit.size * 3 | ||
73 | } | ||
76 | 74 | ||
77 | anchors { | 75 | source: model.icon |
78 | verticalCenter: parent.verticalCenter | ||
79 | left: iconItem.right | ||
80 | leftMargin: unit.size * 3 | ||
81 | } | 76 | } |
82 | 77 | ||
83 | text: model.name | 78 | Label { |
79 | id: label | ||
80 | |||
81 | anchors { | ||
82 | verticalCenter: parent.verticalCenter | ||
83 | left: iconItem.right | ||
84 | leftMargin: unit.size * 3 | ||
85 | } | ||
86 | |||
87 | text: model.name | ||
88 | } | ||
84 | } | 89 | } |
85 | } | 90 | } |
86 | } | 91 | } |