summaryrefslogtreecommitdiffstats
path: root/src/scxml/qscxmltabledata_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-01-14 16:50:39 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-02-03 08:28:30 +0000
commit2951c124d3ff58abe1f84175e512ba26977f13d8 (patch)
tree681b5483e7a7be7c37924a31b6160fdf34e766cd /src/scxml/qscxmltabledata_p.h
parent167f01e4be56440cb58e97510bc408f3476eb307 (diff)
Mark dynamic state machines' metaobjects as fully dynamic
The memory is allocated using malloc() and will be free()'d eventually. Client code cannot expect to keep string data from those metaobjects around. The QML engine will avoid the creation of property caches (which hold string data from the metaobject) if the metaobject is fully dynamic. Therefore, just create a QAbstractDynamicMetaObject that wraps the original metaobject and pass that to QObjectPrivate in order to signal the fully dynamic nature of the metaobject to QML. Fixes: QTBUG-89521 Change-Id: I349dcb689be5674679237a551ed8595bd6b5b672 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 0e4c91654abff279b51238b46f880dd624ab9ec8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/scxml/qscxmltabledata_p.h')
0 files changed, 0 insertions, 0 deletions