]> sigrok.org Git - pulseview.git/blobdiff - pv/prop/property.h
pv::prop::Int: Removed assert from Int::get_widget
[pulseview.git] / pv / prop / property.h
index 31b90330d5e68a69cd63f01c220b5abdbdb30f2d..0b4bc7b0ed9223bca1f20706688924812d41a51f 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef PULSEVIEW_PV_PROP_PROPERTY_H
 #define PULSEVIEW_PV_PROP_PROPERTY_H
 
-#include <glib-2.0/glib.h>
+#include <glib.h>
 
 #include <boost/function.hpp>
 
@@ -33,8 +33,10 @@ class QWidget;
 namespace pv {
 namespace prop {
 
-class Property
+class Property : public QObject
 {
+       Q_OBJECT;
+
 public:
        typedef boost::function<GVariant* ()> Getter;
        typedef boost::function<void (GVariant*)> 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;