forked from qt-creator/qt-creator
Center the cursor after (un)collapse all
Requested on the mailing list. Increases usability.
This commit is contained in:
@@ -3463,12 +3463,12 @@ void BaseTextEditor::unCollapseAll()
|
||||
if (TextBlockUserData::canCollapse(block))
|
||||
TextBlockUserData::doCollapse(block, makeVisible);
|
||||
block = block.next();
|
||||
|
||||
}
|
||||
|
||||
d->moveCursorVisible();
|
||||
documentLayout->requestUpdate();
|
||||
documentLayout->emitDocumentSizeChanged();
|
||||
centerCursor();
|
||||
}
|
||||
|
||||
void BaseTextEditor::setTextCodec(QTextCodec *codec)
|
||||
|
||||
Reference in New Issue
Block a user