21 #ifndef __qMRMLNodeComboBoxDelegate_h 22 #define __qMRMLNodeComboBoxDelegate_h 25 #include <QItemDelegate> 28 #include "qMRMLWidgetsExport.h" 49 static bool isSeparator(
const QModelIndex &index);
50 static void setSeparator(QAbstractItemModel *model,
const QModelIndex &index);
56 virtual void paint(QPainter *painter,
57 const QStyleOptionViewItem &option,
58 const QModelIndex &index)
const;
60 virtual QSize sizeHint(
const QStyleOptionViewItem &option,
61 const QModelIndex &index)
const;
63 virtual void drawDisplay(QPainter *painter,
64 const QStyleOptionViewItem &option,
66 const QString &text)
const;
68 virtual void drawFocus(QPainter *painter,
69 const QStyleOptionViewItem &option,
70 const QRect &rect)
const;
77 #endif // __qMRMLNodeComboBoxDelegate_h