An item delegate that displays an image with an optional border.
More...
#include <ImageDelegate.h++>
|
| | ImageDelegate (QObject *parent=NULL) |
| | Constructor. More...
|
| |
| void | setBorderThickness (int borderThickness) |
| | Sets the border thickness. More...
|
| |
| void | setBorderColor (QColor borderColor) |
| | Sets the border color. More...
|
| |
| virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| | Specified by QAbstractItemDelegate. More...
|
| |
| virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| | Specified by QAbstractItemDelegate. More...
|
| |
An item delegate that displays an image with an optional border.
- Author
- Mark Lindner
◆ ImageDelegate()
◆ paint()
| virtual void paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
Specified by QAbstractItemDelegate.
◆ setBorderColor()
| void setBorderColor |
( |
QColor |
borderColor | ) |
|
Sets the border color.
- Parameters
-
| borderColor | The border color. |
◆ setBorderThickness()
| void setBorderThickness |
( |
int |
borderThickness | ) |
|
Sets the border thickness.
- Parameters
-
| borderThickness | The border thickness, in pixels. If less than 1, no border will be drawn. |
◆ sizeHint()
| virtual QSize sizeHint |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
Specified by QAbstractItemDelegate.
The documentation for this class was generated from the following file: