X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fprop%2Fenum.h;h=eff6647afd40974314b8a1218d9182ce98024909;hb=93f683adaed4345f815293f0193bbbc09d8fc42c;hp=402798c08aed26a2c5b5a8c088704528b6eb5bb2;hpb=9b25892767cee1d871ac18beb025033e905b28ae;p=pulseview.git diff --git a/pv/prop/enum.h b/pv/prop/enum.h index 402798c0..eff6647a 100644 --- a/pv/prop/enum.h +++ b/pv/prop/enum.h @@ -33,16 +33,21 @@ namespace prop { class Enum : public Property { + Q_OBJECT; + public: Enum(QString name, std::vector > values, Getter getter, Setter setter); virtual ~Enum(); - QWidget* get_widget(QWidget *parent); + QWidget* get_widget(QWidget *parent, bool auto_commit); void commit(); +private Q_SLOTS: + void on_current_item_changed(int); + private: const std::vector< std::pair > _values;