projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make member variable underscores a suffix instead of a prefix
[pulseview.git]
/
pv
/
prop
/
double.h
diff --git
a/pv/prop/double.h
b/pv/prop/double.h
index 5edb392419cf302a940b49d0e643ca3c15bd60ad..dc4c6ec9c0de86e8d4f28b3cdf715fb9d2a23c12 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,
@@
-43,17
+45,20
@@
public:
virtual ~Double();
virtual ~Double();
- QWidget* get_widget(QWidget *parent);
+ QWidget* get_widget(QWidget *parent
, bool auto_commit
);
void commit();
void commit();
+private Q_SLOTS:
+ void on_value_changed(double);
+
private:
private:
- const int
_decimals
;
- const QString
_suffix
;
- const boost::optional< std::pair<double, double> >
_range
;
- const boost::optional<double>
_step
;
+ const int
decimals_
;
+ const QString
suffix_
;
+ const boost::optional< std::pair<double, double> >
range_
;
+ const boost::optional<double>
step_
;
- QDoubleSpinBox *
_spin_box
;
+ QDoubleSpinBox *
spin_box_
;
};
} // prop
};
} // prop