X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fprop%2Fproperty.h;h=22e211b1936905146d5d80118a2756dc5859b7da;hp=31b90330d5e68a69cd63f01c220b5abdbdb30f2d;hb=b1fe148e0dce6e369c9d4770ca935a6a9ec94b59;hpb=52292f6c59053cbaf8c3b2d9a88cca496d2e10b3 diff --git a/pv/prop/property.h b/pv/prop/property.h index 31b90330..22e211b1 100644 --- a/pv/prop/property.h +++ b/pv/prop/property.h @@ -33,8 +33,10 @@ class QWidget; namespace pv { namespace prop { -class Property +class Property : public QObject { + Q_OBJECT; + public: typedef boost::function Getter; typedef boost::function Setter; @@ -45,7 +47,8 @@ protected: 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;