aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/quick/quicktestvisitors.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-07-11 16:19:31 +0200
committerEike Ziller <eike.ziller@qt.io>2018-07-12 10:16:26 +0000
commit0471fc0f4685c8e2f821322fd2c56a4beafbd245 (patch)
tree806fa0161b9ae2938df08bd13e7effd346d58203 /src/plugins/autotest/quick/quicktestvisitors.cpp
parent293e711739b7e6eb00497cce97f7cca87ba497a5 (diff)
Fix assert when filtering examples / tutorials
The examples are put throw two proxy models. The first one implements the sorting and filtering, the second one transforms the list into a grid. The grid proxy model was based on QIdentityProxyModel, which is wrong because that explicitly states that it should be used when the structure of the model stays the same. Even QAbstractProxyModel works under the assumption that all items in the proxy model correspond to an item in the source model, which is not true for a N*M grid. Just implement the proxy model "by hand", making sure that all items that cannot be mapped to the source are handles correctly as "empty" items. Task-number: QTCREATORBUG-20641 Change-Id: Id08b77bb7157b893b9d0d73dc006db98d90032b7 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/autotest/quick/quicktestvisitors.cpp')
0 files changed, 0 insertions, 0 deletions