aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2022-11-09 15:38:22 +0100
committerDavid Schulz <david.schulz@qt.io>2022-11-14 13:02:51 +0000
commit09ee528c40de17401487974dae5ce708079ac8ad (patch)
tree6dae9a77cb60b6c3e16a1f0fbd99ad465b40b73b /src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
parent33a33612c8ff92bb541d76cb338675f16beb4281 (diff)
Editor: unify assist processor handling
Define the run type of the processor by its implementation instead of a enum value of the provider. The execution of a processor inside the assist now follows a unified procedure. Change-Id: Ibe9fab324c6072e77702c2663946d7a9f562a085 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp')
-rw-r--r--src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
index b2715df843..ed590e7406 100644
--- a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
+++ b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
@@ -17,6 +17,7 @@
#include <projectexplorer/kitmanager.h>
#include <projectexplorer/projectexplorer.h>
+#include <texteditor/codeassist/asyncprocessor.h>
#include <texteditor/codeassist/genericproposalmodel.h>
#include <texteditor/codeassist/iassistprocessor.h>
#include <texteditor/codeassist/iassistproposal.h>
@@ -120,11 +121,12 @@ public:
AssistInterface *assistInterface
= m_editorWidget->createAssistInterface(FollowSymbol, ExplicitlyInvoked);
- const QScopedPointer<IAssistProcessor> processor(createProcessor(assistInterface));
-
+ const QScopedPointer<AsyncProcessor> processor(
+ dynamic_cast<AsyncProcessor *>(createProcessor(assistInterface)));
const QScopedPointer<IAssistProposal> immediateProposal(
processor->immediateProposal(assistInterface));
- const QScopedPointer<IAssistProposal> finalProposal(processor->perform(assistInterface));
+ const QScopedPointer<IAssistProposal> finalProposal(
+ processor->performAsync(assistInterface));
VirtualFunctionAssistProvider::clearParams();