on xenial help sign in
There's no such thing as emptyListItem.pressed anymore
e48cb2fAlbert Astals
qml/Components/ListItems/Base.qml+1−10
@@ -28,15 +28,6 @@ Item {
28 */
28 */
29 property bool selected: false
29 property bool selected: false
30
30
31− /*!
32− \preliminary
33− Highlight the list item when it is pressed.
34− This is used to disable the highlighting of the full list item
35− when custom highlighting needs to be implemented (for example in
36− ListItem.Standard which can have a split).
37− */
38− property bool highlightWhenPressed: true
39−
40 /*!
31 /*!
41 \preliminary
32 \preliminary
42 Set to show or hide the thin bottom divider line (drawn by the \l ThinDivider component).
33 Set to show or hide the thin bottom divider line (drawn by the \l ThinDivider component).
@@ -119,7 +110,7 @@ Item {
119 right: parent.right
110 right: parent.right
120 bottom: bottomDividerLine.top
111 bottom: bottomDividerLine.top
121 }
112 }
122− pressed: (emptyListItem.selected || (emptyListItem.highlightWhenPressed && emptyListItem.pressed)) ? "pressed" : ""
113+ pressed: emptyListItem.selected
123 }
114 }
124 }
115 }
125}
116}
qml/Dash/GenericScopeView.qml−1
@@ -212,7 +212,6 @@ FocusScope {
212 delegate: ListItems.Base {
212 delegate: ListItems.Base {
213 id: baseItem
213 id: baseItem
214 objectName: "dashCategory" + category
214 objectName: "dashCategory" + category
215− highlightWhenPressed: false
216 showDivider: false
215 showDivider: false
217
216
218 property Item seeAllButton: seeAll
217 property Item seeAllButton: seeAll