@@ -53,61 +53,64 @@ Item {
53 Repeater {
53 Repeater {
54 model: navigation && navigation.loaded ? navigation : null
54 model: navigation && navigation.loaded ? navigation : null
55 clip: true
55 clip: true
56− // FIXME Move to ListItem (and remove import) once 1556971 is fixed
57− delegate: ListItems.Empty {
56+ delegate: Loader {
58− objectName: root.objectName + "child" + index
57+ asynchronous: true
59 height: root.itemHeight
58 height: root.itemHeight
60 width: column.width
59 width: column.width
61− anchors {
60+ // FIXME Move to ListItem (and remove import) once 1556971 is fixed
62− left: column.left
61+ sourceComponent: ListItems.Empty {
63− right: column.right
62+ objectName: root.objectName + "child" + index
64− leftMargin: units.gu(2)
65− rightMargin: units.gu(2)
68− onClicked: root.enterNavigation(navigationId, allLabel != "" ? allLabel : label, hasChildren)
73− verticalCenter: parent.verticalCenter
74 left: parent.left
64 left: parent.left
66+ leftMargin: units.gu(2)
67+ rightMargin: units.gu(2)
83− Label {
70+ onClicked: root.enterNavigation(navigationId, allLabel != "" ? allLabel : label, hasChildren)
85− verticalCenter: parent.verticalCenter
72+ Icon {
86− left: leftIcon.right
73+ id: leftIcon
87− leftMargin: units.gu(1)
74+ anchors {
88− right: rightIcon.left
75+ verticalCenter: parent.verticalCenter
89− rightMargin: units.gu(2)
78+ height: units.gu(2)
92− color: isActive ? "#333333" : "#888888"
95− elide: Text.ElideMiddle
87+ verticalCenter: parent.verticalCenter
89+ leftMargin: units.gu(1)
90+ right: rightIcon.left
91+ rightMargin: units.gu(2)
94+ color: isActive ? "#333333" : "#888888"
97+ elide: Text.ElideMiddle
99− id: rightIcon
101+ id: rightIcon
100− anchors {
102+ anchors {
101− verticalCenter: parent.verticalCenter
103+ verticalCenter: parent.verticalCenter
102− right: parent.right
104+ right: parent.right
109+ visible: hasChildren
107− visible: hasChildren
110− divider.visible: index != navigation.count - 1
112+ divider.visible: index != navigation.count - 1