forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user