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
d430a412
Commit
d430a412
authored
Jul 08, 2009
by
mae
Browse files
fix uses selection (type with block and line numbers)
parent
e4b0bd28
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppeditor.cpp
View file @
d430a412
...
...
@@ -938,7 +938,7 @@ static void highlightUses(QTextDocument *doc,
QTextEdit
::
ExtraSelection
sel
;
sel
.
cursor
=
QTextCursor
(
doc
);
sel
.
cursor
.
setPosition
(
doc
->
findBlockByNumber
(
startLine
-
1
).
position
()
+
startColumn
-
1
);
sel
.
cursor
.
setPosition
(
doc
->
findBlockBy
Line
Number
(
endLine
-
1
).
position
()
+
endColumn
-
1
,
sel
.
cursor
.
setPosition
(
doc
->
findBlockByNumber
(
endLine
-
1
).
position
()
+
endColumn
-
1
,
QTextCursor
::
KeepAnchor
);
sel
.
format
=
format
;
...
...
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