void BCBoard::setBoardSize(int boardSize) { if (m_boardSize == boardSize) return; m_boardSize = boardSize; emit boardSizeChanged(); update(); }
void MainWindow::changeBoardSize() { SizeDialog *sd = new SizeDialog(this); int sz = sd->exec(); if (sz) { emit boardSizeChanged(sz); } setWindowTitle(windowTitle().replace(11, 3, QString::number(sz) + "x" + QString::number(sz))); }