示例#1
0
void MainWindow::alertWinner()
{
    if(game->playerHasWon(game->getPlayerAt(game->getCurrentPlayer()))){
        QMessageBox::information(this, "Congratulations", "You win !");
        disableAllButtons();
    }
}
示例#2
0
void DownloadManager::cancelled()
{
    switch( QMessageBox::information( this, "Cancel", "This will cancel the current download and remove it from the download queue. Continue?", QMessageBox::Yes | QMessageBox::No ) )
    {
    case QMessageBox::Yes:
        m_downloadManager->cancel();
        disableAllButtons();
        break;
    default:;
    }
}
示例#3
0
void DownloadManager::downloadCompleted()
{
    disableAllButtons();
}
示例#4
0
void MainWindow::decZ()
{
    float coord = -ui->comboStep->currentText().toFloat();
    disableAllButtons();
    emit axisAdj('Z', coord, invZ, absoluteAfterAxisAdj, sliderZCount++);
}
示例#5
0
void MainWindow::decY()
{
    float coord = -ui->comboStep->currentText().toFloat();
    disableAllButtons();
    emit axisAdj('Y', coord, invY, absoluteAfterAxisAdj, 0);
}