forked from qt-creator/qt-creator
TextEditor: Remove itexteditor.{h,cpp}
Move the remaining contents to more appropriate places. Change-Id: I55eed5c572bd33dafe2187523d9aa381c211fdd6 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -113,6 +113,7 @@
|
||||
is BaseTextEditorWidget.
|
||||
*/
|
||||
|
||||
|
||||
using namespace Core;
|
||||
using namespace Utils;
|
||||
|
||||
@@ -6829,7 +6830,7 @@ IAssistInterface *BaseTextEditorWidget::createAssistInterface(AssistKind kind,
|
||||
return new DefaultAssistInterface(document(), position(), d->m_document->filePath(), reason);
|
||||
}
|
||||
|
||||
QString TextEditor::BaseTextEditorWidget::foldReplacementText(const QTextBlock &) const
|
||||
QString BaseTextEditorWidget::foldReplacementText(const QTextBlock &) const
|
||||
{
|
||||
return QLatin1String("...");
|
||||
}
|
||||
@@ -6849,6 +6850,17 @@ bool BaseTextEditor::restoreState(const QByteArray &state)
|
||||
return m_editorWidget->restoreState(state);
|
||||
}
|
||||
|
||||
BaseTextEditorDocument *BaseTextEditor::textDocument()
|
||||
{
|
||||
return qobject_cast<BaseTextEditorDocument *>(document());
|
||||
}
|
||||
|
||||
|
||||
BaseTextEditor *BaseTextEditor::currentTextEditor()
|
||||
{
|
||||
return qobject_cast<BaseTextEditor *>(Core::EditorManager::currentEditor());
|
||||
}
|
||||
|
||||
} // namespace TextEditor
|
||||
|
||||
#include "basetexteditor.moc"
|
||||
|
||||
Reference in New Issue
Block a user