diff options
author | Marco Bubke <marco.bubke@theqtcompany.com> | 2016-02-01 14:51:01 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@theqtcompany.com> | 2016-02-01 14:01:35 +0000 |
commit | c903f4974f3ed403b1cc4af4f143922d8ebc7961 (patch) | |
tree | 8212fe73b701edd3826b8972c76913beec197e4c /src/plugins/texteditor/snippets/snippetassistcollector.h | |
parent | e42bf6ebc637e9ef4ec95787374c9743eb80d8d4 (diff) | |
download | qt-creator-c903f4974f3ed403b1cc4af4f143922d8ebc7961.tar.gz |
TextEditor: Introduce AssistProposalItemInterface
For unit test we need to break every dependency to the TextEditor
Widget etc.. With an abstract interface we can implement it in clang
without relying on unwanted dependencies. It makes it also easier to
compute the values deferred.
Change-Id: I1b313a1625f4e80bd324ab4bf1a7c4f6b690abe9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/snippets/snippetassistcollector.h')
-rw-r--r-- | src/plugins/texteditor/snippets/snippetassistcollector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/snippets/snippetassistcollector.h b/src/plugins/texteditor/snippets/snippetassistcollector.h index ef727342c7..59f4df8e91 100644 --- a/src/plugins/texteditor/snippets/snippetassistcollector.h +++ b/src/plugins/texteditor/snippets/snippetassistcollector.h @@ -34,7 +34,7 @@ namespace TextEditor { -class AssistProposalItem; +class AssistProposalItemInterface; class TEXTEDITOR_EXPORT SnippetAssistCollector { @@ -42,7 +42,7 @@ public: SnippetAssistCollector(const QString &groupId, const QIcon &icon, int order = 0); ~SnippetAssistCollector(); - QList<AssistProposalItem *> collect() const; + QList<AssistProposalItemInterface *> collect() const; private: QString m_groupId; |