Home · All Classes · Grouped Classes · Annotated · Functions

QTaskSelector Class Reference

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 © 2008 Nokia Trademarks
Qtopia 4.3.3