summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2015-11-20 18:54:19 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2015-11-20 18:54:19 +0100
commitbc4098085303bf9e912614b7fa26e99dd2042025 (patch)
tree2c00d2b4718b4d69964b29017c24fcdc8dd55a50
parentc927d170fdc1bf89a6a1a049eec04c0d2f440b05 (diff)
downloadkube-bc4098085303bf9e912614b7fa26e99dd2042025.tar.gz
kube-bc4098085303bf9e912614b7fa26e99dd2042025.zip
add icon to folderlsit delegate
-rw-r--r--applications/kmail-quick/package/contents/ui/FolderListView.qml16
1 files changed, 15 insertions, 1 deletions
diff --git a/applications/kmail-quick/package/contents/ui/FolderListView.qml b/applications/kmail-quick/package/contents/ui/FolderListView.qml
index f39df01b..ee23bdf9 100644
--- a/applications/kmail-quick/package/contents/ui/FolderListView.qml
+++ b/applications/kmail-quick/package/contents/ui/FolderListView.qml
@@ -19,6 +19,8 @@ import QtQuick 2.4
19import QtQuick.Controls 1.3 19import 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
23
22ListView { 24ListView {
23 id: root 25 id: root
24 26
@@ -29,12 +31,24 @@ ListView {
29 width: root.width 31 width: root.width
30 height: unit.size * 10 32 height: unit.size * 10
31 33
34 PlasmaCore.IconItem {
35 id: iconItem
36
37 anchors {
38 verticalCenter: parent.verticalCenter
39 left: parent.left
40 leftMargin: unit.size * 3
41 }
42
43 source: model.icon
44 }
45
32 Label { 46 Label {
33 id: label 47 id: label
34 48
35 anchors { 49 anchors {
36 verticalCenter: parent.verticalCenter 50 verticalCenter: parent.verticalCenter
37 left: parent.left 51 left: iconItem.right
38 leftMargin: unit.size * 3 52 leftMargin: unit.size * 3
39 } 53 }
40 54