X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=pv%2Fprop%2Fint.h;h=6d910cdf4429b383fe5153bf71b66562d9e2c8c1;hb=a28c30252fd32d3185c62062dfad74ae659ae383;hp=ef6fb1df699d006440fb7237c010ce1095fd54db;hpb=a2b921574b467fd9193d06497bf0ee058e8f7470;p=pulseview.git diff --git a/pv/prop/int.h b/pv/prop/int.h index ef6fb1df..6d910cdf 100644 --- a/pv/prop/int.h +++ b/pv/prop/int.h @@ -34,19 +34,27 @@ namespace prop { class Int : public Property { + Q_OBJECT; + public: Int(QString name, QString suffix, boost::optional< std::pair > range, Getter getter, Setter setter); - QWidget* get_widget(QWidget *parent); + virtual ~Int(); + + 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; };