X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fenum.h;fp=pv%2Fprop%2Fenum.h;h=a7e6ed8d53f58bdcf8f5418ad7e695b1677e72e3;hp=402798c08aed26a2c5b5a8c088704528b6eb5bb2;hb=b1fe148e0dce6e369c9d4770ca935a6a9ec94b59;hpb=52292f6c59053cbaf8c3b2d9a88cca496d2e10b3 diff --git a/pv/prop/enum.h b/pv/prop/enum.h index 402798c0..a7e6ed8d 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 slots: + void on_current_item_changed(int); + private: const std::vector< std::pair > _values;