Home · All Classes · Grouped Classes · Annotated · Functions

QContactSelector Class Reference

The QContactSelector class provides a way of selecting a single contact from a QContactModel. More...

    #include <QContactSelector>

Inherits QDialog.

Public Functions

Additional Inherited Members


Detailed Description

The QContactSelector class provides a way of selecting a single contact from a QContactModel.

In addition, the user can optionally be allowed to indicate they want to create a new contact, if none of the existing contacts are suitable.

The following image displays a QContactSelector with the option to create a new QContact highlighted.

"QContactSelector with the option to create a new contact highlighted"


Member Function Documentation

QContactSelector::QContactSelector ( bool allowNew, QWidget * parent )

Constructs a QContactSelector with the given parent.

If allowNew is true, the selector provides the user an option to create a new QContact (see newContactSelected()).

bool QContactSelector::contactSelected () const

Returns true if the dialog was accepted with an existing contact selected. Otherwise returns false.

See also newContactSelected().

bool QContactSelector::newContactSelected () const

Returns true if the dialog was accepted via the option to create a new contact. Otherwise returns false.

See also contactSelected().

QContact QContactSelector::selectedContact () const

Returns the contact that was selected. If no contact was selected returns a null contact.

See also contactSelected() and newContactSelected().

void QContactSelector::setModel ( QContactModel * model )

Sets the model providing the choice of contacts to model.


Copyright © 2007 Trolltech Trademarks
Qtopia 4.2.5