#include <listitemdelegate.h>

Public Member Functions | |
| ListItemDelegate (QWidget *parent=0) | |
| Constructor. | |
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| Draws ListItem data. | |
| QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| Returns item's size hint. | |
Private Attributes | |
| QPixmap | m_backgroundBottomImage |
| Bottom background image. | |
| QPixmap | m_backgroundMiddleImage |
| Middle background image. | |
| QPixmap | m_backgroundTopImage |
| Top background image. | |
| QPixmap | m_backgroundBottomSelectedImage |
| Selected bottom background image. | |
| QPixmap | m_backgroundMiddleSelectedImage |
| Selected middle background image. | |
| QPixmap | m_backgroundTopSelectedImage |
| Selected top background image. | |
Displays ListItem.
Class is used to display ListItem data.
| ListItemDelegate::ListItemDelegate | ( | QWidget * | parent = 0 |
) |
Constructor.
Loads background image pixmaps.
| parent | QWidget |
| void ListItemDelegate::paint | ( | QPainter * | painter, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const |
Draws ListItem data.
Draws item's background, image and name.
| painter | QPainter | |
| option | QStyleOptionViewItem | |
| index | QModelIndex |
Reimplemented in ExtendedListItemDelegate, and FriendListItemDelegate.
| QSize ListItemDelegate::sizeHint | ( | const QStyleOptionViewItem & | option, | |
| const QModelIndex & | index | |||
| ) | const |
Returns item's size hint.
| option | QStyleOptionViewItem | |
| index | QModelIndex |
1.6.1