diff options
author | David Schulz <david.schulz@theqtcompany.com> | 2016-03-16 13:04:05 +0100 |
---|---|---|
committer | David Schulz <david.schulz@theqtcompany.com> | 2016-04-28 12:14:41 +0000 |
commit | 898968b101abe4d197f0cfcdcdcebb58dfe0fe3c (patch) | |
tree | 87c83c2bba27bcea3d21db164925fc9197b940c2 /src/plugins/cppeditor/cppquickfixassistant.h | |
parent | 16aeecea2c88d64d29f1d4f4e02939c790445e87 (diff) |
CodeAssist: Support only one quickfix assistant per editor class.
Currently we are just using the first that is found. Which could lead
to unexpected behavior. Adjust the API to make clear just one assistant
is supported per editor type.
Change-Id: I711e66b4c5c5f347118357a8bafa0ffc6d650f7e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppquickfixassistant.h')
-rw-r--r-- | src/plugins/cppeditor/cppquickfixassistant.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppquickfixassistant.h b/src/plugins/cppeditor/cppquickfixassistant.h index 96c259aab4..20a1b73980 100644 --- a/src/plugins/cppeditor/cppquickfixassistant.h +++ b/src/plugins/cppeditor/cppquickfixassistant.h @@ -71,6 +71,7 @@ private: class CppQuickFixAssistProvider : public TextEditor::QuickFixAssistProvider { public: + CppQuickFixAssistProvider(QObject *parent = 0) : TextEditor::QuickFixAssistProvider(parent) {} IAssistProvider::RunType runType() const override; bool supportsEditor(Core::Id editorId) const override; TextEditor::IAssistProcessor *createProcessor() const override; |