X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fint.h;h=f4c7387983409749354839538356b8bfc11e9c2d;hp=279bedc1c5bb758f2703cdfabc9aae2fe3e34cc4;hb=b1fe148e0dce6e369c9d4770ca935a6a9ec94b59;hpb=52292f6c59053cbaf8c3b2d9a88cca496d2e10b3 diff --git a/pv/prop/int.h b/pv/prop/int.h index 279bedc1..f4c73879 100644 --- a/pv/prop/int.h +++ b/pv/prop/int.h @@ -34,6 +34,8 @@ namespace prop { class Int : public Property { + Q_OBJECT; + public: Int(QString name, QString suffix, boost::optional< std::pair > range, @@ -41,10 +43,13 @@ public: virtual ~Int(); - QWidget* get_widget(QWidget *parent); + QWidget* get_widget(QWidget *parent, bool auto_commit); void commit(); +private slots: + void on_value_changed(int); + private: const QString _suffix; const boost::optional< std::pair > _range;