Fix reference error in Highlight

ListView is just the namespace, we have to check for ListView.view's
existance
This commit is contained in:
Sebastian Kügler 2012-10-26 01:36:30 +02:00
parent f35539da1f
commit a45a18e810

View File

@ -46,7 +46,7 @@ Item {
//in the case we are the highlight of a listview, it follows the mouse, so hover = true
property bool hover: ListView ? true : false
property bool pressed: false
width: ListView ? ListView.view.width : undefined
width: ListView.view ? ListView.view.width : undefined
Connections {
target: highlight.ListView.view