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:
@@ -43,8 +43,7 @@ using namespace TextEditor;
|
||||
\ingroup Snippets
|
||||
*/
|
||||
|
||||
SnippetEditor::SnippetEditor(SnippetEditorWidget *editor)
|
||||
: BaseTextEditor(editor)
|
||||
SnippetEditor::SnippetEditor()
|
||||
{
|
||||
setContext(Core::Context(Constants::SNIPPET_EDITOR_ID, Constants::C_TEXTEDITOR));
|
||||
}
|
||||
@@ -77,5 +76,5 @@ void SnippetEditorWidget::focusOutEvent(QFocusEvent *event)
|
||||
|
||||
BaseTextEditor *SnippetEditorWidget::createEditor()
|
||||
{
|
||||
return new SnippetEditor(this);
|
||||
return new SnippetEditor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user