aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates/qquickstackelement.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2024-12-06 08:49:52 +0100
committerUlf Hermann <ulf.hermann@qt.io>2024-12-11 14:26:04 +0100
commit2f35c7036e468d97ace2a5b3987674a30d29d532 (patch)
tree7afc9f111e2a3678e72a492362836f8914d466bc /src/quicktemplates/qquickstackelement.cpp
parent8182cc1042fc6e46c771e008cf19ee3fcb6328ae (diff)
QtQml: Encapsulate QQmlComponentPrivate
Other types should not be able to recklessly hack into its internals. Change-Id: I3f98e11b303193d1c56a6e8e64de03909751030a Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/quicktemplates/qquickstackelement.cpp')
-rw-r--r--src/quicktemplates/qquickstackelement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates/qquickstackelement.cpp b/src/quicktemplates/qquickstackelement.cpp
index f6a5ffdd74..141fa1819d 100644
--- a/src/quicktemplates/qquickstackelement.cpp
+++ b/src/quicktemplates/qquickstackelement.cpp
@@ -215,7 +215,7 @@ void QQuickStackElement::initialize(RequiredProperties *requiredProperties)
QV4::ScopedValue qmlObject(scope, QV4::QObjectWrapper::wrap(v4, item));
QQmlComponentPrivate::setInitialProperties(
v4, qmlContext, qmlObject, ipv, requiredProperties, item,
- component ? QQmlComponentPrivate::get(component)->state.creator() : nullptr);
+ component ? QQmlComponentPrivate::get(component)->creator() : nullptr);
properties.clear();
}