diff options
| author | Orgad Shaneh <[email protected]> | 2016-02-06 21:57:33 +0200 |
|---|---|---|
| committer | Orgad Shaneh <[email protected]> | 2016-02-09 09:09:14 +0000 |
| commit | 654aa3a0d778cd27c34d07c87304b900a780bda1 (patch) | |
| tree | 8e2900c3e3c8ef34eaf29bc3cc320cd7e913e2aa /src/plugins/git/gitgrep.cpp | |
| parent | c997e5e54c5db30b94f76a012984cc9fda250744 (diff) | |
Git: Use a progress timer for Grep
Change-Id: I579bd9bf9e4060f4620afcbd42ac866d0d19bd37
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/git/gitgrep.cpp')
| -rw-r--r-- | src/plugins/git/gitgrep.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/git/gitgrep.cpp b/src/plugins/git/gitgrep.cpp index bfeb27f2579..a00fa401b54 100644 --- a/src/plugins/git/gitgrep.cpp +++ b/src/plugins/git/gitgrep.cpp @@ -27,6 +27,7 @@ #include "gitclient.h" #include "gitplugin.h" +#include <coreplugin/progressmanager/progressmanager.h> #include <coreplugin/vcsmanager.h> #include <texteditor/findinfiles.h> #include <vcsbase/vcscommand.h> @@ -116,9 +117,6 @@ public: void exec() { - m_fi.setProgressRange(0, 1); - m_fi.setProgressValue(0); - QStringList arguments; arguments << QLatin1String("-c") << QLatin1String("color.grep.match=bold red") << QLatin1String("grep") << QLatin1String("-zn") @@ -161,6 +159,7 @@ public: TextEditor::FileFindParameters parameters) { GitGrepRunner runner(fi, parameters); + Core::ProgressTimer progress(fi, 20); runner.exec(); } |
