1 #ifndef __libquark_gui_ImageDelegate_hxx 2 #define __libquark_gui_ImageDelegate_hxx 4 #include <QAbstractItemDelegate> 36 virtual void paint(QPainter *painter,
const QStyleOptionViewItem &option,
37 const QModelIndex &index)
const;
40 virtual QSize
sizeHint(
const QStyleOptionViewItem &option,
41 const QModelIndex &index)
const;
52 #endif // __libquark_gui_ImageDelegate_hxx void setBorderColor(QColor borderColor)
Sets the border color.
void setBorderThickness(int borderThickness)
Sets the border thickness.
Definition: BarChartView.h++:6
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
Specified by QAbstractItemDelegate.
An item delegate that displays an image with an optional border.
Definition: ImageDelegate.h++:15
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Specified by QAbstractItemDelegate.
ImageDelegate(QObject *parent=NULL)
Constructor.