MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / showEvent

Method showEvent

pcsx2-qt/MainWindow.cpp:2509–2523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2507}
2508
2509void 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
2525void MainWindow::closeEvent(QCloseEvent* event)
2526{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected