diff options
author | con <qtc-committer@nokia.com> | 2010-06-24 15:44:46 +0200 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-06-24 17:52:25 +0200 |
commit | e8c0c7895c8aee93bebd58e516b912dad3ffb4ab (patch) | |
tree | 3a7cdf18c7741fb634c86cf34b07885db5850d71 /src/plugins/projectexplorer/currentprojectfind.h | |
parent | 4214193d219dc0bd1e2d86d39216b9cc6ffd6843 (diff) |
Use iterator instead of collecting all the files to search beforehand.
Especially for the file system filter, it's better not to block while
collecting all the file names by first iterating over the file system.
Now, the filters return an iterator, and the search thread takes a file
from it, searches it, and takes the next file.
This also unifies the file iterator for the custom locator filters and
the find in files on file system search filter.
Task-number: QTCREATORBUG-1690
Diffstat (limited to 'src/plugins/projectexplorer/currentprojectfind.h')
-rw-r--r-- | src/plugins/projectexplorer/currentprojectfind.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/currentprojectfind.h b/src/plugins/projectexplorer/currentprojectfind.h index 53d57ff264..2e98e49e1b 100644 --- a/src/plugins/projectexplorer/currentprojectfind.h +++ b/src/plugins/projectexplorer/currentprojectfind.h @@ -64,7 +64,7 @@ public: void readSettings(QSettings *settings); protected: - QStringList files(); + Utils::FileIterator *files(); private: ProjectExplorerPlugin *m_plugin; |