]> sigrok.org Git - pulseview.git/blobdiff - pv/prop/bool.h
Added decoder options binding for double values
[pulseview.git] / pv / prop / bool.h
index 62e5ca36b6425ee1f91f9ff34afe6d1504b9fe2b..0d8e205e87a682976b417e3b796fc7ca0e16eb9f 100644 (file)
@@ -30,14 +30,21 @@ namespace prop {
 
 class Bool : public Property
 {
+       Q_OBJECT;
+
 public:
        Bool(QString name, Getter getter, Setter setter);
 
-       QWidget* get_widget(QWidget *parent);
+       virtual ~Bool();
+
+       QWidget* get_widget(QWidget *parent, bool auto_commit);
        bool labeled_widget() const;
 
        void commit();
 
+private slots:
+       void on_state_changed(int);
+
 private:
        QCheckBox *_check_box;
 };