summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativegridview.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-08-26 01:44:03 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-08-26 01:44:03 (GMT)
commit8bedba8ecb9cde3de68defea3e2b062504224aa6 (patch)
tree1cf7327df58f27869efae499f5a92a2786fa876d /src/declarative/graphicsitems/qdeclarativegridview.cpp
parent407e131dfc2f85518e42be6ca7a2b43946d0413c (diff)
downloadQt-8bedba8ecb9cde3de68defea3e2b062504224aa6.zip
Qt-8bedba8ecb9cde3de68defea3e2b062504224aa6.tar.gz
Qt-8bedba8ecb9cde3de68defea3e2b062504224aa6.tar.bz2
Fix ListView.view attached property with VisualItemModel
We assumed that the attached object was created at the same time as the item. Task-number: QTBUG-13166 Reviewed-by: Aaron Kennedy
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativegridview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp
index d67e69a..37beab5 100644
--- a/src/declarative/graphicsitems/qdeclarativegridview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp
@@ -64,7 +64,7 @@ public:
FxGridItem(QDeclarativeItem *i, QDeclarativeGridView *v) : item(i), view(v) {
attached = static_cast<QDeclarativeGridViewAttached*>(qmlAttachedPropertiesObject<QDeclarativeGridView>(item));
if (attached)
- attached->m_view = view;
+ attached->setView(view);
}
~FxGridItem() {}