X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fprop%2Fint.h;h=1a3180a1a9ab324950a1beafc08bdabb48e59159;hb=e9213170687cf4afd14e20acdc690ff9381d94ae;hp=279bedc1c5bb758f2703cdfabc9aae2fe3e34cc4;hpb=f459c5400e067c4389c472b84194d760e7bfd585;p=pulseview.git diff --git a/pv/prop/int.h b/pv/prop/int.h index 279bedc..1a3180a 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 Q_SLOTS: + void on_value_changed(int); + private: const QString _suffix; const boost::optional< std::pair > _range; + GVariant *_value; QSpinBox *_spin_box; };