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 void paint(QPainter *painter,
57 const QStyleOptionViewItem &option,
58 const QModelIndex &index)
const override;
60 QSize sizeHint(
const QStyleOptionViewItem &option,
61 const QModelIndex &index)
const override;
63 void drawDisplay(QPainter *painter,
64 const QStyleOptionViewItem &option,
66 const QString &text)
const override;
68 void drawFocus(QPainter *painter,
69 const QStyleOptionViewItem &option,
70 const QRect &rect)
const override;
77 #endif // __qMRMLNodeComboBoxDelegate_h