qt6-bb10/tests/auto/corelib/itemmodels
David Faure 2b50551923 QIdentityProxyModel: add setHandleSourceDataChanges(bool)
Some sub-classes have special handling of source model data changes,
they relied on disconnecting the connections to the _q_*layout* slots
in the private class using the SLOT macro. This isn't possible any more
after the recent port to PMF connects.

Sub-classes resorting to using private API is a clear sign some
functionality is missing from the public API, so a cleaner solution for
this issue is adding this setter which enables sub-classes to tell
QIdentityProxyModel to leave handling of the dataChanged signal to them.

Similar to commit 675b4f63fe (but
this should be the last one needed).

[ChangeLog][QtCore][QIdentityProxyModel] Added
setHandleSourceDataChanges(bool) method to allow sub-classes to
indicate to QIdentityProxyModel that they will handle source model
data changes on their own. Also added a getter,
isHandleSourceDataChanges().

Task-number: QTBUG-127959
Change-Id: Id8f567c330e4ee834940a62b6497d8cbb8ba4a46
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
(cherry picked from commit 5a31800d41273a14436c543438a142562f74f857)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-08-12 20:18:41 +00:00
..
qabstractitemmodel [doc] Q(Persistent)ModelIndex: document behavior of data() on invalid Q(P)MIs 2024-07-06 10:17:53 +00:00
qabstractproxymodel tst_QAbstractProxyModel: port to QTEST_THROW_ON_FAIL 2024-06-19 23:31:58 +00:00
qconcatenatetablesproxymodel Change license for tests files 2024-02-04 09:56:42 +01:00
qidentityproxymodel QIdentityProxyModel: add setHandleSourceDataChanges(bool) 2024-08-12 20:18:41 +00:00
qitemmodel Change license for tests files 2024-02-04 09:56:42 +01:00
qitemselectionmodel Extend QTest::failOnWarning() to a no-parameter fail-on-any-warning 2024-05-06 20:27:41 +02:00
qsortfilterproxymodel Enable resetting a sort model by descending order 2024-04-29 22:20:25 +03:00
qsortfilterproxymodel_recursive Change license for tests files 2024-02-04 09:56:42 +01:00
qsortfilterproxymodel_regularexpression Change license for tests files 2024-02-04 09:56:42 +01:00
qstringlistmodel Change license for tests files 2024-02-04 09:56:42 +01:00
qtransposeproxymodel Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt tst_QAbstractProxyModel: port to QTEST_THROW_ON_FAIL 2024-06-19 23:31:58 +00:00