on xenial help sign in
Make Base not clickable, since we don't use it in anywhere clickable (we only use it for Category delegates in the LVWPH) Fixes: 1300709

Approved by: Andrea Cimitan

commitc4b126710439c214c8edd4ba2b5f8563ada54480 authorAlbert Astals <albert.astals@canonical.com> dateThu 9 Oct 2014, 14:03 (12 years ago) parentd8c6c7bbbd2e74
2 files changed+2−12
qml/Components/ListItems/Base.qml+2−11 qml/Dash/GenericScopeView.qml−1
qml/Components/ListItems/Base.qml+2−11
@@ -17,7 +17,7 @@
1717import QtQuick 2.0
1818import Ubuntu.Components 0.1
1919
20−AbstractButton {
20+Item {
2121 id: emptyListItem
2222 width: parent ? parent.width : units.gu(31)
2323 height: body.height + bottomDividerLine.height
@@ -28,15 +28,6 @@ AbstractButton {
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 @@ AbstractButton {
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
@@ -213,7 +213,6 @@ FocusScope {
213213 delegate: ListItems.Base {
214214 id: baseItem
215215 objectName: "dashCategory" + category
216− highlightWhenPressed: false
217216 showDivider: false
218217
219218 property Item seeAllButton: seeAll