forked from qt-creator/qt-creator
TextEditor: Consolidate document access functions.
There was document(), textDocument() and baseTextDocument(). Two should be enough... Change-Id: Id9e41c8d857c5cb3269a9fce5ab594d34448c982 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -294,7 +294,7 @@ bool CppDocumentationCommentHelper::handleKeyPressEvent(QKeyEvent *e) const
|
||||
cursor.setPosition(pos);
|
||||
cursor.insertText(comment);
|
||||
cursor.setPosition(pos - 3, QTextCursor::KeepAnchor);
|
||||
m_editorWidget->baseTextDocument()->autoIndent(cursor);
|
||||
m_editorWidget->textDocument()->autoIndent(cursor);
|
||||
cursor.endEditBlock();
|
||||
e->accept();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user