AnnotatedItemDelegate Class
(Utils::AnnotatedItemDelegate)Public Functions
AnnotatedItemDelegate(QObject *parent = nullptr) | |
~AnnotatedItemDelegate() override | |
int | annotationRole() const |
const QString & | delimiter() const |
void | setAnnotationRole(int role) |
void | setDelimiter(const QString &delimiter) |
Protected Functions
void | paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
QSize | sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override |
Member Function Documentation
AnnotatedItemDelegate::AnnotatedItemDelegate(QObject *parent = nullptr)
Default constructs an instance of AnnotatedItemDelegate.
AnnotatedItemDelegate::~AnnotatedItemDelegate()
Destroys the instance of AnnotatedItemDelegate.
int AnnotatedItemDelegate::annotationRole() const
See also setAnnotationRole().
const QString &AnnotatedItemDelegate::delimiter() const
See also setDelimiter().
[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().