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

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