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
01332cfb
Commit
01332cfb
authored
Dec 02, 2008
by
Oswald Buddenhagen
Browse files
escape backslash => make "whole words only" work with "regular expression"
parent
2f1f67f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/utils/filesearch.cpp
View file @
01332cfb
...
...
@@ -165,7 +165,7 @@ void runFileSearchRegExp(QFutureInterface<FileSearchResult> &future,
int
numFilesSearched
=
0
;
int
numMatches
=
0
;
if
(
flags
&
QTextDocument
::
FindWholeWords
)
searchTerm
=
QString
(
"
\b
%1
\b
"
).
arg
(
searchTerm
);
searchTerm
=
QString
(
"
\
\
b%1
\
\
b"
).
arg
(
searchTerm
);
Qt
::
CaseSensitivity
caseSensitivity
=
(
flags
&
QTextDocument
::
FindCaseSensitively
)
?
Qt
::
CaseSensitive
:
Qt
::
CaseInsensitive
;
QRegExp
expression
(
searchTerm
,
caseSensitivity
);
...
...
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