Displays FriendListItem. More...
#include <eventslistitemdelegate.h>


Public Member Functions | |
| EventsListItemDelegate () | |
| Constructor. | |
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| Draws FriendListItem data. | |
| QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| Returns item's size hint. | |
Displays FriendListItem.
Class is used to display FriendListItem data.
| EventsListItemDelegate::EventsListItemDelegate | ( | ) |
Constructor.
Loads clock, compass and envelope images' pixmap.
| void EventsListItemDelegate::paint | ( | QPainter * | painter, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const |
Draws FriendListItem data.
Draws distance, status, updated and location texts with icons.
| painter | QPainter | |
| option | QStyleOptionViewItem | |
| index | QModelIndex |
Reimplemented from ListItemDelegate.
| QSize EventsListItemDelegate::sizeHint | ( | const QStyleOptionViewItem & | option, | |
| const QModelIndex & | index | |||
| ) | const |
Returns item's size hint.
| option | QStyleOptionViewItem | |
| index | QModelIndex |
Reimplemented from ListItemDelegate.
1.6.1