diff --git a/src/plugins/qmldesigner/components/texteditor/texteditorwidget.cpp b/src/plugins/qmldesigner/components/texteditor/texteditorwidget.cpp index 750d7da6ed6..9b5dc32ff8e 100644 --- a/src/plugins/qmldesigner/components/texteditor/texteditorwidget.cpp +++ b/src/plugins/qmldesigner/components/texteditor/texteditorwidget.cpp @@ -47,7 +47,7 @@ TextEditorWidget::TextEditorWidget(TextEditorView *textEditorView) : QWidget() void TextEditorWidget::setTextEditor(TextEditor::BaseTextEditor *textEditor) { m_textEditor.reset(textEditor); - layout()->addWidget(textEditor->widget()); + layout()->addWidget(textEditor->editorWidget()); } QString TextEditorWidget::contextHelpId() const