aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/glsleditor
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2021-09-15 07:04:12 +0200
committerDavid Schulz <david.schulz@qt.io>2021-09-16 08:25:36 +0000
commit4324f3e8c1ddb4250ba2e73bd9cb4bd00d49f595 (patch)
tree1d9d21862c369f0d7b0acf45233a8444614e8fb9 /src/plugins/glsleditor
parent897d3349fa3e4ed0a28e70ccbb0b8730a62058cb (diff)
Editor: pass AssistInterface to createProcessor
The interface can be used for checking the context of a codeassist request to determine the correct processor that has to be created. Change-Id: I47ddb05c46399566e27bae21711f11a3a4132c3f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/glsleditor')
-rw-r--r--src/plugins/glsleditor/glslcompletionassist.cpp2
-rw-r--r--src/plugins/glsleditor/glslcompletionassist.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/glsleditor/glslcompletionassist.cpp b/src/plugins/glsleditor/glslcompletionassist.cpp
index c818791ee1..60ee6c8214 100644
--- a/src/plugins/glsleditor/glslcompletionassist.cpp
+++ b/src/plugins/glsleditor/glslcompletionassist.cpp
@@ -187,7 +187,7 @@ static QIcon glslIcon(IconTypes iconType)
// ----------------------------
// GlslCompletionAssistProvider
// ----------------------------
-IAssistProcessor *GlslCompletionAssistProvider::createProcessor() const
+IAssistProcessor *GlslCompletionAssistProvider::createProcessor(const AssistInterface *) const
{
return new GlslCompletionAssistProcessor;
}
diff --git a/src/plugins/glsleditor/glslcompletionassist.h b/src/plugins/glsleditor/glslcompletionassist.h
index 3e13da730d..596ddac25f 100644
--- a/src/plugins/glsleditor/glslcompletionassist.h
+++ b/src/plugins/glsleditor/glslcompletionassist.h
@@ -83,7 +83,7 @@ class GlslCompletionAssistProvider : public TextEditor::CompletionAssistProvider
Q_OBJECT
public:
- TextEditor::IAssistProcessor *createProcessor() const override;
+ TextEditor::IAssistProcessor *createProcessor(const TextEditor::AssistInterface *) const override;
int activationCharSequenceLength() const override;
bool isActivationCharSequence(const QString &sequence) const override;