X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fwidgets%2Fwellarray.hpp;h=35a2f2f62e7f194b70ad49b9e23b8ec58dab4f0a;hb=870ea3dbf35b182e120c5d84ab89bf9cb7691232;hp=ebe3c00019023c7370c060ef3a59d6ba6319269c;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329;p=pulseview.git diff --git a/pv/widgets/wellarray.hpp b/pv/widgets/wellarray.hpp index ebe3c00..35a2f2f 100644 --- a/pv/widgets/wellarray.hpp +++ b/pv/widgets/wellarray.hpp @@ -41,16 +41,19 @@ #include -struct QWellArrayData; +namespace pv { +namespace widgets { -class QWellArray : public QWidget +struct WellArrayData; + +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 +119,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 +132,8 @@ private: int curCol; int selRow; int selCol; - QWellArrayData *d; + WellArrayData *d; }; + +} // namespace widgets +} // namespace pv