aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2020-02-10 16:32:56 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2020-02-10 18:19:57 +0100
commitdba4e7dae4c08ff08fbf1858e8bc5cc2b4cbb553 (patch)
tree8e7fb87851d85770b5fc66bd3fe056b684c3f47f /tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
parentc915ac23d9a460070ab4e4f8417df9db461c537c (diff)
Fix QQmlObjectModel::destroyingItem emission
The signal is used to tell the view that the item is definitely going away. For the "view" based QQmlObjectModel that is almost never really the case, except - oddly - for clear(). The view is typically a QQuickItemView, which casts the item to a QQuickItem and calls setParentItem(nullptr). That in turn is caught by QQuickContainer, which calls remove() on the QQmlObjectModel. That is why remove() can't emit destroyingItem(). Amends 6d0a453f41d304239285d64b06612c36922be701 Change-Id: I5d82def872550744b947b4b53447647327e03f67 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp')
0 files changed, 0 insertions, 0 deletions