X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fwidgets%2Fwellarray.cpp;h=fb674431c0e6a054613707ddbf33ff142541e5bc;hb=0715fb8c638b53ac25590841fcbf3a1da3546b68;hp=6776e34f6b110dc7c2f457b528f6573cd08e387d;hpb=0c0e1888d11fd2135e439f82993b56b2323703ec;p=pulseview.git diff --git a/pv/widgets/wellarray.cpp b/pv/widgets/wellarray.cpp index 6776e34..fb67443 100644 --- a/pv/widgets/wellarray.cpp +++ b/pv/widgets/wellarray.cpp @@ -39,8 +39,6 @@ ** ****************************************************************************/ -#define QT_NO_MENU - #include #include #include @@ -219,12 +217,7 @@ void QWellArray::setSelected(int row, int col) updateCell(oldRow, oldCol); updateCell(selRow, selCol); if (row >= 0) - emit selected(row, col); - -#ifndef QT_NO_MENU - if (isVisible() && qobject_cast(parentWidget())) - parentWidget()->close(); -#endif + Q_EMIT selected(row, col); } void QWellArray::focusInEvent(QFocusEvent*) @@ -286,17 +279,6 @@ void QWellArray::keyPressEvent(QKeyEvent* e) if(curRow < numRows()-1) setCurrent(curRow + 1, curCol); break; -#if 0 - // bad idea that shouldn't have been implemented; very counterintuitive - case Qt::Key_Return: - case Qt::Key_Enter: - /* - ignore the key, so that the dialog get it, but still select - the current row/col - */ - e->ignore(); - // fallthrough intended -#endif case Qt::Key_Space: setSelected(curRow, curCol); break;