X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fprop%2Fint.h;h=6d910cdf4429b383fe5153bf71b66562d9e2c8c1;hb=e183f4e328db8bb134652254ba9bf0707dc16c66;hp=279bedc1c5bb758f2703cdfabc9aae2fe3e34cc4;hpb=f459c5400e067c4389c472b84194d760e7bfd585;p=pulseview.git diff --git a/pv/prop/int.h b/pv/prop/int.h index 279bedc1..6d910cdf 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,14 +43,18 @@ 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; + GVariant *_value; QSpinBox *_spin_box; };