summaryrefslogtreecommitdiff
path: root/src/quick
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-10-19 13:01:13 +0200
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-10-22 09:24:27 +0000
commitddc8537ec17591e4b51293523c1369823ecd8a83 (patch)
tree05f934c995cb0f8bb974eafa91773da05d9ef194 /src/quick
parent8ee3673e439b4499a8a4a4280637ee0270c4a54a (diff)
downloadqtdeclarative-ddc8537ec17591e4b51293523c1369823ecd8a83.tar.gz
QQuickItem: Make setParent() error message more useful
Change-Id: Ie39b7ee91024b6b090fce2b58bb240cbae724b8f Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/quick')
-rw-r--r--src/quick/items/qquickitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp
index b742dc16e9..de98e8e030 100644
--- a/src/quick/items/qquickitem.cpp
+++ b/src/quick/items/qquickitem.cpp
@@ -2602,7 +2602,7 @@ void QQuickItem::setParentItem(QQuickItem *parentItem)
QQuickItem *itemAncestor = parentItem;
while (itemAncestor != 0) {
if (itemAncestor == this) {
- qWarning("QQuickItem::setParentItem: Parent is already part of this items subtree.");
+ qWarning() << "QQuickItem::setParentItem: Parent" << parentItem << "is already part of the subtree of" << this;
return;
}
itemAncestor = itemAncestor->parentItem();