summaryrefslogtreecommitdiff
path: root/tests/benchmarks/qml/javascript/tst_javascript.cpp
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2021-11-23 10:17:14 +0100
committerAndrei Golubev <andrei.golubev@qt.io>2021-11-23 18:01:20 +0100
commitf43650b3a8e2414e725656e0b72634f919fddc20 (patch)
tree3841c8e2b287b6d9e3ae3d3112966a39ab4ba4c3 /tests/benchmarks/qml/javascript/tst_javascript.cpp
parent509adb58688531dea802f088bcdf969771985d38 (diff)
downloadqtdeclarative-f43650b3a8e2414e725656e0b72634f919fddc20.tar.gz
QQmlComponent: put special internal creation routine into a function
QQmlComponent(QQmlEngine*, ExecutableCompilationUnit*, int, QObject*) is a private constructor used to create types-wrapped-in-component like quick view delegates. The exact same construction should be used by qmltc (otherwise side effects may appear) We can put the common creation bits into a public static method of QQmlObjectCreator. This way, both existing code and qmltc code could use the same implementation (and we don't really need extra testing) Since QQmlObjectCreator is a private class, this is safe to do Change-Id: I6bf8c6a2040cd4e76e3e06488ecce8bd72501094 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/benchmarks/qml/javascript/tst_javascript.cpp')
0 files changed, 0 insertions, 0 deletions