| 531 | } |
| 532 | |
| 533 | void MainWindow::showStatusBarMessageImmediately(const QString& text, int timeout) |
| 534 | { |
| 535 | showStatusBarMessage(text, timeout); |
| 536 | // Make sure that paint events reach the user screen, by processing events |
| 537 | // until the queue is empty, including events appended during processing. |
| 538 | // In the worst case, this will stop after 100 ms. |
| 539 | QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 100 /* ms */); |
| 540 | } |
| 541 | |
| 542 | void MainWindow::clearStatusBarMessage() |
| 543 | { |