Fix compilation without QT_DEPRECATED_SINCE
QAbstractItemModel::reset() is deprecated Change-Id: I2d9aa9fade1660df14945ca11123341fce504050 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
e430ddfafc
commit
71660ee565
@ -883,9 +883,10 @@ void QSortFilterProxyModelPrivate::source_items_removed(
|
|||||||
if (proxy_count > source_to_proxy.size()) {
|
if (proxy_count > source_to_proxy.size()) {
|
||||||
// mapping is in an inconsistent state -- redo the whole mapping
|
// mapping is in an inconsistent state -- redo the whole mapping
|
||||||
qWarning("QSortFilterProxyModel: inconsistent changes reported by source model");
|
qWarning("QSortFilterProxyModel: inconsistent changes reported by source model");
|
||||||
remove_from_mapping(source_parent);
|
|
||||||
Q_Q(QSortFilterProxyModel);
|
Q_Q(QSortFilterProxyModel);
|
||||||
q->reset();
|
q->beginResetModel();
|
||||||
|
remove_from_mapping(source_parent);
|
||||||
|
q->endResetModel();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user