void MainWindow::alertWinner() { if(game->playerHasWon(game->getPlayerAt(game->getCurrentPlayer()))){ QMessageBox::information(this, "Congratulations", "You win !"); disableAllButtons(); } }
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:; } }
void DownloadManager::downloadCompleted() { disableAllButtons(); }
void MainWindow::decZ() { float coord = -ui->comboStep->currentText().toFloat(); disableAllButtons(); emit axisAdj('Z', coord, invZ, absoluteAfterAxisAdj, sliderZCount++); }
void MainWindow::decY() { float coord = -ui->comboStep->currentText().toFloat(); disableAllButtons(); emit axisAdj('Y', coord, invY, absoluteAfterAxisAdj, 0); }