summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qabstractitemmodel.h
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2011-11-23 20:50:55 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-24 16:46:15 +0100
commit8f1868e7c36cb890c9d71dcd9d07d7019058cf94 (patch)
treef6aa5e7dfc12175a6be24b316b6c2ab5c24759fe /src/corelib/kernel/qabstractitemmodel.h
parent11bf824c03d07a2c4ac7f1d614351c532d7a52d6 (diff)
Add a parents parameter to layoutChange signals.
This allows for more focussed notification of what part of the model has changed layout. The slots in the proxy models can be more optimized later. Change-Id: I1bd17465b4be6f8efdc107036db897c557fcb519 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/kernel/qabstractitemmodel.h')
-rw-r--r--src/corelib/kernel/qabstractitemmodel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qabstractitemmodel.h b/src/corelib/kernel/qabstractitemmodel.h
index 97c5b58482..0aa8144602 100644
--- a/src/corelib/kernel/qabstractitemmodel.h
+++ b/src/corelib/kernel/qabstractitemmodel.h
@@ -233,8 +233,8 @@ public:
Q_SIGNALS:
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QSet<int> &roles = QSet<int>());
void headerDataChanged(Qt::Orientation orientation, int first, int last);
- void layoutChanged();
- void layoutAboutToBeChanged();
+ void layoutChanged(const QList<QPersistentModelIndex> &parents = QList<QPersistentModelIndex>());
+ void layoutAboutToBeChanged(const QList<QPersistentModelIndex> &parents = QList<QPersistentModelIndex>());
#if !defined(Q_MOC_RUN) && !defined(qdoc)
private: // can only be emitted by QAbstractItemModel