forked from qt-creator/qt-creator
TextEditor: use cursor to comment selection
preparation for multi cursor support Change-Id: I57d318ee325e3667a6377a972a0eda66e43d0349 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
@@ -7336,8 +7336,11 @@ void TextEditorWidget::rewrapParagraph()
|
||||
|
||||
void TextEditorWidget::unCommentSelection()
|
||||
{
|
||||
Utils::unCommentSelection(this, d->m_commentDefinition,
|
||||
d->m_document->typingSettings().m_preferSingleLineComments);
|
||||
const bool singleLine = d->m_document->typingSettings().m_preferSingleLineComments;
|
||||
const QTextCursor cursor = Utils::unCommentSelection(textCursor(),
|
||||
d->m_commentDefinition,
|
||||
singleLine);
|
||||
setTextCursor(cursor);
|
||||
}
|
||||
|
||||
void TextEditorWidget::autoFormat()
|
||||
|
||||
Reference in New Issue
Block a user