Start the inspector.

This commit is contained in:
Roberto Raggi
2010-06-29 14:24:12 +02:00
parent 6d1d196ed1
commit 6f4cc3541d
4 changed files with 17 additions and 26 deletions

View File

@@ -164,14 +164,15 @@ void Inspector::updateEngineList()
{
qDebug() << Q_FUNC_INFO;
QList<QDeclarativeDebugEngineReference> engines = m_clientProxy->engines();
const QList<QDeclarativeDebugEngineReference> engines = m_clientProxy->engines();
#warning update the QML engines combo
if (engines.isEmpty())
qWarning("qmldebugger: no engines found!");
#warning update the QML engines combo
if (engines.count() > 0) {
m_clientProxy->queryEngineContext(engines.at(0).debugId());
else {
const QDeclarativeDebugEngineReference engine = engines.first();
m_clientProxy->queryEngineContext(engine.debugId());
}
}
@@ -542,14 +543,6 @@ void Inspector::setSelectedItemsByObjectReference(QList<QDeclarativeDebugObjectR
gotoObjectReferenceDefinition(objectReferences.first());
}
#if 0
void QmlInspector::handlePropertyDump(const QDeclarativeDebugPropertyDump &dump)
{
qDebug() << Q_FUNC_INFO;
m_rewriter->mapObjectToQml(dump.object());
}
#endif
void Inspector::gotoObjectReferenceDefinition(const QDeclarativeDebugObjectReference &obj)
{
Q_UNUSED(obj);
@@ -586,7 +579,7 @@ QDeclarativeDebugExpressionQuery *Inspector::executeExpression(int objectDebugId
if (objectId.length()) {
QString quoteWrappedValue = value.toString();
if (addQuotesForData(value))
quoteWrappedValue = QString("'%1'").arg(quoteWrappedValue);
quoteWrappedValue = QString("'%1'").arg(quoteWrappedValue); // ### FIXME this code is wrong!
QString constructedExpression = objectId + "." + propertyName + "=" + quoteWrappedValue;
return m_client.data()->queryExpressionResult(objectDebugId, constructedExpression, this);