QML Observer: Refresh debug id's when new objects are created

Previously, the user had to navigate to the context of a qml item in
order to edit its source code in Live Preview mode. This change tells
the client to update when new objects are created on server-side, and
makes the editing possible without having to manually trigger updates.
This commit is contained in:
Lasse Holmstedt
2010-08-06 14:03:13 +02:00
parent d00045bdab
commit 85bafac50e
12 changed files with 134 additions and 8 deletions

View File

@@ -108,6 +108,8 @@ void QmlJSDesignDebugClient::messageReceived(const QByteArray &message)
QStringList contextPath;
ds >> contextPath;
emit contextPathUpdated(contextPath);
} else if (type == "SCENE_ITEM_COUNT_CHANGED") {
emit treeRefreshRequested();
}
}