X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fprop%2Fdouble.h;h=0dd0ba373dd12b1f9e7e27e03264eb826f7bd1c8;hb=2b334bb4078d6e74e8ed4e3460c6596344dd9c8d;hp=b00adb1439125118720def25a194bfb021cad153;hpb=0d600d54070777aa706dbad1d2bbd5191e953cbb;p=pulseview.git diff --git a/pv/prop/double.h b/pv/prop/double.h index b00adb14..0dd0ba37 100644 --- a/pv/prop/double.h +++ b/pv/prop/double.h @@ -34,6 +34,8 @@ namespace prop { class Double : public Property { + Q_OBJECT + public: Double(QString name, int decimals, QString suffix, boost::optional< std::pair > range, @@ -41,10 +43,15 @@ public: Getter getter, Setter setter); - QWidget* get_widget(QWidget *parent); + virtual ~Double(); + + QWidget* get_widget(QWidget *parent, bool auto_commit); void commit(); +private Q_SLOTS: + void on_value_changed(double); + private: const int _decimals; const QString _suffix;