Ensure the user can stop a semantic search and added a method to get a pointer to the ModelManagerInterface.

This commit is contained in:
Roberto Raggi
2009-10-05 13:43:05 +02:00
parent 1395b87fc8
commit b5d6bf73d6
4 changed files with 23 additions and 0 deletions

View File

@@ -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());