ListItemDelegate Class Reference

Displays ListItem. More...

#include <listitemdelegate.h>

Inheritance diagram for ListItemDelegate:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Displays ListItem.

Class is used to display ListItem data.

Author:
Jussi Laitinen - jussi.laitinen (at) ixonos.com

Constructor & Destructor Documentation

ListItemDelegate::ListItemDelegate ( QWidget *  parent = 0  ) 

Constructor.

Loads background image pixmaps.

Parameters:
parent QWidget

Member Function Documentation

void ListItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Draws ListItem data.

Draws item's background, image and name.

Parameters:
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.

Parameters:
option QStyleOptionViewItem
index QModelIndex
Returns:
QSize

The documentation for this class was generated from the following files:

Generated on Fri Sep 3 12:05:41 2010 for Situare client for Maemo by  doxygen 1.6.1