X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fwellarray.hpp;h=f1c25dc01fde9e0c39694594296c2bf265b6d2e5;hp=8132eb0076c35fd69ea35154a456ead64cdb2566;hb=72486b789078f024e4f3404f81118c03b03e2b70;hpb=ebad870b71f3eec4a08873040524bb9e57768364 diff --git a/pv/widgets/wellarray.hpp b/pv/widgets/wellarray.hpp index 8132eb00..f1c25dc0 100644 --- a/pv/widgets/wellarray.hpp +++ b/pv/widgets/wellarray.hpp @@ -39,6 +39,9 @@ ** ****************************************************************************/ +#ifndef PULSEVIEW_PV_WIDGETS_WELLARRAY_HPP +#define PULSEVIEW_PV_WIDGETS_WELLARRAY_HPP + #include namespace pv { @@ -53,7 +56,7 @@ class WellArray : public QWidget Q_PROPERTY(int selectedRow READ selectedRow) public: - WellArray(int rows, int cols, QWidget* parent=0); + WellArray(int rows, int cols, QWidget* parent = nullptr); QString cellContent(int row, int col) const; int selectedColumn() const { return selCol; } @@ -119,7 +122,7 @@ protected: void keyPressEvent(QKeyEvent*); void focusInEvent(QFocusEvent*); void focusOutEvent(QFocusEvent*); - void paintEvent(QPaintEvent *); + void paintEvent(QPaintEvent*); private: Q_DISABLE_COPY(WellArray) @@ -135,5 +138,7 @@ private: WellArrayData *d; }; -} // namespace wellarray +} // namespace widgets } // namespace pv + +#endif // PULSEVIEW_PV_WIDGETS_WELLARRAY_HPP