diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2024-12-06 08:49:52 +0100 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-12-11 14:26:04 +0100 |
| commit | 2f35c7036e468d97ace2a5b3987674a30d29d532 (patch) | |
| tree | 7afc9f111e2a3678e72a492362836f8914d466bc /src/quicktemplates/qquickstackelement.cpp | |
| parent | 8182cc1042fc6e46c771e008cf19ee3fcb6328ae (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.cpp | 2 |
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(); } |
