qt6-bb10/tests/auto/corelib/itemmodels
Ahmad Samir 675b4f63fe QIdentityProxyModel: add setHandleSourceLayoutChanges(bool)
Some sub-classes have special handling of source model layout changes
(abbreviated as SMLC from here on out), 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 recent changes (and the method
were renamed to remove _q_ prefix).

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 SMLC to them. Thanks to
David Faure for the idea/solution.

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

Change-Id: I1de79dd693ce32a6e2df9a7c81dd4abdc5f00248
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2023-12-15 16:52:10 +03:00
..
qabstractitemmodel Q(Persistent)ModelIndex: use new test framework for op== 2023-11-13 17:35:54 +02:00
qabstractproxymodel QAbstractProxyModel: fix binding loops 2023-09-03 18:20:33 +02:00
qconcatenatetablesproxymodel CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qidentityproxymodel QIdentityProxyModel: add setHandleSourceLayoutChanges(bool) 2023-12-15 16:52:10 +03:00
qitemmodel CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qitemselectionmodel QItemSelectionModel: don't warn when destroying the model 2023-09-22 01:42:45 +02:00
qsortfilterproxymodel tst_QSortFilterProxyModel: fix mem-leaks II: sortStable() 2023-07-19 04:51:26 +00:00
qsortfilterproxymodel_recursive CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qsortfilterproxymodel_regularexpression CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qstringlistmodel CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qtransposeproxymodel CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00