Commit 7ec3f735 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Center the cursor after (un)collapse all

Requested on the mailing list. Increases usability.
parent b32198d7
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment