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

@@ -35,6 +35,10 @@
#include "clangcurrentdocumentfilter.h"
#include <coreplugin/editormanager/editormanager.h>
// TODO: replace with clang based overview model
#include <cpptools/cppoverviewmodel.h>
#include <cpptools/cppcodemodelsettings.h>
#include <cpptools/cppfollowsymbolundercursor.h>
#include <cpptools/cppmodelmanager.h>
@@ -144,6 +148,11 @@ CppTools::RefactoringEngineInterface &ModelManagerSupportClang::refactoringEngin
return *m_refactoringEngine;
}
std::unique_ptr<CppTools::AbstractOverviewModel> ModelManagerSupportClang::createOverviewModel()
{
return std::make_unique<CppTools::OverviewModel>();
}
CppTools::BaseEditorDocumentProcessor *ModelManagerSupportClang::createEditorDocumentProcessor(
TextEditor::TextDocument *baseTextDocument)
{