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

@@ -84,6 +84,8 @@ bool ClientProxy::connectToViewer(const QString &host, quint16 port)
SIGNAL(selectedColorChanged(QColor)), this, SIGNAL(selectedColorChanged(QColor)));
disconnect(m_designClient,
SIGNAL(contextPathUpdated(QStringList)), this, SIGNAL(contextPathUpdated(QStringList)));
disconnect(m_designClient,
SIGNAL(treeRefreshRequested()), this, SLOT(refreshObjectTree()));
emit aboutToDisconnect();
@@ -229,8 +231,8 @@ void ClientProxy::connectionStateChanged()
SIGNAL(designModeBehaviorChanged(bool)), SIGNAL(designModeBehaviorChanged(bool)));
connect(m_designClient, SIGNAL(reloaded()), this, SIGNAL(serverReloaded()));
connect(m_designClient, SIGNAL(selectedColorChanged(QColor)), SIGNAL(selectedColorChanged(QColor)));
connect(m_designClient,
SIGNAL(contextPathUpdated(QStringList)), SIGNAL(contextPathUpdated(QStringList)));
connect(m_designClient, SIGNAL(contextPathUpdated(QStringList)), SIGNAL(contextPathUpdated(QStringList)));
connect(m_designClient, SIGNAL(treeRefreshRequested()), SLOT(refreshObjectTree()));
}
(void) new DebuggerClient(m_conn);