summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/cmake-macros/examples.cpp
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2025-08-04 12:34:00 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2025-08-05 18:52:57 +0200
commit38e94ffcbd4176faf36f3c547f84434b8e1e4bf1 (patch)
treed80458c60fa66cf5b2377b0d23ebf602031bfb7f /src/widgets/doc/snippets/cmake-macros/examples.cpp
parent08e654bb69a94a240cfb26b249733f779538277a (diff)
QObjectCompatProperty::notify(): fix binding data after reevaluation
The comment in the code already stated that evaluateBindings() can trash the observers. However, it can also reallocate the binding data pointer. As a result, we have to call storage->bindingData() again and construct a new QPropertyBindingDataPointer. Amends c6bc549b6bec99241710f38fcc73adc7c1dde9a9. Fixes: QTBUG-138056 Pick-to: 6.10 6.9 6.8 6.5 Change-Id: Ifa227950e4cd21d5605d199bd94e9c23648ea44b Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/cmake-macros/examples.cpp')
0 files changed, 0 insertions, 0 deletions