Home · All Classes · All Functions · Overviews

QMaemo5AbstractPickSelector Class Reference
[QtGui module]

The QMaemo5AbstractPickSelector class provides the basic functionality for a class providing values for a QMaemo5ValueButton. More...

 #include <QMaemo5AbstractPickSelector>

Inherits QObject.

Inherited by QMaemo5ListPickSelector and QMaemo5TimePickSelector.

This class was introduced in Qt 4.6.


Public Functions

QMaemo5AbstractPickSelector ( QObject * parent = 0 )
~QMaemo5AbstractPickSelector ()
virtual QString currentValueText () const = 0
virtual QWidget * widget ( QWidget * parent ) = 0

Signals

void selected ( const QString & valueText )

Additional Inherited Members


Detailed Description

The QMaemo5AbstractPickSelector class provides the basic functionality for a class providing values for a QMaemo5ValueButton.

To implement a pick selector you need to implement the widget() and currentValueText() functions.

See also QMaemo5ValueButton.


Member Function Documentation

QMaemo5AbstractPickSelector::QMaemo5AbstractPickSelector ( QObject * parent = 0 )

Constructs a new abstract pick selector with the given parent object.

QMaemo5AbstractPickSelector::~QMaemo5AbstractPickSelector ()

Destroys the pick selector.

QString QMaemo5AbstractPickSelector::currentValueText () const   [pure virtual]

Returns the current text of this selector. This value is used as value text on a QMaemo5ValueButton.

See also QMaemo5ValueButton::valueText.

void QMaemo5AbstractPickSelector::selected ( const QString & valueText )   [signal]

This signal is sent when the user chooses an item in the pick selector. The valueText parameter is the same as the return value of the currentValueText() function.

See also currentValueText().

QWidget * QMaemo5AbstractPickSelector::widget ( QWidget * parent )   [pure virtual]

Returns a widget that will be displayed when the associated QMaemo5ValueButton is pressed.

To be compliant with the Maemo 5 UI guidelines, a reimplementation of this function should return an instance of a QDialog subclass with the parent widget specified.

After the value has been selected, this widget should emit the selected signal and then hide itself.


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.2