Commit b4ea35d4 authored by Luigi Toscano's avatar Luigi Toscano

Fix the position of the initial popup message

Summary:
The initial popup message appears in the wrong position (central position
on the left side, with its left boundary outside the screen).

Add a bit of delay before displaying the message. A simple singleShot
with no delay seems to be enough to move the creation of the popup
after that the initialization of the window (personal guess) is ready.

Test Plan: The program compiles and the initial popup is shown in the correct position.

Reviewers: schwarzer, #kde_games

Reviewed By: schwarzer

Subscribers: #kde_games

Differential Revision: https://phabricator.kde.org/D5668
parent c0921efe
......@@ -104,7 +104,7 @@ void MainWindow::newGame()
m_errorDock->setVisible(false);
m_setupWidget->newGame();
m_gameScene->showMessage(i18n("Set up a new game..."));
QTimer::singleShot(0, this, [this] { m_gameScene->showMessage(i18n("Set up a new game...")); } );
}
void MainWindow::loadGame()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment