From 04ba0d5a99f63208188c4301aa21b743c42141cb Mon Sep 17 00:00:00 2001 From: Constantin Date: Fri, 19 Jul 2013 17:54:52 +0200 Subject: [PATCH] works --- qt/multypo.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); -- 2.30.2