Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QMailMessageDelegate Class Reference
[QtMessagingModule, QtPimModule]

The QMailMessageDelegate class provides a visual representation of a message suitable for display in a list of messages. More...

    #include <QMailMessageDelegate>

This class is under development and is subject to change.

Inherits QtopiaItemDelegate.

Public Types

Public Functions

Additional Inherited Members


Detailed Description

The QMailMessageDelegate class provides a visual representation of a message suitable for display in a list of messages.

The QMailMessageDelegate provides a common visual representation of a message suitable for display in a list of messages. This class inherits from QAbstractItemDelegate and is designed to be used in conjunction with the Qt view classes such as QListView.

QMailMessageDelegate supports more than one painting mode used to display message elements in different configurations.

See also QListView and QAbstractItemDelegate.


Member Type Documentation

enum QMailMessageDelegate::DisplayMode

Represents the display modes of the delegate. The DisplayMode represents different message painting configurations of the delegate.

ConstantValueDescription
QMailMessageDelegate::AddressbookMode1The message entry is painted in the style used by the Addressbook application. The message entry is painted with an icon representing the message direction, the text of the message address, the message type icon and the text of the message subject underneath.
QMailMessageDelegate::QtmailMode0The message entry is painted in the style used by the Qt Extended messaging application. The message entry is painted with an icon representing the message status, the message type icon, the text of the message address and the text of the message subject underneath.


Member Function Documentation

QMailMessageDelegate::QMailMessageDelegate ( DisplayMode mode, QWidget * parent )

Creates a QMailMessageDelegate with parent parent that paints the contents of a message in the DisplayMode mode.

QMailMessageDelegate::~QMailMessageDelegate ()   [virtual]

Deletes the QMailMessageDelegate.

DisplayMode QMailMessageDelegate::displayMode () const

Returns the display mode the delegate is painting in.

See also setDisplayMode().

bool QMailMessageDelegate::displaySelectionState () const

Returns true if the delegate is displaying the selection state of messages.

See also setDisplaySelectionState().

void QMailMessageDelegate::setDisplayMode ( DisplayMode mode )

Sets the display mode the delegate is painting to mode.

See also displayMode().

void QMailMessageDelegate::setDisplaySelectionState ( bool set )

Sets the delegate to display message selection states if set is true.

See also displaySelectionState().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3