Added ListItem, ListItemDelegate, ListView classes.
[situare] / src / ui / friendlistitemdelegate.h
1 #ifndef FRIENDLISTITEMDELEGATE_H
2 #define FRIENDLISTITEMDELEGATE_H
3
4 #include "listitemdelegate.h"
5
6 class FriendListItemDelegate : public ListItemDelegate
7 {
8 public:
9     FriendListItemDelegate();
10
11     void paint(QPainter *painter, const QStyleOptionViewItem &option,
12                const QModelIndex &index) const;
13
14     QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
15
16 private:
17     QPixmap m_clockImage;   ///< Top background image
18     QPixmap m_compassImage;   ///< Middle background image
19     QPixmap m_envelopeImage;   ///< Bottom background image
20 };
21
22 #endif // FRIENDLISTITEMDELEGATE_H