]> sigrok.org Git - pulseview.git/blobdiff - pv/prop/double.h
Make pv::prop objects run on GVariants
[pulseview.git] / pv / prop / double.h
index 19cbe2c185e99ad0b0e35b3f653fd3c912eae67c..6b6275c10effd429085e2c619d3624dbbffbf9c2 100644 (file)
@@ -39,8 +39,8 @@ public:
        Double(QString name, int decimals, QString suffix,
                boost::optional< std::pair<double, double> > range,
                boost::optional<double> step,
-               boost::function<double ()> getter,
-               boost::function<void (double)> setter);
+               Getter getter,
+               Setter setter);
 
        QWidget* get_widget(QWidget *parent);
 
@@ -51,8 +51,6 @@ private:
        const QString _suffix;
        const boost::optional< std::pair<double, double> > _range;
        const boost::optional<double> _step;
-       boost::function<double ()> _getter;
-       boost::function<void (double)> _setter;
 
        QDoubleSpinBox *_spin_box;
 };