Qt Components Hildon  0.20
QML components for Maemo5 with Hildon styling.
 All Classes Functions Properties Groups Pages
Signals | Properties | List of all members
AbstractPickSelector Class Reference

The base class for pick selectors. More...

Inherits Dialog.

Inherited by DatePickSelector, ListPickSelector, and TimePickSelector.

Signals

void selected (string text)
 This signal should be emitted when a value is selected.

Properties

string currentValueText
 This property should be set to the display text of the current selected value.
- Properties inherited from Dialog
list< QDeclarativeItem > children
 The visual children of the dialog.
list< object > data
 The children of the dialog.
bool showProgressIndicator
 Whether the progress indicator should be visible.
enumeration status
 The current status of the dialog.

Detailed Description

The base class for pick selectors.

The AbstractPickSelector is used for creating custom pick selectors. Typically, a pick selector is assigned to a ValueButton, but can also be used standalone.

width: parent.width
text: qsTr("Select a value")
pickSelector: AbstractPickSelector {
id: selector
height: column.height + platformStyle.paddingMedium
Column {
anchors {
left: parent.left
right: parent.right
bottom: parent.bottom
}
Repeater {
id: repeater
model: 3
width: parent.width
text: index + 1
onClicked: {
selector.selected(index + 1);
selector.accept();
}
}
}
}
}
}
See Also
ValueButton
Examples:
selectors.qml.

Member Function Documentation

void AbstractPickSelector::selected ( string  text)
signal

This signal should be emitted when a value is selected.

When the signal is emitted, currentValueText will be updated to text.

See Also
currentValueText