#include <Libs/MRML/Widgets/qMRMLNodeComboBoxDelegate.h>
|
static bool | isSeparator (const QModelIndex &index) |
|
static void | setSeparator (QAbstractItemModel *model, const QModelIndex &index) |
|
|
void | drawDisplay (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QString &text) const override |
|
void | drawFocus (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect) const override |
|
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
|
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
|
Definition at line 42 of file qMRMLNodeComboBoxDelegate.h.
◆ Superclass
◆ qMRMLNodeComboBoxDelegate()
qMRMLNodeComboBoxDelegate::qMRMLNodeComboBoxDelegate |
( |
QObject * |
parent, |
|
|
QComboBox * |
comboBox |
|
) |
| |
◆ drawDisplay()
void qMRMLNodeComboBoxDelegate::drawDisplay |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QRect & |
rect, |
|
|
const QString & |
text |
|
) |
| const |
|
overrideprotected |
◆ drawFocus()
void qMRMLNodeComboBoxDelegate::drawFocus |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QRect & |
rect |
|
) |
| const |
|
overrideprotected |
◆ isSeparator()
static bool qMRMLNodeComboBoxDelegate::isSeparator |
( |
const QModelIndex & |
index | ) |
|
|
static |
◆ paint()
void qMRMLNodeComboBoxDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
overrideprotected |
Reimplemented to force the highlight in case the item is not selectable but current. The highlight color used is then slightly different from the default color
◆ setSeparator()
static void qMRMLNodeComboBoxDelegate::setSeparator |
( |
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
static |
◆ sizeHint()
QSize qMRMLNodeComboBoxDelegate::sizeHint |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
overrideprotected |
The documentation for this class was generated from the following file: