diff options
author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-02-21 11:58:16 +0100 |
---|---|---|
committer | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-03-19 13:37:46 +0000 |
commit | 08d1274ccc0e9b116626afad60afaa970fe2fbbf (patch) | |
tree | e6fc80b45812c84f47bb72018b0e8362e3b31073 /src/plugins/cpptools/cppmodelmanager.h | |
parent | d471006d8136cd6f99f668d5a55e4f7a7483737e (diff) | |
download | qt-creator-08d1274ccc0e9b116626afad60afaa970fe2fbbf.tar.gz |
CppTools: Remove processEvents call from follow symbol
processEvents is a bad way of dealing with asynchronous
requests. Use QFutureWatcher for that purpose.
Change-Id: I3839cb9db80a6d391f6af1178e96986a325b7b99
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.h')
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h index a472fa4924..f7a9d6ddd6 100644 --- a/src/plugins/cpptools/cppmodelmanager.h +++ b/src/plugins/cpptools/cppmodelmanager.h @@ -163,7 +163,8 @@ public: const QString &replacement) final; void findUsages(const CppTools::CursorInEditor &data, UsagesCallback &&showUsagesCallback) const final; - Link globalFollowSymbol(const CursorInEditor &data, + void globalFollowSymbol(const CursorInEditor &data, + Utils::ProcessLinkCallback &&processLinkCallback, const CPlusPlus::Snapshot &snapshot, const CPlusPlus::Document::Ptr &documentFromSemanticInfo, SymbolFinder *symbolFinder, |