Commit a66f3e8c authored by Marco Bubke's avatar Marco Bubke

Clang: Cancel query progress bar

Change-Id: I1b8a4ec052a548e5ed09f39c3f0d3c87b13a6bd4
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent b52f5597
......@@ -55,6 +55,12 @@ void QtCreatorSearchHandle::setResultCounter(uint counter)
promise.setProgressValue(counter);
}
void QtCreatorSearchHandle::cancel()
{
SearchHandle::cancel();
promise.reportCanceled();
}
void QtCreatorSearchHandle::finishSearch()
{
searchResult->finishSearch(false);
......
......@@ -45,6 +45,8 @@ public:
void setExpectedResultCount(uint count) override;
void setResultCounter(uint counter) override;
void cancel() override;
void finishSearch() override;
private:
......
......@@ -45,7 +45,7 @@ public:
virtual void finishSearch() = 0;
void cancel();
virtual void cancel();
void setRefactoringServer(ClangBackEnd::RefactoringServerInterface *server);
......
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