{
setValueLayout(QMaemo5ValueButton::ValueBesideText);
selector_ = new QMaemo5ListPickSelector(this);
+ connect(selector_, SIGNAL(selected(QString const&)), this, SLOT(onSelected(QString const&)));
model_ = new QStandardItemModel(0, 1);
selector_->setModel(model_);
setPickSelector(selector_);
bool ButtonSelector::changeItem(unsigned int index,
QString const& text)
{
- changeItem(index, text, QVariant(text));
+ return changeItem(index, text, QVariant(text));
}
bool ButtonSelector::changeItem(unsigned int index,
{
return model_->removeRow(index);
}
+
+void ButtonSelector::onSelected(QString const& text)
+{
+ emit selected(currentIndex(), text, value());
+}