fix 'listItem.ListView.view' [null] is not an object warning
attached property like obj.QmlType is consider as true in qml, should check full property obj.QmlType.property instead.
This commit is contained in:
parent
8e7a995797
commit
7dd6ca01ca
@ -89,7 +89,7 @@ Item {
|
||||
prefix: "normal"
|
||||
|
||||
anchors.fill: parent
|
||||
visible: listItem.ListView && listItem.ListView.view.highlight === null
|
||||
visible: listItem.ListView.view ? listItem.ListView.view.highlight === null : false
|
||||
opacity: itemMouse.containsMouse && !itemMouse.pressed ? 0.5 : 1
|
||||
Component.onCompleted: {
|
||||
prefix = (listItem.sectionDelegate ? "section" : (listItem.checked ? "pressed" : "normal"))
|
||||
|
Loading…
Reference in New Issue
Block a user