aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgvisualitemmodel.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-05-30 16:35:52 +1000
committerMartin Jones <martin.jones@nokia.com>2011-05-30 16:35:52 +1000
commit16e75d93ebe652f6e5b919aa89809a92881a37e7 (patch)
tree3caee160c2913ceca306abdccc9ae3a82aae9d6d /src/declarative/items/qsgvisualitemmodel.cpp
parent806f031efeda71d3f4d7d2f949b437493e79cf52 (diff)
Update SG items with recent GV item changes.
Diffstat (limited to 'src/declarative/items/qsgvisualitemmodel.cpp')
-rw-r--r--src/declarative/items/qsgvisualitemmodel.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/declarative/items/qsgvisualitemmodel.cpp b/src/declarative/items/qsgvisualitemmodel.cpp
index 0bcd93361d..daf67b573a 100644
--- a/src/declarative/items/qsgvisualitemmodel.cpp
+++ b/src/declarative/items/qsgvisualitemmodel.cpp
@@ -1,4 +1,4 @@
-// Commit: 45153a37e4d9e39e8c326a0f33ea17be49bb29e2
+// Commit: dcb9148091cbf6872b60407c301d7c92427583a6
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
@@ -1227,7 +1227,12 @@ void QSGVisualDataModel::_q_layoutChanged()
void QSGVisualDataModel::_q_modelReset()
{
+ Q_D(QSGVisualDataModel);
+ d->m_root = QModelIndex();
emit modelReset();
+ emit rootIndexChanged();
+ if (d->m_abstractItemModel && d->m_abstractItemModel->canFetchMore(d->m_root))
+ d->m_abstractItemModel->fetchMore(d->m_root);
}
void QSGVisualDataModel::_q_createdPackage(int index, QDeclarativePackage *package)