Workaround SDK ListItem bug
commitb8203b96b67611c1078a58ba09960032cccaf4dd
authorAlbert Astals Cid <albert.astals@canonical.com>
dateMon 14 Mar 2016, 15:33 (11 years ago)
parent74cbf86
qml/Dash/DashNavigationList.qml+3−1
@@ -16,6 +16,7 @@
1616
1717import QtQuick 2.4
1818import Ubuntu.Components 1.3
19+import Ubuntu.Components.ListItems 1.3 as ListItems
1920import "../Components"
2021
2122Item {
@@ -52,7 +53,8 @@ Item {
5253 Repeater {
5354 model: navigation && navigation.loaded ? navigation : null
5455 clip: true
55− delegate: ListItem {
56+ // FIXME Move to ListItem (and remove import) once 1556971 is fixed
57+ delegate: ListItems.Empty {
5658 objectName: root.objectName + "child" + index
5759 height: root.itemHeight
5860 width: column.width
qml/Dash/PageHeaderExtraPanel.qml+2−1
@@ -92,7 +92,8 @@ Item {
9292 objectName: "recentSearchesRepeater"
9393 model: searchHistory
9494
95− delegate: ListItem {
95+ // FIXME Move to ListItem (and remove import) once 1556971 is fixed
96+ delegate: ListItems.Empty {
9697 anchors {
9798 left: parent.left
9899 right: parent.right