forked from qt-creator/qt-creator
TextEditor: Rename BaseTextEditorWidget to TextEditorWidget
... and some of the related implementation details Change-Id: I1f03aa5acf2d3fb2cfc2a6a7845f3d3578b0408d Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -421,7 +421,7 @@ bool TextDocument::save(QString *errorString, const QString &saveFileName, bool
|
||||
QTextCursor cursor(&d->m_document);
|
||||
|
||||
// When autosaving, we don't want to modify the document/location under the user's fingers.
|
||||
BaseTextEditorWidget *editorWidget = 0;
|
||||
TextEditorWidget *editorWidget = 0;
|
||||
int savedPosition = 0;
|
||||
int savedAnchor = 0;
|
||||
int savedVScrollBarValue = 0;
|
||||
@@ -618,7 +618,7 @@ bool TextDocument::reload(QString *errorString)
|
||||
bool TextDocument::setPlainText(const QString &text)
|
||||
{
|
||||
if (text.size() > EditorManager::maxTextFileSize()) {
|
||||
document()->setPlainText(BaseTextEditorWidget::msgTextTooLarge(text.size()));
|
||||
document()->setPlainText(TextEditorWidget::msgTextTooLarge(text.size()));
|
||||
d->resetRevisions();
|
||||
document()->setModified(false);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user