Get the QmlJS::ModelManagerInterface instance.

This commit is contained in:
Roberto Raggi
2010-06-29 15:52:40 +02:00
parent 2ec7f0b484
commit 18109b9cd1
2 changed files with 7 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;