Esempio n. 1
0
void BCBoard::setBoardSize(int boardSize)
{
    if (m_boardSize == boardSize)
        return;
    m_boardSize = boardSize;
    emit boardSizeChanged();
    update();
}
Esempio n. 2
0
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)));
}