From fdabcfcdda69750545114407c3cb0b99b6b162c0 Mon Sep 17 00:00:00 2001 From: doitux Date: Thu, 1 Jul 2010 15:00:19 +0000 Subject: [PATCH] leave game to lobby message bugfix, move connected players list in lobby back to top again --- src/gui/qt/gamelobbydialog.ui | 55 ++++++++++---------- src/gui/qt/gametable/gametableimpl.cpp | 2 +- src/gui/qt/mymessagedialog.ui | 69 +++++++++++++------------- 3 files changed, 63 insertions(+), 63 deletions(-) diff --git a/src/gui/qt/gamelobbydialog.ui b/src/gui/qt/gamelobbydialog.ui index 466ffee0..16f12c4f 100644 --- a/src/gui/qt/gamelobbydialog.ui +++ b/src/gui/qt/gamelobbydialog.ui @@ -335,6 +335,33 @@ p, li { white-space: pre-wrap; } 7 + + + + + 221 + 240 + + + + 1 + + + + 25 + 26 + + + + 15 + + + + Connected Players + + + + @@ -617,33 +644,6 @@ p, li { white-space: pre-wrap; } - - - - - 221 - 240 - - - - 1 - - - - 25 - 26 - - - - 15 - - - - Connected Players - - - - @@ -837,7 +837,6 @@ p, li { white-space: pre-wrap; } pushButton_JoinGame textBrowser_ChatDisplay lineEdit_ChatInput - treeWidget_connectedPlayers checkBox_fillUpWithComputerOpponents pushButton_StartGame pushButton_Kick diff --git a/src/gui/qt/gametable/gametableimpl.cpp b/src/gui/qt/gametable/gametableimpl.cpp index 600af42e..100e2fa6 100755 --- a/src/gui/qt/gametable/gametableimpl.cpp +++ b/src/gui/qt/gametable/gametableimpl.cpp @@ -3103,7 +3103,7 @@ void gameTableImpl::leaveCurrentNetworkGame() { myStartWindow->getSession()->sendLeaveCurrentGame(); } else { - if (dialog.exec(1, tr("Attention! Do you really want to leave the current game\nand go back to the lobby?"), tr("PokerTH - Internet Game Message"), QPixmap(":/gfx/logoChip3D.png"), QDialogButtonBox::Ok) == QDialog::Accepted, true ) { + if (dialog.exec(1, tr("Attention! Do you really want to leave the current game\nand go back to the lobby?"), tr("PokerTH - Internet Game Message"), QPixmap(":/gfx/logoChip3D.png"), QDialogButtonBox::Yes|QDialogButtonBox::No, true) == QDialog::Accepted) { assert(myStartWindow->getSession()); myStartWindow->getSession()->sendLeaveCurrentGame(); } diff --git a/src/gui/qt/mymessagedialog.ui b/src/gui/qt/mymessagedialog.ui index 8f874d62..79c65ccb 100644 --- a/src/gui/qt/mymessagedialog.ui +++ b/src/gui/qt/mymessagedialog.ui @@ -1,7 +1,8 @@ - + + myMessageDialog - - + + 0 0 @@ -9,16 +10,16 @@ 118 - + Dialog - - + + 9 - - - + + + 50 50 @@ -26,24 +27,24 @@ - - - - - + + + + + MessageText - + - + Qt::Vertical - + QSizePolicy::Fixed - + 199 13 @@ -51,31 +52,31 @@ - - - - Do not show this warning again. + + + + Do not show this mesage again. - - - + + + Qt::Horizontal - - QDialogButtonBox::No|QDialogButtonBox::NoButton|QDialogButtonBox::Yes + + QDialogButtonBox::No|QDialogButtonBox::Yes - + - + Qt::Vertical - + 20 81 @@ -93,11 +94,11 @@ myMessageDialog accept() - + 248 254 - + 157 274 @@ -109,11 +110,11 @@ myMessageDialog reject() - + 316 260 - + 286 274