forked from qt-creator/qt-creator
Ensure the user can stop a semantic search and added a method to get a pointer to the ModelManagerInterface.
This commit is contained in:
@@ -56,6 +56,8 @@
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/progressmanager/progressmanager.h>
|
||||
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <TranslationUnit.h>
|
||||
@@ -588,6 +590,13 @@ Document::Ptr CppPreprocessor::switchDocument(Document::Ptr doc)
|
||||
}
|
||||
|
||||
|
||||
CppTools::CppModelManagerInterface *CppTools::CppModelManagerInterface::instance()
|
||||
{
|
||||
ExtensionSystem::PluginManager *pluginManager = ExtensionSystem::PluginManager::instance();
|
||||
return pluginManager->getObject<CppTools::CppModelManagerInterface>();
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
\class CppTools::CppModelManager
|
||||
|
Reference in New Issue
Block a user