summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppmodelmanager.h
diff options
context:
space:
mode:
authorIvan Donchevskii <ivan.donchevskii@qt.io>2018-02-21 11:58:16 +0100
committerIvan Donchevskii <ivan.donchevskii@qt.io>2018-03-19 13:37:46 +0000
commit08d1274ccc0e9b116626afad60afaa970fe2fbbf (patch)
treee6fc80b45812c84f47bb72018b0e8362e3b31073 /src/plugins/cpptools/cppmodelmanager.h
parentd471006d8136cd6f99f668d5a55e4f7a7483737e (diff)
downloadqt-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.h3
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,