forked from qt-creator/qt-creator
Editors: Remove BaseTextEditorWidget::setBaseTextDocument
First step in never changing the text document after construction, because that is actually not really supported. Second step will be to fix that for the editor duplicate() methods too. Change-Id: I3d112ba0895e7ee7ac6dd8ae2318f0de7d2cebc9 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -109,8 +109,6 @@ Core::IEditor *ProjectFilesEditor::duplicate()
|
||||
ProjectFilesEditorWidget::ProjectFilesEditorWidget(QWidget *parent)
|
||||
: BaseTextEditorWidget(parent)
|
||||
{
|
||||
QSharedPointer<BaseTextDocument> doc(new BaseTextDocument());
|
||||
setBaseTextDocument(doc);
|
||||
}
|
||||
|
||||
BaseTextEditor *ProjectFilesEditorWidget::createEditor()
|
||||
|
||||
Reference in New Issue
Block a user