CppEditor: Use BaseTextEditor{Widget} if possible

Change-Id: I59c420c6469717e552469d176bbeac3a455f3bb0
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Nikolai Kosjar
2014-05-22 11:04:57 -04:00
parent 4e8b1544b7
commit e828f60c90
13 changed files with 35 additions and 34 deletions

View File

@@ -30,9 +30,8 @@
#ifndef CPPELEMENTEVALUATOR_H
#define CPPELEMENTEVALUATOR_H
#include "cppeditor.h"
#include <cpptools/symbolfinder.h>
#include <texteditor/basetexteditor.h>
#include <texteditor/helpitem.h>
#include <QString>
@@ -57,7 +56,7 @@ class CppElement;
class CppElementEvaluator
{
public:
explicit CppElementEvaluator(CPPEditorWidget *editor);
explicit CppElementEvaluator(TextEditor::BaseTextEditorWidget *editor);
void setTextCursor(const QTextCursor &tc);
void setLookupBaseClasses(const bool lookup);
@@ -79,7 +78,7 @@ private:
const CPlusPlus::LookupContext &lookupContext,
const CPlusPlus::Scope *scope);
CPPEditorWidget *m_editor;
TextEditor::BaseTextEditorWidget *m_editor;
CppTools::CppModelManagerInterface *m_modelManager;
QTextCursor m_tc;
bool m_lookupBaseClasses;
@@ -100,7 +99,7 @@ public:
TextEditor::HelpItem::Category helpCategory;
QStringList helpIdCandidates;
QString helpMark;
CPPEditorWidget::Link link;
TextEditor::BaseTextEditorWidget::Link link;
QString tooltip;
};