aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@digia.com>2014-06-17 13:35:21 +0200
committerMitch Curtis <mitch.curtis@digia.com>2014-06-20 08:54:33 +0200
commit28851c675cff5484be6abcbfd045537615e7a288 (patch)
tree41ed43c6d1a514bcb190676f2503818832b09efd
parent2bc44ba16bb86bd7ebc7eb59ae78eda80a737984 (diff)
Fix QQmlComponent detailed description.
setParent() => setParentItem() Task-number: QTBUG-39687 Change-Id: I67dc871a6d3b10af321d1f7b08921dcad0a6f19d Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
-rw-r--r--src/qml/qml/qqmlcomponent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcomponent.cpp b/src/qml/qml/qqmlcomponent.cpp
index 39a7d8905d..e9a3449a22 100644
--- a/src/qml/qml/qqmlcomponent.cpp
+++ b/src/qml/qml/qqmlcomponent.cpp
@@ -150,7 +150,7 @@ V8_DEFINE_EXTENSION(QQmlComponentExtension, componentExtension);
// QQmlEngine *engine = qmlContext(this)->engine();
QQmlComponent component(engine, QUrl::fromLocalFile("MyItem.qml"));
QQuickItem *childItem = qobject_cast<QQuickItem*>(component.create());
- childItem->setParent(this);
+ childItem->setParentItem(this);
}
\endcode