-void QWellArray::paintCell(QPainter* p, int row, int col, const QRect &rect)
+void WellArray::paintCell(QPainter* p, int row, int col, const QRect &rect)
-void QWellArray::paintCellContents(QPainter *p, int row, int col, const QRect &r)
+void WellArray::paintCellContents(QPainter *p, int row, int col, const QRect &r)
{
// The current cell marker is set to the cell the mouse is pressed in
QPoint pos = e->pos();
setCurrent(rowAt(pos.y()), columnAt(pos.x()));
}
{
// The current cell marker is set to the cell the mouse is pressed in
QPoint pos = e->pos();
setCurrent(rowAt(pos.y()), columnAt(pos.x()));
}
{
// The current cell marker is set to the cell the mouse is clicked in
setSelected(curRow, curCol);
{
// The current cell marker is set to the cell the mouse is clicked in
setSelected(curRow, curCol);
{
if (d && row >= 0 && row < numRows() && col >= 0 && col < numCols())
return d->brush[row*numCols()+col];
{
if (d && row >= 0 && row < numRows() && col >= 0 && col < numCols())
return d->brush[row*numCols()+col];
{
switch(e->key()) { // Look at the key code
case Qt::Key_Left: // If 'left arrow'-key,
{
switch(e->key()) { // Look at the key code
case Qt::Key_Left: // If 'left arrow'-key,
setCurrent(curRow, curCol - 1); // set cr't to next left column
break;
case Qt::Key_Right: // Correspondingly...
setCurrent(curRow, curCol - 1); // set cr't to next left column
break;
case Qt::Key_Right: // Correspondingly...