]> sigrok.org Git - pulseview.git/blobdiff - pv/widgets/wellarray.hpp
Update property widgets before showing device config popup
[pulseview.git] / pv / widgets / wellarray.hpp
index ebe3c00019023c7370c060ef3a59d6ba6319269c..f1c25dc01fde9e0c39694594296c2bf265b6d2e5 100644 (file)
 **
 ****************************************************************************/
 
+#ifndef PULSEVIEW_PV_WIDGETS_WELLARRAY_HPP
+#define PULSEVIEW_PV_WIDGETS_WELLARRAY_HPP
+
 #include <QWidget>
 
-struct QWellArrayData;
+namespace pv {
+namespace widgets {
+
+struct WellArrayData;
 
-class QWellArray : public QWidget
+class WellArray : public QWidget
 {
     Q_OBJECT
     Q_PROPERTY(int selectedColumn READ selectedColumn)
     Q_PROPERTY(int selectedRow READ selectedRow)
 
 public:
-    QWellArray(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; }
@@ -116,10 +122,10 @@ protected:
     void keyPressEvent(QKeyEvent*);
     void focusInEvent(QFocusEvent*);
     void focusOutEvent(QFocusEvent*);
-    void paintEvent(QPaintEvent *);
+    void paintEvent(QPaintEvent*);
 
 private:
-    Q_DISABLE_COPY(QWellArray)
+    Q_DISABLE_COPY(WellArray)
 
     int nrows;
     int ncols;
@@ -129,5 +135,10 @@ private:
     int curCol;
     int selRow;
     int selCol;
-    QWellArrayData *d;
+    WellArrayData *d;
 };
+
+}  // namespace widgets
+} // namespace pv
+
+#endif // PULSEVIEW_PV_WIDGETS_WELLARRAY_HPP