void KkrBoardView::resetCursor(int col, int row, CursorClue cl) { Q_ASSERT(col >= 0 && col < m_pBoardData->getNumCols()); Q_ASSERT(row >= 0 && row < m_pBoardData->getNumRows()); // make sure the cursor comes in the visible area showCell(col, row); m_curCol = col; m_curRow = row; m_curClue = cl; update(); // can be optimized }
void printCell(const NBodyCell* c) { char* buf = showCell(c); puts(buf); free(buf); }