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()
qDebug() << Q_FUNC_INFO;
}
QmlJS::ModelManagerInterface *InspectorPlugin::modelManager() const
{
return ExtensionSystem::PluginManager::instance()->getObject<QmlJS::ModelManagerInterface>();
}
ClientProxy *InspectorPlugin::clientProxy() const
{
return _clientProxy;
......
......@@ -30,6 +30,7 @@
#define QMLJSINSPECTORPLUGIN_H
#include <extensionsystem/iplugin.h>
#include <qmljs/qmljsmodelmanagerinterface.h>
#include <QtCore/QObject>
#include <QtCore/QPointer>
......@@ -61,6 +62,7 @@ public:
static InspectorPlugin *instance();
QmlJS::ModelManagerInterface *modelManager() const;
ClientProxy *clientProxy() const;
Inspector *inspector() const;
......
Supports Markdown
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