X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fwellarray.cpp;h=04a7ccec9723c999cea7b23bae94db1a25c03eee;hp=3ae6eec6305b1eb696bb55affcf070a71d5790dc;hb=b571a8e7e0dc3e3b6daa58f27050e76466f006dd;hpb=27c0521002ea986b72d9675b99803665516db14c diff --git a/pv/widgets/wellarray.cpp b/pv/widgets/wellarray.cpp index 3ae6eec6..04a7ccec 100644 --- a/pv/widgets/wellarray.cpp +++ b/pv/widgets/wellarray.cpp @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#include #include +#include #include #include @@ -220,7 +220,7 @@ void WellArray::setSelected(int row, int col) updateCell(oldRow, oldCol); updateCell(selRow, selCol); if (row >= 0) - Q_EMIT selected(row, col); + selected(row, col); } void WellArray::focusInEvent(QFocusEvent*) @@ -265,7 +265,7 @@ void WellArray::focusOutEvent(QFocusEvent*) */ void WellArray::keyPressEvent(QKeyEvent* event) { - switch(event->key()) { // Look at the key code + switch (event->key()) { // Look at the key code case Qt::Key_Left: // If 'left arrow'-key, if (curCol > 0) // and cr't not in leftmost col setCurrent(curRow, curCol - 1); // set cr't to next left column @@ -292,5 +292,5 @@ void WellArray::keyPressEvent(QKeyEvent* event) } -} // namespace wellarray +} // namespace widgets } // namespace pv