diff options
| author | Fabian Kosmale <fabian.kosmale@qt.io> | 2024-09-27 10:36:38 +0200 |
|---|---|---|
| committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2024-09-27 12:16:17 +0000 |
| commit | 817ab2dc171bc86cdf552103c630f2864e0eba1c (patch) | |
| tree | a9a571d5b3b51b63d945bb901f0b81ba56045174 /src/qml/jsruntime/qv4engine.cpp | |
| parent | fbb4a1ad4bb07c61274cb1a3672822ed0b677a38 (diff) | |
QQmlDelegateModelItem: Avoid unneeded reparenting in destroyObject
Reparenting to QCoreApplication is only needed in the rare case where
our event loop is gone, and deleteLater no longer works.
Avoid the overhead of reparenting if aboutToQuit has not been emitted
yet.
Amends 3a5617dc45e281552b9c1f7a04f0561b8fa14d94
Pick-to: 6.8
Change-Id: Ie41d08b1f33ee57d230bb0947ab435e77cb1b893
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine.cpp')
0 files changed, 0 insertions, 0 deletions
