QML Live Preview: Apparently, the interresting root object is the last.

Even if we should really care about all of them, the object that is the root
of all the graphical QML item is the usually last.
This commit is contained in:
Olivier Goffart
2010-07-22 10:10:11 +02:00
parent 014b36d3f1
commit 7777e25469

View File

@@ -361,7 +361,7 @@ void ClientProxy::contextChanged()
m_rootObject = QDeclarativeDebugObjectReference(); m_rootObject = QDeclarativeDebugObjectReference();
emit objectTreeUpdated(m_rootObject); emit objectTreeUpdated(m_rootObject);
} else { } else {
m_rootObject = m_contextQuery->rootContext().objects().first(); m_rootObject = m_contextQuery->rootContext().objects().last();
} }
delete m_contextQuery; delete m_contextQuery;