summaryrefslogtreecommitdiffstats
path: root/applications
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2015-11-22 17:51:40 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2015-11-22 17:51:40 +0100
commit4420b6163b879b0c1cfaf54f65ce440ffbdd0088 (patch)
tree326c607387b5c70d80b48f5cd28dd4bb29a6ed96 /applications
parent43fb28d4700a715bec48e1a06be75c5d573252af (diff)
downloadkube-4420b6163b879b0c1cfaf54f65ce440ffbdd0088.tar.gz
kube-4420b6163b879b0c1cfaf54f65ce440ffbdd0088.zip
add scrollbar to folderlist view
Diffstat (limited to 'applications')
-rw-r--r--applications/kmail-quick/package/contents/ui/FolderListView.qml51
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
22import org.kde.plasma.core 2.0 as PlasmaCore 22import org.kde.plasma.core 2.0 as PlasmaCore
23 23
24 24
25
25Item { 26Item {
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 }