Slicer  4.8
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

virtual void drawDisplay (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect, const QString &text) const
 
virtual void drawFocus (QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect) const
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 

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()

virtual void qMRMLNodeComboBoxDelegate::drawDisplay ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QRect &  rect,
const QString &  text 
) const
protectedvirtual

◆ drawFocus()

virtual void qMRMLNodeComboBoxDelegate::drawFocus ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QRect &  rect 
) const
protectedvirtual

◆ isSeparator()

static bool qMRMLNodeComboBoxDelegate::isSeparator ( const QModelIndex &  index)
static

◆ paint()

virtual void qMRMLNodeComboBoxDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
protectedvirtual

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()

virtual QSize qMRMLNodeComboBoxDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
protectedvirtual

The documentation for this class was generated from the following file: