GenericProposalModel Class | Extending Qt Creator Manual

Extending Qt Creator Manual | GenericProposalModel

Extending Qt Creator Manual 4.4.1

# GenericProposalModel Class

(TextEditor::GenericProposalModel)

Inherits: | TextEditor::IAssistProposalModel

- List of all members, including inherited members

## Public Functions

| GenericProposalModel()
| ~GenericProposalModel()
virtual bool | containsDuplicates() const
virtual QString | detail(int index) const
virtual void | filter(const QString &prefix)
bool | hasItemsToPropose(const QString &prefix, AssistReason reason) const
virtual QIcon | icon(int index) const
bool | isPerfectMatch(const QString &prefix) const
bool | isPrefiltered(const QString &prefix) const
virtual bool | isSortable(const QString &prefix) const
virtual bool | keepPerfectMatch(AssistReason reason) const
void | loadContent(const QList<AssistProposalItemInterface *> &items)
virtual int | persistentId(int index) const
virtual AssistProposalItemInterface * | proposalItem(int index) const
virtual QString | proposalPrefix() const
virtual void | removeDuplicates()
void | setPrefilterPrefix(const QString &prefix)
virtual void | sort(const QString &prefix)
virtual bool | supportsPrefixExpansion() const

## Reimplemented Public Functions

virtual void | reset() override
virtual int | size() const override
virtual QString | text(int index) const override

- 3 public functions inherited from TextEditor::IAssistProposalModel

## Member Function Documentation

### GenericProposalModel::GenericProposalModel()

Default constructs an instance of GenericProposalModel.

### GenericProposalModel::~GenericProposalModel()

Destroys the instance of GenericProposalModel.

### `[virtual]` bool GenericProposalModel::containsDuplicates() const

### `[virtual]` QString GenericProposalModel::detail(int index) const

### `[virtual]` void GenericProposalModel::filter(const QString &prefix)

### bool GenericProposalModel::hasItemsToPropose(const QString &prefix, AssistReason reason) const

### `[virtual]` QIcon GenericProposalModel::icon(int index) const

### bool GenericProposalModel::isPerfectMatch(const QString &prefix) const

### bool GenericProposalModel::isPrefiltered(const QString &prefix) const

### `[virtual]` bool GenericProposalModel::isSortable(const QString &prefix) const

### `[virtual]` bool GenericProposalModel::keepPerfectMatch(AssistReason reason) const

### void GenericProposalModel::loadContent(const QList<AssistProposalItemInterface *> &items)

### `[virtual]` int GenericProposalModel::persistentId(int index) const

### `[virtual]` AssistProposalItemInterface *GenericProposalModel::proposalItem(int index) const

### `[virtual]` QString GenericProposalModel::proposalPrefix() const

### `[virtual]` void GenericProposalModel::removeDuplicates()

### `[override virtual]` void GenericProposalModel::reset()

### void GenericProposalModel::setPrefilterPrefix(const QString &prefix)

### `[override virtual]` int GenericProposalModel::size() const

### `[virtual]` void GenericProposalModel::sort(const QString &prefix)

### `[virtual]` bool GenericProposalModel::supportsPrefixExpansion() const

### `[override virtual]` QString GenericProposalModel::text(int index) const