projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replaced boost::bind with C++11 lambdas
[pulseview.git]
/
pv
/
prop
/
double.h
diff --git
a/pv/prop/double.h
b/pv/prop/double.h
index b00adb1439125118720def25a194bfb021cad153..ba4c5958945c76a8653a119ab16f4faa5eac791f 100644
(file)
--- a/
pv/prop/double.h
+++ b/
pv/prop/double.h
@@
-34,6
+34,8
@@
namespace prop {
class Double : public Property
{
class Double : public Property
{
+ Q_OBJECT
+
public:
Double(QString name, int decimals, QString suffix,
boost::optional< std::pair<double, double> > range,
public:
Double(QString name, int decimals, QString suffix,
boost::optional< std::pair<double, double> > range,
@@
-41,10
+43,15
@@
public:
Getter getter,
Setter setter);
Getter getter,
Setter setter);
- QWidget* get_widget(QWidget *parent);
+ virtual ~Double();
+
+ QWidget* get_widget(QWidget *parent, bool auto_commit);
void commit();
void commit();
+private slots:
+ void on_value_changed(double);
+
private:
const int _decimals;
const QString _suffix;
private:
const int _decimals;
const QString _suffix;