X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fwellarray.cpp;h=04a7ccec9723c999cea7b23bae94db1a25c03eee;hp=1351467a122a7bc8c5bcd36e23ef7fd4192a6638;hb=b571a8e7e0dc3e3b6daa58f27050e76466f006dd;hpb=d9ea96280ab1128427143660ae375c30b19aa0cb diff --git a/pv/widgets/wellarray.cpp b/pv/widgets/wellarray.cpp index 1351467a..04a7ccec 100644 --- a/pv/widgets/wellarray.cpp +++ b/pv/widgets/wellarray.cpp @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#include #include +#include #include #include @@ -125,7 +125,7 @@ void WellArray::paintCell(QPainter* p, int row, int col, const QRect &rect) { int b = 3; //margin - const QPalette & g = palette(); + const QPalette& g = palette(); QStyleOptionFrame opt; int dfw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth); opt.lineWidth = dfw; @@ -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