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

Method getSettingsWindow

pcsx2-qt/MainWindow.cpp:3150–3165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3148}
3149
3150SettingsWindow* MainWindow::getSettingsWindow()
3151{
3152 if (!m_settings_window)
3153 {
3154 m_settings_window = new SettingsWindow();
3155 connect(m_settings_window->getInterfaceSettingsWidget(), &InterfaceSettingsWidget::themeChanged, this, &MainWindow::onThemeChanged);
3156 connect(m_settings_window->getInterfaceSettingsWidget(), &InterfaceSettingsWidget::languageChanged, this, &MainWindow::onLanguageChanged);
3157 connect(m_settings_window->getInterfaceSettingsWidget(), &InterfaceSettingsWidget::backgroundChanged, m_game_list_widget, [this] { m_game_list_widget->setCustomBackground(); });
3158 connect(m_settings_window->getInterfaceSettingsWidget(), &InterfaceSettingsWidget::preferEnglishGameListChanged, this, [] {
3159 g_main_window->m_game_list_widget->refreshGridCovers();
3160 Host::RunOnGSThread([] { FullscreenUI::PreferEnglishGameListChanged(); });
3161 });
3162 }
3163
3164 return m_settings_window;
3165}
3166
3167void MainWindow::doSettings(const char* category /* = nullptr */)
3168{

Callers

nothing calls this directly

Calls 3

setCustomBackgroundMethod · 0.80
refreshGridCoversMethod · 0.80

Tested by

no test coverage detected