forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -61,7 +61,7 @@ public:
|
||||
class QmlJSAssistProposalModel : public TextEditor::GenericProposalModel
|
||||
{
|
||||
public:
|
||||
QmlJSAssistProposalModel(const QList<TextEditor::AssistProposalItem *> &items)
|
||||
QmlJSAssistProposalModel(const QList<TextEditor::AssistProposalItemInterface *> &items)
|
||||
{
|
||||
loadContent(items);
|
||||
}
|
||||
@@ -109,7 +109,7 @@ private:
|
||||
|
||||
int m_startPosition;
|
||||
QScopedPointer<const QmlJSCompletionAssistInterface> m_interface;
|
||||
QList<TextEditor::AssistProposalItem *> m_completions;
|
||||
QList<TextEditor::AssistProposalItemInterface *> m_completions;
|
||||
TextEditor::SnippetAssistCollector m_snippetCollector;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user