Clang: Do not call processEvents call in local renaming

Use QFutureWatcher and lambda instead.

Task-number: QTCREATORBUG-19799
Change-Id: I00e9439d46609902cbfb02906280c0c96b8c884e
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Ivan Donchevskii
2018-02-21 13:00:06 +01:00
parent 336ab17614
commit 66fe088ab8
2 changed files with 26 additions and 21 deletions

View File

@@ -26,6 +26,9 @@
#pragma once
#include <cpptools/refactoringengineinterface.h>
#include <cpptools/cppcursorinfo.h>
#include <QFutureWatcher>
namespace ClangBackEnd {
class RefactoringClientInterface;
@@ -49,6 +52,10 @@ public:
{
return Link();
}
private:
using FutureCursorWatcher = QFutureWatcher<CppTools::CursorInfo>;
FutureCursorWatcher m_watcher;
};
} // namespace ClangRefactoring