projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added auto-commit support to properties
[pulseview.git]
/
pv
/
prop
/
property.h
diff --git
a/pv/prop/property.h
b/pv/prop/property.h
index 31b90330d5e68a69cd63f01c220b5abdbdb30f2d..22e211b1936905146d5d80118a2756dc5859b7da 100644
(file)
--- a/
pv/prop/property.h
+++ b/
pv/prop/property.h
@@
-33,8
+33,10
@@
class QWidget;
namespace pv {
namespace prop {
namespace pv {
namespace prop {
-class Property
+class Property
: public QObject
{
{
+ Q_OBJECT;
+
public:
typedef boost::function<GVariant* ()> Getter;
typedef boost::function<void (GVariant*)> Setter;
public:
typedef boost::function<GVariant* ()> Getter;
typedef boost::function<void (GVariant*)> Setter;
@@
-45,7
+47,8
@@
protected:
public:
const QString& name() const;
public:
const QString& name() const;
- virtual QWidget* get_widget(QWidget *parent) = 0;
+ virtual QWidget* get_widget(QWidget *parent,
+ bool auto_commit = false) = 0;
virtual bool labeled_widget() const;
virtual void commit() = 0;
virtual bool labeled_widget() const;
virtual void commit() = 0;