QmlDesigner: Add a special root item of the view too

Change-Id: Ie7cc58d3793717fce979ccd554060b91bc0d7040
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
Marco Bubke
2014-06-24 16:21:03 +02:00
parent a5c3c9af0e
commit a980ea98bb

View File

@@ -235,7 +235,11 @@ QList<QQuickItem *> QuickItemNodeInstance::allItemsRecursive() const
{ {
QList<QQuickItem *> itemList; QList<QQuickItem *> itemList;
if (quickItem()) { if (quickItem()) {
if (quickItem()->parentItem())
itemList.append(quickItem()->parentItem());
itemList.append(quickItem()); itemList.append(quickItem());
itemList.append(allChildItemsRecursive(quickItem())); itemList.append(allChildItemsRecursive(quickItem()));
} }