| 2507 | } |
| 2508 | |
| 2509 | void MainWindow::showEvent(QShowEvent* event) |
| 2510 | { |
| 2511 | QMainWindow::showEvent(event); |
| 2512 | |
| 2513 | // This is a bit silly, but for some reason resizing *before* the window is shown |
| 2514 | // gives the incorrect sizes for columns, if you set the style before setting up |
| 2515 | // the rest of the window... so, instead, let's just force it to be resized on show. |
| 2516 | if (isShowingGameList()) |
| 2517 | m_game_list_widget->resizeTableViewColumnsToFit(); |
| 2518 | |
| 2519 | #ifdef ENABLE_RAINTEGRATION |
| 2520 | if (Achievements::IsUsingRAIntegration()) |
| 2521 | Achievements::RAIntegration::MainWindowChanged((void*)winId()); |
| 2522 | #endif |
| 2523 | } |
| 2524 | |
| 2525 | void MainWindow::closeEvent(QCloseEvent* event) |
| 2526 | { |
nothing calls this directly
no test coverage detected