]> sigrok.org Git - pulseview.git/blobdiff - pv/widgets/decodergroupbox.hpp
Fix #805 by resetting selected device on failure
[pulseview.git] / pv / widgets / decodergroupbox.hpp
index 2c8207625e12fbbda99e58990506320d85361644..7554431817fab64efe98532eee591d211e152823 100644 (file)
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#ifndef PULSEVIEW_PV_WIDGETS_DECODERGROUPBOX_H
-#define PULSEVIEW_PV_WIDGETS_DECODERGROUPBOX_H
+#ifndef PULSEVIEW_PV_WIDGETS_DECODERGROUPBOX_HPP
+#define PULSEVIEW_PV_WIDGETS_DECODERGROUPBOX_HPP
 
 #include <QPushButton>
 
@@ -34,7 +34,8 @@ class DecoderGroupBox : public QWidget
        Q_OBJECT
 
 public:
-       DecoderGroupBox(QString title, QWidget *parent = NULL);
+       DecoderGroupBox(QString title, QWidget *parent = nullptr,
+               bool isDeletable = true);
 
        void add_layout(QLayout *layout);
 
@@ -53,4 +54,4 @@ private:
 } // widgets
 } // pv
 
-#endif // PULSEVIEW_PV_WIDGETS_DECODERGROUPBOX_H
+#endif // PULSEVIEW_PV_WIDGETS_DECODERGROUPBOX_HPP