forked from qt-creator/qt-creator
		
	C++: add test-case for member access replacement in completion.
Change-Id: Id5fe00b94a6622178db9bd26f54d29efe88970f7 Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
		| @@ -58,7 +58,6 @@ | ||||
| #include <coreplugin/mimedatabase.h> | ||||
| #include <cppeditor/cppeditorconstants.h> | ||||
| #include <texteditor/codeassist/basicproposalitem.h> | ||||
| #include <texteditor/codeassist/basicproposalitemlistmodel.h> | ||||
| #include <texteditor/codeassist/genericproposal.h> | ||||
| #include <texteditor/codeassist/ifunctionhintproposalmodel.h> | ||||
| #include <texteditor/codeassist/functionhintproposal.h> | ||||
| @@ -91,29 +90,6 @@ struct CompleteFunctionDeclaration | ||||
|     Function *function; | ||||
| }; | ||||
|  | ||||
| // ---------------------- | ||||
| // CppAssistProposalModel | ||||
| // ---------------------- | ||||
| class CppAssistProposalModel : public TextEditor::BasicProposalItemListModel | ||||
| { | ||||
| public: | ||||
|     CppAssistProposalModel() | ||||
|         : TextEditor::BasicProposalItemListModel() | ||||
|         , m_completionOperator(T_EOF_SYMBOL) | ||||
|         , m_replaceDotForArrow(false) | ||||
|         , m_typeOfExpression(new TypeOfExpression) | ||||
|     { | ||||
|         m_typeOfExpression->setExpandTemplates(true); | ||||
|     } | ||||
|  | ||||
|     virtual bool isSortable(const QString &prefix) const; | ||||
|     virtual IAssistProposalItem *proposalItem(int index) const; | ||||
|  | ||||
|     unsigned m_completionOperator; | ||||
|     bool m_replaceDotForArrow; | ||||
|     QSharedPointer<TypeOfExpression> m_typeOfExpression; | ||||
| }; | ||||
|  | ||||
| // --------------------- | ||||
| // CppAssistProposalItem | ||||
| // --------------------- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user