forked from qt-creator/qt-creator
Get the QmlJS::ModelManagerInterface instance.
This commit is contained in:
@@ -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 @@
|
|||||||
#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:
|
|||||||
|
|
||||||
static InspectorPlugin *instance();
|
static InspectorPlugin *instance();
|
||||||
|
|
||||||
|
QmlJS::ModelManagerInterface *modelManager() const;
|
||||||
ClientProxy *clientProxy() const;
|
ClientProxy *clientProxy() const;
|
||||||
Inspector *inspector() const;
|
Inspector *inspector() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user