Qml JS Debugger: Change context path from Creator's crumble path

This commit is contained in:
Lasse Holmstedt
2010-08-03 10:17:09 +02:00
parent 5f7969d08a
commit 3e9193021c
15 changed files with 57 additions and 4 deletions

View File

@@ -635,6 +635,7 @@ void Inspector::createDockWidgets()
{
m_crumblePath = new ContextCrumblePath;
m_crumblePath->setWindowTitle("Context Path");
connect(m_crumblePath, SIGNAL(elementClicked(int)), SLOT(crumblePathElementClicked(int)));
Debugger::DebuggerUISwitcher *uiSwitcher = Debugger::DebuggerUISwitcher::instance();
m_crumblePathDock = uiSwitcher->createDockWidget(QmlJSInspector::Constants::LANG_QML,
m_crumblePath, Qt::BottomDockWidgetArea);
@@ -643,6 +644,13 @@ void Inspector::createDockWidgets()
connect(m_clientProxy, SIGNAL(contextPathUpdated(QStringList)), m_crumblePath, SLOT(updateContextPath(QStringList)));
}
void Inspector::crumblePathElementClicked(int pathIndex)
{
if (m_clientProxy->isConnected() && !m_crumblePath->isEmpty()) {
m_clientProxy->setContextPathIndex(pathIndex);
}
}
bool Inspector::showExperimentalWarning()
{
return m_showExperimentalWarning;