Skip to content
GitLab
Menu
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
9ced67bd
Commit
9ced67bd
authored
Dec 03, 2009
by
mae
Browse files
workaround for the occasional auto-unfold when doing pageUp/pageDown
parent
58b009d3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetexteditor.cpp
View file @
9ced67bd
...
...
@@ -1225,7 +1225,9 @@ void BaseTextEditor::setTextCursor(const QTextCursor &cursor)
{
// workaround for QTextControl bug
bool
selectionChange
=
cursor
.
hasSelection
()
||
textCursor
().
hasSelection
();
QPlainTextEdit
::
setTextCursor
(
cursor
);
QTextCursor
c
=
cursor
;
c
.
setVisualNavigation
(
true
);
QPlainTextEdit
::
setTextCursor
(
c
);
if
(
selectionChange
)
slotSelectionChanged
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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