don't draw the background if there is an highlight

mouseover highlight plus item backgrounds looks horrible together
This commit is contained in:
Marco Martin 2012-10-22 11:10:36 +02:00
parent a7c1e92ef2
commit 5f22e36cd5

View File

@ -87,6 +87,7 @@ Item {
prefix: "normal"
anchors.fill: parent
visible: listItem.ListView && listItem.ListView.view.highlight === null
opacity: itemMouse.containsMouse && !itemMouse.pressed ? 0.5 : 1
Component.onCompleted: {
prefix = (listItem.sectionDelegate ? "section" : (listItem.checked ? "pressed" : "normal"))