QmlInspector: tooltips in qmldebug mode

Reviewed by: Lasse Holmstedt
This commit is contained in:
Christiaan Janssen
2010-09-08 16:44:42 +02:00
parent 0a33abf094
commit 1c702357a6
9 changed files with 177 additions and 13 deletions

View File

@@ -36,6 +36,7 @@
#include <debugger/debuggeruiswitcher.h>
#include <debugger/debuggerconstants.h>
#include <debugger/qml/qmladapter.h>
#include <debugger/qml/qmlengine.h>
#include <qmlprojectmanager/qmlproject.h>
#include <qmljseditor/qmljseditorconstants.h>
@@ -130,6 +131,12 @@ void InspectorPlugin::objectAdded(QObject *object)
if (adapter) {
m_clientProxy = new ClientProxy(adapter);
m_inspectorUi->connected(m_clientProxy);
return;
}
Debugger::Internal::QmlEngine *engine = qobject_cast<Debugger::Internal::QmlEngine*>(object);
if (engine) {
m_inspectorUi->setDebuggerEngine(engine);
}
}
@@ -140,6 +147,10 @@ void InspectorPlugin::aboutToRemoveObject(QObject *obj)
delete m_clientProxy;
m_clientProxy = 0;
}
if (m_inspectorUi->debuggerEngine() == obj) {
m_inspectorUi->setDebuggerEngine(0);
}
}
Q_EXPORT_PLUGIN(InspectorPlugin)