X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fint.h;h=6d910cdf4429b383fe5153bf71b66562d9e2c8c1;hp=279bedc1c5bb758f2703cdfabc9aae2fe3e34cc4;hb=f45925927eba2b93f367e63f5e3b651e24c67eb3;hpb=f459c5400e067c4389c472b84194d760e7bfd585 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; };