CppTools: Get OverviewModel from model manager

Move ownership and add the placeholder for future clang based
OverviewModel.

Change-Id: Ia44d2c1d0db59b40239d1f7934bf37a02e4b14e6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Ivan Donchevskii
2018-02-02 13:01:07 +01:00
parent 8389aa144a
commit 7698d95576
8 changed files with 30 additions and 1 deletions

View File

@@ -27,6 +27,7 @@
#include "cppmodelmanagersupportinternal.h"
#include "cppfollowsymbolundercursor.h"
#include "cpphoverhandler.h"
#include "cppoverviewmodel.h"
#include "cpprefactoringengine.h"
#include "builtineditordocumentprocessor.h"
@@ -89,3 +90,8 @@ RefactoringEngineInterface &ModelManagerSupportInternal::refactoringEngineInterf
{
return *m_refactoringEngine;
}
std::unique_ptr<AbstractOverviewModel> ModelManagerSupportInternal::createOverviewModel()
{
return std::make_unique<CppTools::OverviewModel>();
}