**
****************************************************************************/
-#include <QPainter>
#include <QPaintEvent>
+#include <QPainter>
#include <QStyle>
#include <QStyleOptionFrame>
updateCell(oldRow, oldCol);
updateCell(selRow, selCol);
if (row >= 0)
- Q_EMIT selected(row, col);
+ selected(row, col);
}
void WellArray::focusInEvent(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
}
-} // namespace wellarray
+} // namespace widgets
} // namespace pv