forked from qt-creator/qt-creator
TextEditor: Wiggle codeassist setup
Remove GenericProposalModel convenience constructor, add GenericProposal instead. Less user side code. Change-Id: I833f9943df27b50579485c93efb96943ec403f65 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -427,14 +427,8 @@ IAssistProposal *GlslCompletionAssistProcessor::perform(const AssistInterface *i
|
||||
}
|
||||
|
||||
m_startPosition = pos + 1;
|
||||
return createContentProposal();
|
||||
}
|
||||
|
||||
IAssistProposal *GlslCompletionAssistProcessor::createContentProposal() const
|
||||
{
|
||||
GenericProposalModel *model = new GenericProposalModel(m_completions);
|
||||
IAssistProposal *proposal = new GenericProposal(m_startPosition, model);
|
||||
return proposal;
|
||||
return new GenericProposal(m_startPosition, m_completions);
|
||||
}
|
||||
|
||||
IAssistProposal *GlslCompletionAssistProcessor::createHintProposal(
|
||||
|
||||
Reference in New Issue
Block a user