Add roles to the dataChanged slots in views.
authorStephen Kelly <stephen.kelly@kdab.com>
Thu, 15 Dec 2011 15:31:21 +0000 (16:31 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 6 Jan 2012 16:21:39 +0000 (17:21 +0100)
commit054a4aa7dddacbe31778c5c5e9ffc9d41f803353
treee0c1d717913cb5fbd1425106555003abce0dadc5
parent9eacf32de9c61417887e1550915c310c3187ac10
Add roles to the dataChanged slots in views.

This is a source incompatible change.

This is for consistency with the signal for the lifetime of Qt5. I could
imagine people trying to override a virtual function (in a new class while
using the Qt5 library) with the arguments of
the signal and have that fail due to the arguments not being correct.

It also allows ignoring dataChange events when they are known not to be for roles
which are relevant to particular views or delegates.

Change-Id: Ica191835125c1c8fdaf665debb62d635e81700dc
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
dist/changes-5.0.0
src/widgets/itemviews/qabstractitemview.cpp
src/widgets/itemviews/qabstractitemview.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