add timout warning in ranking game dialog

This commit is contained in:
doitux
2010-09-05 13:13:42 +00:00
parent 76dd9a0289
commit af101c4fce
8 changed files with 24 additions and 6 deletions
+11 -1
View File
@@ -508,7 +508,7 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
connect(this, SIGNAL(signalEndVoteOnKick()), this, SLOT(endVoteOnKick()));
connect(this, SIGNAL(signalNetClientPlayerLeft(unsigned)), this, SLOT(netClientPlayerLeft(unsigned)));
connect(this, SIGNAL(signalWarningAutoFoldInRankingGame(unsigned)), this, SLOT(showWarningAutoFoldInRankingGame(unsigned)));
}
gameTableImpl::~gameTableImpl() {
@@ -3387,3 +3387,13 @@ void gameTableImpl::sendShowMyCardsSignal()
pushButton_showMyCards->hide();
}
}
void gameTableImpl::showWarningAutoFoldInRankingGame(unsigned remainingAutoFolds)
{
QMessageBox::warning(this, tr("PokerTH - Warning"),
tr("You have triggered a warning level of timeouts in a ranking game.\n"
"After %1 additional timeouts the server needs to kick you to provide a better game flow!\n\n"
"If you are temporarily away, you can use the \"away\" tools in the tool box on the right."),
QMessageBox::Ok);
tabWidget_Right->setCurrentIndex(1);
}