Commit 654aa3a0 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Use a progress timer for Grep



Change-Id: I579bd9bf9e4060f4620afcbd42ac866d0d19bd37
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent c997e5e5
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "gitclient.h" #include "gitclient.h"
#include "gitplugin.h" #include "gitplugin.h"
#include <coreplugin/progressmanager/progressmanager.h>
#include <coreplugin/vcsmanager.h> #include <coreplugin/vcsmanager.h>
#include <texteditor/findinfiles.h> #include <texteditor/findinfiles.h>
#include <vcsbase/vcscommand.h> #include <vcsbase/vcscommand.h>
...@@ -116,9 +117,6 @@ public: ...@@ -116,9 +117,6 @@ public:
void exec() void exec()
{ {
m_fi.setProgressRange(0, 1);
m_fi.setProgressValue(0);
QStringList arguments; QStringList arguments;
arguments << QLatin1String("-c") << QLatin1String("color.grep.match=bold red") arguments << QLatin1String("-c") << QLatin1String("color.grep.match=bold red")
<< QLatin1String("grep") << QLatin1String("-zn") << QLatin1String("grep") << QLatin1String("-zn")
...@@ -161,6 +159,7 @@ public: ...@@ -161,6 +159,7 @@ public:
TextEditor::FileFindParameters parameters) TextEditor::FileFindParameters parameters)
{ {
GitGrepRunner runner(fi, parameters); GitGrepRunner runner(fi, parameters);
Core::ProgressTimer progress(fi, 20);
runner.exec(); runner.exec();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment