mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 17:32:30 +00:00
DolphinQt: Move graphics config to main Settings window.
This commit is contained in:
parent
2047eaf1d8
commit
89b8edea03
17 changed files with 77 additions and 161 deletions
|
@ -78,7 +78,6 @@
|
|||
#include "DolphinQt/Achievements/AchievementsWindow.h"
|
||||
#include "DolphinQt/CheatsManager.h"
|
||||
#include "DolphinQt/Config/FreeLookWindow.h"
|
||||
#include "DolphinQt/Config/Graphics/GraphicsWindow.h"
|
||||
#include "DolphinQt/Config/LogConfigWidget.h"
|
||||
#include "DolphinQt/Config/LogWidget.h"
|
||||
#include "DolphinQt/Config/Mapping/MappingWindow.h"
|
||||
|
@ -1306,6 +1305,15 @@ void MainWindow::ShowSettingsWindow()
|
|||
{
|
||||
if (!m_settings_window)
|
||||
{
|
||||
#ifdef HAVE_XRANDR
|
||||
if (GetWindowSystemType() == WindowSystemType::X11)
|
||||
{
|
||||
m_xrr_config = std::make_unique<X11Utils::XRRConfiguration>(
|
||||
static_cast<Display*>(QGuiApplication::platformNativeInterface()->nativeResourceForWindow(
|
||||
"display", windowHandle())),
|
||||
winId());
|
||||
}
|
||||
#endif
|
||||
m_settings_window = new SettingsWindow(this);
|
||||
InstallHotkeyFilter(m_settings_window);
|
||||
}
|
||||
|
@ -1348,24 +1356,8 @@ void MainWindow::ShowHotkeyDialog()
|
|||
|
||||
void MainWindow::ShowGraphicsWindow()
|
||||
{
|
||||
if (!m_graphics_window)
|
||||
{
|
||||
#ifdef HAVE_XRANDR
|
||||
if (GetWindowSystemType() == WindowSystemType::X11)
|
||||
{
|
||||
m_xrr_config = std::make_unique<X11Utils::XRRConfiguration>(
|
||||
static_cast<Display*>(QGuiApplication::platformNativeInterface()->nativeResourceForWindow(
|
||||
"display", windowHandle())),
|
||||
winId());
|
||||
}
|
||||
#endif
|
||||
m_graphics_window = new GraphicsWindow(this);
|
||||
InstallHotkeyFilter(m_graphics_window);
|
||||
}
|
||||
|
||||
m_graphics_window->show();
|
||||
m_graphics_window->raise();
|
||||
m_graphics_window->activateWindow();
|
||||
ShowSettingsWindow();
|
||||
m_settings_window->SelectPane(SettingsWindowPaneIndex::Graphics);
|
||||
}
|
||||
|
||||
void MainWindow::ShowNetPlaySetupDialog()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue