From: Constantin Date: Fri, 19 Jul 2013 15:54:52 +0000 (+0200) Subject: works X-Git-Url: https://git.ralfj.de/multypo.git/commitdiff_plain/04ba0d5a99f63208188c4301aa21b743c42141cb?ds=inline;hp=0712b0f435879a9fc49f8b814f7b3b388da88441 works --- diff --git a/qt/multypo.cpp b/qt/multypo.cpp index 1667c0f..8dea3e0 100644 --- a/qt/multypo.cpp +++ b/qt/multypo.cpp @@ -44,8 +44,11 @@ void MultypoWindow::nextWord() { QByteArray tmp = words.readLine().trimmed(); QString word = QString::fromUtf8(tmp); if (word.isEmpty()) { // game over - qDebug() << "TODO: implement gameover"; - exit (0); + mainLabel->setText("GAME OVER"); + for (QMap::Iterator it = players.begin(); it != players.end(); ++it) { + QString tmp = QString ("Spieler %1 hat %2 Punkte.").arg(it.value()->getName()).arg(it.value()->score); + it.value()->setWaiting(tmp); + } } else { resetPlayerText(); mainLabel->setText(word);