Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
qMRMLNodeComboBoxDelegate Class Reference

#include <Libs/MRML/Widgets/qMRMLNodeComboBoxDelegate.h>

Inheritance diagram for qMRMLNodeComboBoxDelegate:
Inheritance graph
[legend]
Collaboration diagram for qMRMLNodeComboBoxDelegate:
Collaboration graph
[legend]

Public Types

typedef QItemDelegate Superclass
 

Public Member Functions

 qMRMLNodeComboBoxDelegate (QObject *parent, QComboBox *comboBox)
 

Static Public Member Functions

static bool isSeparator (const QModelIndex &index)
 
static void setSeparator (QAbstractItemModel *model, const QModelIndex &index)
 

Protected Member Functions

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
 

Detailed Description

Definition at line 42 of file qMRMLNodeComboBoxDelegate.h.

Member Typedef Documentation

◆ Superclass

Definition at line 46 of file qMRMLNodeComboBoxDelegate.h.

Constructor & Destructor Documentation

◆ qMRMLNodeComboBoxDelegate()

qMRMLNodeComboBoxDelegate::qMRMLNodeComboBoxDelegate ( QObject *  parent,
QComboBox *  comboBox 
)

Member Function Documentation

◆ 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: