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

@@ -183,13 +183,12 @@ void InspectorPlugin::activateDebuggerForProject(ProjectExplorer::Project *proje
# warning start a QML/JS debugging session using the information stored in the current project
#endif
#if 0
// FIXME we probably want to activate the debugger for other projects than QmlProjects,
// if they contain Qml files. Some kind of options should exist for this behavior.
QmlProjectManager::QmlProject *qmlproj = qobject_cast<QmlProjectManager::QmlProject*>(project);
if (qmlproj && m_inspector->setDebugConfigurationDataFromProject(qmlproj))
m_inspector->startQmlProjectDebugger();
#endif
if (QmlProjectManager::QmlProject *qmlproj = qobject_cast<QmlProjectManager::QmlProject*>(project)) {
if (_inspector->setDebugConfigurationDataFromProject(qmlproj))
_inspector->startQmlProjectDebugger();
}
}
}