QmlDesigner.: Using editorWidget instead of widget

Change-Id: I0c8dc16ceeabc608334027abf05ed3ddff5a9a36
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2017-01-04 13:16:43 +01:00
parent 01095b5ddf
commit 1d3292e3aa

View File

@@ -47,7 +47,7 @@ TextEditorWidget::TextEditorWidget(TextEditorView *textEditorView) : QWidget()
void TextEditorWidget::setTextEditor(TextEditor::BaseTextEditor *textEditor) { void TextEditorWidget::setTextEditor(TextEditor::BaseTextEditor *textEditor) {
m_textEditor.reset(textEditor); m_textEditor.reset(textEditor);
layout()->addWidget(textEditor->widget()); layout()->addWidget(textEditor->editorWidget());
} }
QString TextEditorWidget::contextHelpId() const QString TextEditorWidget::contextHelpId() const