diff options
| author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-05 13:43:05 +0200 |
|---|---|---|
| committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-05 13:43:05 +0200 |
| commit | b5d6bf73d6d4bfc132a33dd00766e426d42ec6dd (patch) | |
| tree | 577b0304b47b78dd2b34ac28618f7f118383dcba /src/plugins/cpptools/cppfindreferences.cpp | |
| parent | 1395b87fc82cb9b77e5f5550c4357f7e6ebab345 (diff) | |
| download | qt-creator-b5d6bf73d6d4bfc132a33dd00766e426d42ec6dd.tar.gz | |
Ensure the user can stop a semantic search and added a method to get a pointer to the ModelManagerInterface.
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
| -rw-r--r-- | src/plugins/cpptools/cppfindreferences.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp index fcbce895bf..a55a9e95eb 100644 --- a/src/plugins/cpptools/cppfindreferences.cpp +++ b/src/plugins/cpptools/cppfindreferences.cpp @@ -466,6 +466,12 @@ static void find_helper(QFutureInterface<Utils::FileSearchResult> &future, future.setProgressRange(0, files.size()); for (int i = 0; i < files.size(); ++i) { + if (future.isPaused()) + future.waitForResume(); + + if (future.isCanceled()) + break; + const QString &fileName = files.at(i); future.setProgressValueAndText(i, QFileInfo(fileName).fileName()); |
