diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2012-02-25 11:07:52 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-25 12:37:53 +0100 |
commit | 71660ee5652f1509ff9632a45e4aa1bc0040387d (patch) | |
tree | c36f1f352d476397c900b77990d813d09de22f9b /src/corelib/itemmodels/qsortfilterproxymodel.cpp | |
parent | e430ddfafcc6e8fa9fecb9c816908c3edce08d77 (diff) |
Fix compilation without QT_DEPRECATED_SINCE
QAbstractItemModel::reset() is deprecated
Change-Id: I2d9aa9fade1660df14945ca11123341fce504050
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/corelib/itemmodels/qsortfilterproxymodel.cpp')
-rw-r--r-- | src/corelib/itemmodels/qsortfilterproxymodel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/itemmodels/qsortfilterproxymodel.cpp b/src/corelib/itemmodels/qsortfilterproxymodel.cpp index ebd1ce2a70..b7ef69423f 100644 --- a/src/corelib/itemmodels/qsortfilterproxymodel.cpp +++ b/src/corelib/itemmodels/qsortfilterproxymodel.cpp @@ -883,9 +883,10 @@ void QSortFilterProxyModelPrivate::source_items_removed( if (proxy_count > source_to_proxy.size()) { // mapping is in an inconsistent state -- redo the whole mapping qWarning("QSortFilterProxyModel: inconsistent changes reported by source model"); - remove_from_mapping(source_parent); Q_Q(QSortFilterProxyModel); - q->reset(); + q->beginResetModel(); + remove_from_mapping(source_parent); + q->endResetModel(); return; } |