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:
@@ -214,7 +214,7 @@ void CodepasterPlugin::postEditor()
|
||||
if (const BaseTextEditor *textEditor = qobject_cast<const BaseTextEditor *>(editor))
|
||||
data = textEditor->selectedText();
|
||||
if (data.isEmpty()) {
|
||||
if (const BaseTextEditorDocument *textDocument = qobject_cast<const BaseTextEditorDocument *>(document))
|
||||
if (auto textDocument = qobject_cast<const BaseTextDocument *>(document))
|
||||
data = textDocument->plainText();
|
||||
}
|
||||
post(data, mimeType);
|
||||
|
||||
Reference in New Issue
Block a user