forked from qt-creator/qt-creator
TextEditor: Further *Editor/*EditorWidget disentangling
In most cases, the *Editor constructor does not need to access the *EditorWidget. Change-Id: I1f5c076a0f723d5d82b398e8c250c7bd1d47eb17 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -105,8 +105,7 @@ QTimer *newSingleShotTimer(QObject *parent, int msecInterval)
|
||||
namespace CppEditor {
|
||||
namespace Internal {
|
||||
|
||||
CPPEditor::CPPEditor(CppEditorWidget *editor)
|
||||
: BaseTextEditor(editor)
|
||||
CPPEditor::CPPEditor()
|
||||
{
|
||||
m_context.add(CppEditor::Constants::C_CPPEDITOR);
|
||||
m_context.add(ProjectExplorer::Constants::LANG_CXX);
|
||||
@@ -263,7 +262,7 @@ CppEditorOutline *CppEditorWidget::outline() const
|
||||
|
||||
TextEditor::BaseTextEditor *CppEditorWidget::createEditor()
|
||||
{
|
||||
return new CPPEditor(this);
|
||||
return new CPPEditor;
|
||||
}
|
||||
|
||||
void CppEditorWidget::paste()
|
||||
|
||||
Reference in New Issue
Block a user