QmlDesigner: remove unused code

Change-Id: I00bc1b533f065b87a8d1b46e3296f76bf05b85d4
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
Tim Jenssen
2016-03-22 11:52:51 +01:00
parent 8a7349dc6b
commit 50b1bf629e

View File

@@ -814,14 +814,8 @@ QObject *ObjectNodeInstance::parent() const
QObject *ObjectNodeInstance::parentObject(QObject *object)
{
QQuickItem *quickItem = qobject_cast<QQuickItem*>(object);
if (quickItem && quickItem->parentItem()) {
//QQuickRootItem is used by Window and we want to return the Window as parent
if (strcmp(quickItem->metaObject()->className(), "QQuickRootItem"))
return object->parent();
if (quickItem && quickItem->parentItem())
return quickItem->parentItem();
}
return object->parent();
}