X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fdouble.h;h=5edb392419cf302a940b49d0e643ca3c15bd60ad;hp=19cbe2c185e99ad0b0e35b3f653fd3c912eae67c;hb=7112a4581822c43241a55fbd61c98bee062d452b;hpb=b912c99cb1802b93baec288d4f44819437ee08fa diff --git a/pv/prop/double.h b/pv/prop/double.h index 19cbe2c1..5edb3924 100644 --- a/pv/prop/double.h +++ b/pv/prop/double.h @@ -22,7 +22,6 @@ #define PULSEVIEW_PV_PROP_DOUBLE_H #include -#include #include @@ -39,8 +38,10 @@ public: Double(QString name, int decimals, QString suffix, boost::optional< std::pair > range, boost::optional step, - boost::function getter, - boost::function setter); + Getter getter, + Setter setter); + + virtual ~Double(); QWidget* get_widget(QWidget *parent); @@ -51,8 +52,6 @@ private: const QString _suffix; const boost::optional< std::pair > _range; const boost::optional _step; - boost::function _getter; - boost::function _setter; QDoubleSpinBox *_spin_box; };