From 0b019fcc52560d0a7016f733cb2bea3e03893ec0 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 5 Nov 2012 13:51:58 +0100 Subject: QQmlPropertyCache: adding setParent() setParent() enables to dynamically set the parent of a QQmlPropertyCache. This is used in the Qt Quick Designer to create dynamic properties on an arbitrary object. Change-Id: I0dafabcacf4222fc1bfe693736cbd23e1e928e8f Reviewed-by: Kai Koehne Reviewed-by: Christiaan Janssen Reviewed-by: Marco Bubke --- src/qml/qml/qqmlpropertycache.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/qml/qml/qqmlpropertycache.cpp') diff --git a/src/qml/qml/qqmlpropertycache.cpp b/src/qml/qml/qqmlpropertycache.cpp index c1c4a6c03d..8b023855ab 100644 --- a/src/qml/qml/qqmlpropertycache.cpp +++ b/src/qml/qml/qqmlpropertycache.cpp @@ -549,6 +549,11 @@ QQmlPropertyCache *QQmlPropertyCache::parent() const return _parent; } +void QQmlPropertyCache::setParent(QQmlPropertyCache *newParent) +{ + _parent = newParent; +} + // Returns the first C++ type's QMetaObject - that is, the first QMetaObject not created by // QML const QMetaObject *QQmlPropertyCache::firstCppMetaObject() const -- cgit v1.2.3