Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
7ec3f735
Commit
7ec3f735
authored
Feb 17, 2009
by
Thorbjørn Lindeijer
Browse files
Center the cursor after (un)collapse all
Requested on the mailing list. Increases usability.
parent
b32198d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetexteditor.cpp
View file @
7ec3f735
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment