diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2010-09-23 12:14:18 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2011-06-27 16:13:45 (GMT) |
commit | 0f6853e9c775dd8fbb64f66119c2c9b2ea23da29 (patch) | |
tree | 880ec281b07648a14b0a4b95473001b5fb8b5eb5 /src/corelib/kernel/qabstractitemmodel.h | |
parent | 031958c130904c16a4bafa5617aaa197469efa9e (diff) | |
download | Qt-0f6853e9c775dd8fbb64f66119c2c9b2ea23da29.zip Qt-0f6853e9c775dd8fbb64f66119c2c9b2ea23da29.tar.gz Qt-0f6853e9c775dd8fbb64f66119c2c9b2ea23da29.tar.bz2 |
Provide the resetInternalData slot to cleanly reset data in proxy subclasses.
Direct subclasses of QAbstractItemModel are unnaffected as they can update
internal data in a slot connected to the sourceModel's modelReset signal or
layoutChanged signal.
Rehabilitated for 4.8. Should be reverted again in Qt 5.
Reviewed-by: gabi
Merge-request: 694
Diffstat (limited to 'src/corelib/kernel/qabstractitemmodel.h')
-rw-r--r-- | src/corelib/kernel/qabstractitemmodel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/kernel/qabstractitemmodel.h b/src/corelib/kernel/qabstractitemmodel.h index c7af7a2..43d8ac2 100644 --- a/src/corelib/kernel/qabstractitemmodel.h +++ b/src/corelib/kernel/qabstractitemmodel.h @@ -303,6 +303,9 @@ protected: void setRoleNames(const QHash<int,QByteArray> &roleNames); +protected slots: + void resetInternalData(); + private: Q_DECLARE_PRIVATE(QAbstractItemModel) Q_DISABLE_COPY(QAbstractItemModel) |