forked from qt-creator/qt-creator
TextEditor: Merge BaseTextEditorDocument into BaseTextDocument
That was the only user of that layer of abstraction. Change-Id: I2bdc4abb8b2b33bfb70398dd11f7ecc4745ddc43 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -6850,12 +6850,11 @@ bool BaseTextEditor::restoreState(const QByteArray &state)
|
||||
return m_editorWidget->restoreState(state);
|
||||
}
|
||||
|
||||
BaseTextEditorDocument *BaseTextEditor::textDocument()
|
||||
BaseTextDocument *BaseTextEditor::textDocument()
|
||||
{
|
||||
return qobject_cast<BaseTextEditorDocument *>(document());
|
||||
return qobject_cast<BaseTextDocument *>(document());
|
||||
}
|
||||
|
||||
|
||||
BaseTextEditor *BaseTextEditor::currentTextEditor()
|
||||
{
|
||||
return qobject_cast<BaseTextEditor *>(Core::EditorManager::currentEditor());
|
||||
|
||||
Reference in New Issue
Block a user