X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fprop%2Fenum.h;h=eff6647afd40974314b8a1218d9182ce98024909;hb=e9213170687cf4afd14e20acdc690ff9381d94ae;hp=402798c08aed26a2c5b5a8c088704528b6eb5bb2;hpb=9b25892767cee1d871ac18beb025033e905b28ae;p=pulseview.git diff --git a/pv/prop/enum.h b/pv/prop/enum.h index 402798c..eff6647 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;