diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2011-11-24 23:21:36 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-08 23:22:39 +0100 |
commit | 8021e2d5e7ccd09146896f788441c116f2ca6159 (patch) | |
tree | 52e5b214c78c5dd96ea6221aed4f2cfeaf49f0c4 /src/widgets/itemviews/qidentityproxymodel.cpp | |
parent | 5cb05091d2bb9eff2a2d5f1e21000df81d5113ae (diff) |
Remove the backwards compatibility signal emissions when moving items.
Change-Id: I29a44835d3397c1dbf37026daf0c5234dae770e0
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/itemviews/qidentityproxymodel.cpp')
-rw-r--r-- | src/widgets/itemviews/qidentityproxymodel.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/widgets/itemviews/qidentityproxymodel.cpp b/src/widgets/itemviews/qidentityproxymodel.cpp index 7885aedabb..c891565794 100644 --- a/src/widgets/itemviews/qidentityproxymodel.cpp +++ b/src/widgets/itemviews/qidentityproxymodel.cpp @@ -51,16 +51,12 @@ QT_BEGIN_NAMESPACE class QIdentityProxyModelPrivate : public QAbstractProxyModelPrivate { QIdentityProxyModelPrivate() - : ignoreNextLayoutAboutToBeChanged(false), - ignoreNextLayoutChanged(false) { } Q_DECLARE_PUBLIC(QIdentityProxyModel) - bool ignoreNextLayoutAboutToBeChanged; - bool ignoreNextLayoutChanged; QList<QPersistentModelIndex> layoutChangePersistentIndexes; QModelIndexList proxyIndexes; @@ -481,9 +477,6 @@ void QIdentityProxyModelPrivate::_q_sourceHeaderDataChanged(Qt::Orientation orie void QIdentityProxyModelPrivate::_q_sourceLayoutAboutToBeChanged() { - if (ignoreNextLayoutAboutToBeChanged) - return; - Q_Q(QIdentityProxyModel); foreach(const QPersistentModelIndex &proxyPersistentIndex, q->persistentIndexList()) { @@ -499,9 +492,6 @@ void QIdentityProxyModelPrivate::_q_sourceLayoutAboutToBeChanged() void QIdentityProxyModelPrivate::_q_sourceLayoutChanged() { - if (ignoreNextLayoutChanged) - return; - Q_Q(QIdentityProxyModel); for (int i = 0; i < proxyIndexes.size(); ++i) { |