projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RowItem: Split appart visual and layout v offsets
[pulseview.git]
/
pv
/
prop
/
double.h
diff --git
a/pv/prop/double.h
b/pv/prop/double.h
index 6b6275c10effd429085e2c619d3624dbbffbf9c2..0dd0ba373dd12b1f9e7e27e03264eb826f7bd1c8 100644
(file)
--- a/
pv/prop/double.h
+++ b/
pv/prop/double.h
@@
-22,7
+22,6
@@
#define PULSEVIEW_PV_PROP_DOUBLE_H
#include <utility>
#define PULSEVIEW_PV_PROP_DOUBLE_H
#include <utility>
-#include <vector>
#include <boost/optional.hpp>
#include <boost/optional.hpp>
@@
-35,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,
@@
-42,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 Q_SLOTS:
+ void on_value_changed(double);
+
private:
const int _decimals;
const QString _suffix;
private:
const int _decimals;
const QString _suffix;