Live preview: Creating objects dynamically

This commit is contained in:
Lasse Holmstedt
2010-07-16 09:41:56 +02:00
parent c77e560f65
commit a457d2eec3
10 changed files with 112 additions and 2 deletions

View File

@@ -408,6 +408,13 @@ void ClientProxy::changeToSelectMarqueeTool()
m_designClient->changeToSelectMarqueeTool();
}
void ClientProxy::createQmlObject(const QString &qmlText, const QDeclarativeDebugObjectReference &parentRef,
const QStringList &imports, const QString &filename)
{
if (isDesignClientConnected())
m_designClient->createQmlObject(qmlText, parentRef, imports, filename);
}
bool ClientProxy::isDesignClientConnected() const
{
return (m_designClient && m_conn->isConnected());