Use a QVector<int> instead of a QSet<int> in itemviews/models.
authorStephen Kelly <stephen.kelly@kdab.com>
Thu, 7 Jun 2012 08:39:42 +0000 (10:39 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jun 2012 02:30:07 +0000 (04:30 +0200)
commitf9caf48beebb935c7c1ca71745b2646b872b65d1
treecce24c1336eb0cc1ce422292623eb6f34c18f553
parent3df316e9615027d9384cef81ac6cbfa2f9f81f01
Use a QVector<int> instead of a QSet<int> in itemviews/models.

The QSet<int> is a more expensive container to use and create, so
it should be avoided.

This is source incompatible compared to earlier Qt 5 for
QAbstractItemView subclasses which reimplement dataChanged, but this
patch changes nothing compared to already-present SiC compared
to Qt 4.

Change-Id: Id95391dfd62a0a7f487a8765790b007badefb937
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
17 files changed:
examples/itemviews/chart/pieview.cpp
examples/itemviews/chart/pieview.h
src/corelib/itemmodels/qabstractitemmodel.cpp
src/corelib/itemmodels/qabstractitemmodel.h
src/widgets/itemviews/qabstractitemdelegate.cpp
src/widgets/itemviews/qabstractitemdelegate.h
src/widgets/itemviews/qabstractitemview.cpp
src/widgets/itemviews/qabstractitemview.h
src/widgets/itemviews/qdatawidgetmapper.cpp
src/widgets/itemviews/qdatawidgetmapper.h
src/widgets/itemviews/qheaderview.cpp
src/widgets/itemviews/qheaderview.h
src/widgets/itemviews/qlistview.cpp
src/widgets/itemviews/qlistview.h
src/widgets/itemviews/qtreeview.cpp
src/widgets/itemviews/qtreeview.h
tests/auto/corelib/itemmodels/qabstractitemmodel/tst_qabstractitemmodel.cpp