diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-06-15 16:21:15 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-06-15 16:09:23 +0000 |
commit | 79745bf95cfb656b7ea75850c2b378cac3ea18ec (patch) | |
tree | ecdfaf2d54d590889eda6eec8ae850c0171d25ca /src/qml/qml/qqmlcomponent_p.h | |
parent | 1ef97c39c371f469df932236f9ede4da408734cb (diff) |
Expose QQmlComponentPrivate::setInitialProperties()
QQuickStackView::push() can be used to push not only URLs or
Components, but also plain Items. This patch makes it possible
for StackView to initialize properties for plain Items without
having to create a useless QQmlComponent instance just to be
able to call initializeObjectWithInitialProperties().
Change-Id: Id538028d09c1319da56b26695ebd407f4c0fa27a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlcomponent_p.h')
-rw-r--r-- | src/qml/qml/qqmlcomponent_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlcomponent_p.h b/src/qml/qml/qqmlcomponent_p.h index be69986117..3a84e724da 100644 --- a/src/qml/qml/qqmlcomponent_p.h +++ b/src/qml/qml/qqmlcomponent_p.h @@ -86,6 +86,7 @@ public: QObject *beginCreate(QQmlContextData *); void completeCreate(); void initializeObjectWithInitialProperties(QV4::QmlContext *qmlContext, const QV4::Value &valuemap, QObject *toCreate); + static void setInitialProperties(QV4::ExecutionEngine *engine, QV4::QmlContext *qmlContext, const QV4::Value &o, const QV4::Value &v); QQmlTypeData *typeData; virtual void typeDataReady(QQmlTypeData *); |