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

QContactItemModel Class Reference
[QtMessagingModule, QtPimModule, QtTelephonyModule, QtUiModule]

The QContactItemModel class provides a QStandardItemModel based class representing a list of QContacts. More...

    #include <QContactItemModel>

Inherits QStandardItemModel.

Public Functions

Additional Inherited Members


Detailed Description

The QContactItemModel class provides a QStandardItemModel based class representing a list of QContacts.

By using QContactItemModel and (QContactItem), views of arbitrary collections of contacts can be created. This class provides convenience functions that operate on QContacts on top of the QStandardItemModel API.

See also QContactItem and QStandardItemModel.


Member Function Documentation

QContactItemModel::QContactItemModel ( QObject * parent = 0 )

Create a QContactItemModel with the specified parent.

QContactItemModel::~QContactItemModel ()

Destroys this QContactItemModel.

void QContactItemModel::appendRow ( const QContact & contact, const QString & subLabel = QString(), const QPixmap & statusIcon = QPixmap() )

This is a convenience function. Add a contact to this model. The contact, subLabel and statusIcon parameters are used to create a QContactItem, and the item is then added to this model.

See also QContactItem.

QStringList QContactItemModel::labels () const

Returns a list of the labels of the items in this model.

This corresponds to the item's QContactModel::LabelRole data.

See also subLabels().

QStringList QContactItemModel::subLabels () const

Returns a list of the secondary labels of the items in this model.

This corresponds to the item's QContactModel::SubLabelRole data.

See also labels().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3