diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-05-30 16:35:52 +1000 |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-05-30 16:35:52 +1000 |
commit | 16e75d93ebe652f6e5b919aa89809a92881a37e7 (patch) | |
tree | 3caee160c2913ceca306abdccc9ae3a82aae9d6d /src/declarative/items/qsgvisualitemmodel.cpp | |
parent | 806f031efeda71d3f4d7d2f949b437493e79cf52 (diff) |
Update SG items with recent GV item changes.
Change-Id: Ib9cadea91ab3717bee0caf2071102a100e81969d
Diffstat (limited to 'src/declarative/items/qsgvisualitemmodel.cpp')
-rw-r--r-- | src/declarative/items/qsgvisualitemmodel.cpp | 7 |
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) |