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:
@@ -47,8 +47,7 @@
|
||||
namespace PythonEditor {
|
||||
namespace Internal {
|
||||
|
||||
PythonEditor::PythonEditor(PythonEditorWidget *editorWidget)
|
||||
:BaseTextEditor(editorWidget)
|
||||
PythonEditor::PythonEditor()
|
||||
{
|
||||
setContext(Core::Context(Constants::C_PYTHONEDITOR_ID,
|
||||
TextEditor::Constants::C_TEXTEDITOR));
|
||||
|
||||
@@ -35,14 +35,12 @@
|
||||
namespace PythonEditor {
|
||||
namespace Internal {
|
||||
|
||||
class PythonEditorWidget;
|
||||
|
||||
class PythonEditor : public TextEditor::BaseTextEditor
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PythonEditor(PythonEditorWidget *editorWidget);
|
||||
PythonEditor();
|
||||
|
||||
Core::IEditor *duplicate();
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ PythonEditorWidget::PythonEditorWidget(TextEditor::BaseTextDocumentPtr doc)
|
||||
|
||||
TextEditor::BaseTextEditor *PythonEditorWidget::createEditor()
|
||||
{
|
||||
return new PythonEditor(this);
|
||||
return new PythonEditor;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user