X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fwidgets%2Fwellarray.cpp;h=ad29b039657d8123de5f49c3ba4b2ec76d9559dc;hb=520362f8c4082820193f09e43b27a8c7df2ef011;hp=a9418317b072fceae3cf45f25f3656113578cfbf;hpb=ebad870b71f3eec4a08873040524bb9e57768364;p=pulseview.git diff --git a/pv/widgets/wellarray.cpp b/pv/widgets/wellarray.cpp index a941831..ad29b03 100644 --- a/pv/widgets/wellarray.cpp +++ b/pv/widgets/wellarray.cpp @@ -104,7 +104,7 @@ WellArray::WellArray(int rows, int cols, QWidget *parent) : QWidget(parent) ,nrows(rows), ncols(cols) { - d = 0; + d = nullptr; setFocusPolicy(Qt::StrongFocus); cellw = 28; cellh = 24; @@ -267,19 +267,19 @@ void WellArray::keyPressEvent(QKeyEvent* e) { switch(e->key()) { // Look at the key code case Qt::Key_Left: // If 'left arrow'-key, - if(curCol > 0) // and cr't not in leftmost col + if (curCol > 0) // and cr't not in leftmost col setCurrent(curRow, curCol - 1); // set cr't to next left column break; case Qt::Key_Right: // Correspondingly... - if(curCol < numCols()-1) + if (curCol < numCols()-1) setCurrent(curRow, curCol + 1); break; case Qt::Key_Up: - if(curRow > 0) + if (curRow > 0) setCurrent(curRow - 1, curCol); break; case Qt::Key_Down: - if(curRow < numRows()-1) + if (curRow < numRows()-1) setCurrent(curRow + 1, curCol); break; case Qt::Key_Space: