void MainWindow::showResult(const EchoNestSong *song) { ResultWindow * window = new ResultWindow(this, song); window->show(); // Cleanup interface while user see result window restoreInitialState(); }
void DrumSet::changeTime() { Time--; TimeText->setText(QString::number(Time)); if(Time <= 0) { disconnect(textTimer, SIGNAL(timeout()), this, SLOT(changeTime())); callparent->hide(); player->stop(); delete player; player = 0; ResultWindow * rw = new ResultWindow(Score,callparent); rw->show(); } }
void MainWindow::on_push_add_resource_2_clicked() { ResultWindow *resWindow = new ResultWindow(this); resWindow->show(); }