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
9db13e32
Commit
9db13e32
authored
Apr 17, 2009
by
Oswald Buddenhagen
Browse files
make lupdate see the QApplication::translate() calls
parent
088cb9c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/utils/filesearch.cpp
View file @
9db13e32
...
...
@@ -72,7 +72,7 @@ void runFileSearch(QFutureInterface<FileSearchResult> &future,
future
.
waitForResume
();
if
(
future
.
isCanceled
())
{
future
.
setProgressValueAndText
(
numFilesSearched
,
q
App
->
translate
(
"FileSearch"
,
"%1: canceled. %2 occurrences found in %3 files."
).
Q
App
lication
::
translate
(
"FileSearch"
,
"%1: canceled. %2 occurrences found in %3 files."
).
arg
(
searchTerm
).
arg
(
numMatches
).
arg
(
numFilesSearched
));
break
;
}
...
...
@@ -146,11 +146,13 @@ void runFileSearch(QFutureInterface<FileSearchResult> &future,
firstChunk
=
false
;
}
++
numFilesSearched
;
future
.
setProgressValueAndText
(
numFilesSearched
,
qApp
->
translate
(
"FileSearch"
,
"%1: %2 occurrences found in %3 of %4 files."
).
future
.
setProgressValueAndText
(
numFilesSearched
,
QApplication
::
translate
(
"FileSearch"
,
"%1: %2 occurrences found in %3 of %4 files."
).
arg
(
searchTerm
).
arg
(
numMatches
).
arg
(
numFilesSearched
).
arg
(
files
.
size
()));
}
if
(
!
future
.
isCanceled
())
future
.
setProgressValueAndText
(
numFilesSearched
,
qApp
->
translate
(
"FileSearch"
,
"%1: %2 occurrences found in %3 files."
).
future
.
setProgressValueAndText
(
numFilesSearched
,
QApplication
::
translate
(
"FileSearch"
,
"%1: %2 occurrences found in %3 files."
).
arg
(
searchTerm
).
arg
(
numMatches
).
arg
(
numFilesSearched
));
}
...
...
@@ -172,7 +174,7 @@ void runFileSearchRegExp(QFutureInterface<FileSearchResult> &future,
future
.
waitForResume
();
if
(
future
.
isCanceled
())
{
future
.
setProgressValueAndText
(
numFilesSearched
,
q
App
->
translate
(
"FileSearch"
,
"%1: canceled. %2 occurrences found in %3 files."
).
Q
App
lication
::
translate
(
"FileSearch"
,
"%1: canceled. %2 occurrences found in %3 files."
).
arg
(
searchTerm
).
arg
(
numMatches
).
arg
(
numFilesSearched
));
break
;
}
...
...
@@ -193,11 +195,13 @@ void runFileSearchRegExp(QFutureInterface<FileSearchResult> &future,
++
lineNr
;
}
++
numFilesSearched
;
future
.
setProgressValueAndText
(
numFilesSearched
,
qApp
->
translate
(
"FileSearch"
,
"%1: %2 occurrences found in %3 of %4 files."
).
future
.
setProgressValueAndText
(
numFilesSearched
,
QApplication
::
translate
(
"FileSearch"
,
"%1: %2 occurrences found in %3 of %4 files."
).
arg
(
searchTerm
).
arg
(
numMatches
).
arg
(
numFilesSearched
).
arg
(
files
.
size
()));
}
if
(
!
future
.
isCanceled
())
future
.
setProgressValueAndText
(
numFilesSearched
,
qApp
->
translate
(
"FileSearch"
,
"%1: %2 occurrences found in %3 files."
).
future
.
setProgressValueAndText
(
numFilesSearched
,
QApplication
::
translate
(
"FileSearch"
,
"%1: %2 occurrences found in %3 files."
).
arg
(
searchTerm
).
arg
(
numMatches
).
arg
(
numFilesSearched
));
}
...
...
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