Commit 18109b9c authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Get the QmlJS::ModelManagerInterface instance.

parent 2ec7f0b4
...@@ -94,6 +94,11 @@ InspectorPlugin::~InspectorPlugin() ...@@ -94,6 +94,11 @@ InspectorPlugin::~InspectorPlugin()
qDebug() << Q_FUNC_INFO; qDebug() << Q_FUNC_INFO;
} }
QmlJS::ModelManagerInterface *InspectorPlugin::modelManager() const
{
return ExtensionSystem::PluginManager::instance()->getObject<QmlJS::ModelManagerInterface>();
}
ClientProxy *InspectorPlugin::clientProxy() const ClientProxy *InspectorPlugin::clientProxy() const
{ {
return _clientProxy; return _clientProxy;
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#define QMLJSINSPECTORPLUGIN_H #define QMLJSINSPECTORPLUGIN_H
#include <extensionsystem/iplugin.h> #include <extensionsystem/iplugin.h>
#include <qmljs/qmljsmodelmanagerinterface.h>
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QPointer> #include <QtCore/QPointer>
...@@ -61,6 +62,7 @@ public: ...@@ -61,6 +62,7 @@ public:
static InspectorPlugin *instance(); static InspectorPlugin *instance();
QmlJS::ModelManagerInterface *modelManager() const;
ClientProxy *clientProxy() const; ClientProxy *clientProxy() const;
Inspector *inspector() const; Inspector *inspector() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment