**
****************************************************************************/
-#define QT_NO_MENU
-
#include <QPainter>
#include <QPaintEvent>
#include <QStyle>
updateCell(selRow, selCol);
if (row >= 0)
emit selected(row, col);
-
-#ifndef QT_NO_MENU
- if (isVisible() && qobject_cast<QMenu*>(parentWidget()))
- parentWidget()->close();
-#endif
}
void QWellArray::focusInEvent(QFocusEvent*)
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;