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

Method destroyDisplayWidget

pcsx2-qt/MainWindow.cpp:3001–3034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2999}
3000
3001void MainWindow::destroyDisplayWidget(bool show_game_list)
3002{
3003 if (!m_display_surface)
3004 return;
3005
3006 if (!(m_display_surface->isFullScreen() || m_display_is_exclusive_fullscreen) && !isRenderingToMain())
3007 saveDisplayWindowGeometryToConfig();
3008
3009 if (isRenderingToMain())
3010 {
3011 pxAssertRel(m_ui.mainContainer->indexOf(m_display_container) == 1, "Display widget in stack");
3012 m_ui.mainContainer->removeWidget(m_display_container);
3013 if (show_game_list)
3014 {
3015 m_ui.mainContainer->setCurrentIndex(0);
3016 m_game_list_widget->resizeTableViewColumnsToFit();
3017 }
3018 }
3019
3020 if (m_display_container)
3021 {
3022 m_display_container->deleteLater();
3023 m_display_container = nullptr;
3024 // m_display_surface will be destroyed by the container's dtor
3025 m_display_surface = nullptr;
3026 }
3027 else
3028 {
3029 m_display_surface->deleteLater();
3030 m_display_surface = nullptr;
3031 }
3032
3033 updateDisplayRelatedActions(false, false, false);
3034}
3035
3036void MainWindow::updateDisplayWidgetCursor()
3037{

Callers

nothing calls this directly

Calls 2

isFullScreenMethod · 0.80

Tested by

no test coverage detected