X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fgui%2Fbuttonselector.h;h=b2a20fcd7d2cc09e626f257dd80dc9a6591f5d3f;hb=2136f257ebff2370bdfe7572e0c87ef50705feb2;hp=cb052091e321daf095787b8442c00a507f9248c1;hpb=6046fed79d373b56f8a5c90aaff1358531e8f99d;p=jenirok diff --git a/src/gui/buttonselector.h b/src/gui/buttonselector.h index cb05209..b2a20fc 100644 --- a/src/gui/buttonselector.h +++ b/src/gui/buttonselector.h @@ -27,12 +27,16 @@ class ButtonSelector : public QMaemo5ValueButton { + +Q_OBJECT + public: ButtonSelector(QString const& text, QWidget* parent = 0); void addItem(QString const& text); void addItem(QString const& text, QVariant const& value); void clear(); void setCurrentIndex(int index); + bool selectByValue(QVariant const& value); int currentIndex() const; QString text() const; QVariant value() const;