This commit is contained in:
@@ -27,9 +27,10 @@ gameLobbyDialogImpl::gameLobbyDialogImpl(QWidget *parent, ConfigFile *c)
|
|||||||
myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());
|
myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());
|
||||||
|
|
||||||
//wait start game message
|
//wait start game message
|
||||||
waitStartGameMsgBox.setText(tr("Starting game. Please wait ..."));
|
waitStartGameMsgBox = new QMessageBox(this);
|
||||||
waitStartGameMsgBox.setWindowModality(Qt::NonModal);
|
waitStartGameMsgBox->setText(tr("Starting game. Please wait ..."));
|
||||||
waitStartGameMsgBox.setStandardButtons(QMessageBox::NoButton);
|
waitStartGameMsgBox->setWindowModality(Qt::NonModal);
|
||||||
|
waitStartGameMsgBox->setStandardButtons(QMessageBox::NoButton);
|
||||||
|
|
||||||
waitStartGameMsgBoxTimer = new QTimer(this);
|
waitStartGameMsgBoxTimer = new QTimer(this);
|
||||||
waitStartGameMsgBoxTimer->setSingleShot(TRUE);
|
waitStartGameMsgBoxTimer->setSingleShot(TRUE);
|
||||||
@@ -170,7 +171,7 @@ void gameLobbyDialogImpl::refresh(int actionID) {
|
|||||||
if (actionID == MSG_NET_GAME_CLIENT_START)
|
if (actionID == MSG_NET_GAME_CLIENT_START)
|
||||||
{
|
{
|
||||||
waitStartGameMsgBoxTimer->stop();
|
waitStartGameMsgBoxTimer->stop();
|
||||||
waitStartGameMsgBox.hide();
|
waitStartGameMsgBox->hide();
|
||||||
QTimer::singleShot(500, this, SLOT(accept()));
|
QTimer::singleShot(500, this, SLOT(accept()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -660,7 +661,11 @@ void gameLobbyDialogImpl::hideShowGameDescription(bool show) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void gameLobbyDialogImpl::showWaitStartGameMsgBox() { waitStartGameMsgBox.show(); }
|
void gameLobbyDialogImpl::showWaitStartGameMsgBox() {
|
||||||
|
waitStartGameMsgBox->show();
|
||||||
|
waitStartGameMsgBox->raise();
|
||||||
|
waitStartGameMsgBox->activateWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ private:
|
|||||||
LobbyChat *myChat;
|
LobbyChat *myChat;
|
||||||
QString myAppDataPath;
|
QString myAppDataPath;
|
||||||
int keyUpCounter;
|
int keyUpCounter;
|
||||||
QMessageBox waitStartGameMsgBox;
|
QMessageBox *waitStartGameMsgBox;
|
||||||
QTimer *waitStartGameMsgBoxTimer;
|
QTimer *waitStartGameMsgBoxTimer;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
Reference in New Issue
Block a user