Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
d430a412
Commit
d430a412
authored
Jul 08, 2009
by
mae
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix uses selection (type with block and line numbers)
parent
e4b0bd28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/plugins/cppeditor/cppeditor.cpp
src/plugins/cppeditor/cppeditor.cpp
+1
-1
No files found.
src/plugins/cppeditor/cppeditor.cpp
View file @
d430a412
...
@@ -938,7 +938,7 @@ static void highlightUses(QTextDocument *doc,
...
@@ -938,7 +938,7 @@ static void highlightUses(QTextDocument *doc,
QTextEdit
::
ExtraSelection
sel
;
QTextEdit
::
ExtraSelection
sel
;
sel
.
cursor
=
QTextCursor
(
doc
);
sel
.
cursor
=
QTextCursor
(
doc
);
sel
.
cursor
.
setPosition
(
doc
->
findBlockByNumber
(
startLine
-
1
).
position
()
+
startColumn
-
1
);
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
);
QTextCursor
::
KeepAnchor
);
sel
.
format
=
format
;
sel
.
format
=
format
;
...
...
Write
Preview
Markdown
is supported
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