Qt Reference Documentation

QMaemo5AbstractPickSelector Class Reference

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

 #include <QMaemo5AbstractPickSelector>

Inherits QObject.

Inherited by QMaemo5DatePickSelector, 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
  • 29 public functions inherited from QObject

Signals

void selected ( const QString & valueText )

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 5 static public members inherited from QObject
  • 7 protected functions inherited from QObject

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.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();