Extending Qt Creator Manual | AnnotatedItemDelegate

Extending Qt Creator Manual 4.6.2

# AnnotatedItemDelegate Class

(Utils::AnnotatedItemDelegate)

- List of all members, including inherited members

## Public Functions

| AnnotatedItemDelegate(QObject *parent = 0)
virtual | ~AnnotatedItemDelegate()
int | annotationRole() const
const QString & | delimiter() const
void | setAnnotationRole(int role)
void | setDelimiter(const QString &delimiter)

## Protected Functions

virtual void | paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
virtual QSize | sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const

## Member Function Documentation

### AnnotatedItemDelegate::AnnotatedItemDelegate(QObject *parent = 0)

Default constructs an instance of AnnotatedItemDelegate.

### `[virtual]` AnnotatedItemDelegate::~AnnotatedItemDelegate()

Destroys the instance of AnnotatedItemDelegate. The destructor is virtual.

### int AnnotatedItemDelegate::annotationRole() const

See also setAnnotationRole().

### const QString &AnnotatedItemDelegate::delimiter() const

See also setDelimiter().

### `[virtual protected]` void AnnotatedItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const

### void AnnotatedItemDelegate::setAnnotationRole(int role)

See also annotationRole().

### void AnnotatedItemDelegate::setDelimiter(const QString &delimiter)

See also delimiter().

### `[virtual protected]` QSize AnnotatedItemDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const