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/libs/utils | |
parent | d471006d8136cd6f99f668d5a55e4f7a7483737e (diff) |
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/libs/utils')
-rw-r--r-- | src/libs/utils/link.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/utils/link.h b/src/libs/utils/link.h index 8f89e4e7fd..d6df02c076 100644 --- a/src/libs/utils/link.h +++ b/src/libs/utils/link.h @@ -28,6 +28,8 @@ #include <QString> #include <qmetatype.h> +#include <functional> + namespace Utils { struct Link @@ -57,6 +59,8 @@ struct Link int targetColumn; }; +using ProcessLinkCallback = std::function<void(const Link &)>; + } // namespace Utils Q_DECLARE_METATYPE(Utils::Link) |