X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fwellarray.cpp;fp=pv%2Fwidgets%2Fwellarray.cpp;h=1f3bf69825ac7434a0a7e4a7b612342b6b9e4dce;hp=a9418317b072fceae3cf45f25f3656113578cfbf;hb=f32905530347e1020d5ce7959123cf797c9a4829;hpb=ce11b2ea851633dc937881cdbd358541685b43be diff --git a/pv/widgets/wellarray.cpp b/pv/widgets/wellarray.cpp index a9418317..1f3bf698 100644 --- a/pv/widgets/wellarray.cpp +++ b/pv/widgets/wellarray.cpp @@ -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: