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

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

The QTaskSelector class provides a way of selecting a single task from a QTaskModel. More...

    #include <QTaskSelector>

Inherits QDialog.

Public Functions

Additional Inherited Members


Detailed Description

The QTaskSelector class provides a way of selecting a single task from a QTaskModel.

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

The following image shows a QTaskSelector with the option to create a new task highlighted.

"QTaskSelector, with the new task option highlighted"

See also Pim Library.


Member Function Documentation

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

Constructs a QTaskSelector with parent parent. If allowNew is true will also provide an option to indicate a new task should be created.

QTaskSelector::~QTaskSelector ()

Destroys a QTaskSelector

bool QTaskSelector::newTaskSelected () const

Returns true if the dialog was accepted with the option to create a new task selected. Otherwise returns false.

See also taskSelected().

QTask QTaskSelector::selectedTask () const

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

See also taskSelected() and newTaskSelected().

void QTaskSelector::setModel ( QTaskModel * model )

Sets the model providing the choice of tasks to model.

bool QTaskSelector::taskSelected () const

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

See also newTaskSelected().


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3