on xenial help sign in
There's no such thing as emptyListItem.pressed anymore
commite48cb2f9e7f418324f71926a034d65638f85f741 authorAlbert Astals <albert.astals@canonical.com> dateFri 3 Oct 2014, 13:39 (12 years ago) parent8eb47b3
2 files changed+1−11
qml/Components/ListItems/Base.qml+1−10 qml/Dash/GenericScopeView.qml−1
qml/Components/ListItems/Base.qml+1−10
@@ -28,15 +28,6 @@ Item {
2828 */
2929 property bool selected: false
3030
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−
4031 /*!
4132 \preliminary
4233 Set to show or hide the thin bottom divider line (drawn by the \l ThinDivider component).
@@ -119,7 +110,7 @@ Item {
119110 right: parent.right
120111 bottom: bottomDividerLine.top
121112 }
122− pressed: (emptyListItem.selected || (emptyListItem.highlightWhenPressed && emptyListItem.pressed)) ? "pressed" : ""
113+ pressed: emptyListItem.selected
123114 }
124115 }
125116}
qml/Dash/GenericScopeView.qml−1
@@ -212,7 +212,6 @@ FocusScope {
212212 delegate: ListItems.Base {
213213 id: baseItem
214214 objectName: "dashCategory" + category
215− highlightWhenPressed: false
216215 showDivider: false
217216
218217 property Item seeAllButton: seeAll