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
ddfd46b3
Commit
ddfd46b3
authored
Dec 11, 2008
by
mae
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nicer (un)comment selection, avoid C-style selections when you can do C++ style.
parent
6adb3f61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/plugins/cppeditor/cppeditor.cpp
src/plugins/cppeditor/cppeditor.cpp
+2
-1
No files found.
src/plugins/cppeditor/cppeditor.cpp
View file @
ddfd46b3
...
...
@@ -744,7 +744,8 @@ void CPPEditor::unCommentSelection()
QString
endText
=
endBlock
.
text
();
int
endPos
=
end
-
endBlock
.
position
();
bool
hasTrailingCharacters
=
!
endText
.
mid
(
endPos
).
trimmed
().
isEmpty
();
bool
hasTrailingCharacters
=
!
endText
.
left
(
endPos
).
remove
(
QLatin1String
(
"//"
)).
trimmed
().
isEmpty
()
&&
!
endText
.
mid
(
endPos
).
trimmed
().
isEmpty
();
if
((
endPos
<=
endText
.
length
()
-
2
&&
endText
.
at
(
endPos
)
==
QLatin1Char
(
'*'
)
&&
endText
.
at
(
endPos
+
1
)
==
QLatin1Char
(
'/'
)))
{
...
...
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