qt5base-lts/tests/auto/corelib/itemmodels/qabstractproxymodel
Ivan Solovev 8161a9e5c0 QAbstractProxyModel: port to new property system
The biggest trick here is the getter (QAbstractProxyModel::sourceModel),
which is returning nullptr, while internally using a global
staticEmptyModel() instance.
This lead to inconsistency while binding to a proxy model without
source model. The bound object would point to staticEmptyModel()
instance, while sourceModel() getter returns nullptr.
To solve this issue a custom QBindableInterface is implemented.

Task-number: QTBUG-85520
Change-Id: I597df891c7e425d51b55f50ccbacabdfe935cbac
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2021-05-04 22:58:59 +02:00
..
.gitignore Move proxy and selection models to QtCore. 2011-12-16 13:00:57 +01:00
CMakeLists.txt QAbstractProxyModel: port to new property system 2021-05-04 22:58:59 +02:00
tst_qabstractproxymodel.cpp QAbstractProxyModel: port to new property system 2021-05-04 22:58:59 +02:00