]> sigrok.org Git - pulseview.git/blobdiff - pv/widgets/colourbutton.hpp
Fix #805 by resetting selected device on failure
[pulseview.git] / pv / widgets / colourbutton.hpp
index d7f019a6c55ab96dcd2dbc90f6e72af1310c1918..d373fc51a8d6c70b4fdd59683777c3279b4b6971 100644 (file)
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#ifndef PULSEVIEW_PV_WIDGETS_COLOURBUTTON_H
-#define PULSEVIEW_PV_WIDGETS_COLOURBUTTON_H
+#ifndef PULSEVIEW_PV_WIDGETS_COLOURBUTTON_HPP
+#define PULSEVIEW_PV_WIDGETS_COLOURBUTTON_HPP
 
 #include <QPushButton>
 
 
 #include <QPushButton>
 
@@ -47,7 +47,7 @@ public:
        void set_palette(const QColor *const palette);
 
 private:
        void set_palette(const QColor *const palette);
 
 private:
-       void paintEvent(QPaintEvent *e);
+       void paintEvent(QPaintEvent *event);
 
 private Q_SLOTS:
        void on_clicked(bool);
 
 private Q_SLOTS:
        void on_clicked(bool);
@@ -65,4 +65,4 @@ private:
 } // widgets
 } // pv
 
 } // widgets
 } // pv
 
-#endif // PULSEVIEW_PV_WIDGETS_COLOURBUTTON_H
+#endif // PULSEVIEW_PV_WIDGETS_COLOURBUTTON_HPP