mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Settings: emit HideCursorChanged()
This commit is contained in:
@ -17,6 +17,8 @@
|
||||
#include "Common/StringUtil.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
|
||||
#include "DolphinQt2/Settings.h"
|
||||
|
||||
InterfacePane::InterfacePane(QWidget* parent) : QWidget(parent)
|
||||
{
|
||||
CreateLayout();
|
||||
@ -113,7 +115,8 @@ void InterfacePane::ConnectLayout()
|
||||
connect(m_checkbox_use_panic_handlers, &QCheckBox::clicked, this, &InterfacePane::OnSaveConfig);
|
||||
connect(m_checkbox_enable_osd, &QCheckBox::clicked, this, &InterfacePane::OnSaveConfig);
|
||||
connect(m_checkbox_pause_on_focus_lost, &QCheckBox::clicked, this, &InterfacePane::OnSaveConfig);
|
||||
connect(m_checkbox_hide_mouse, &QCheckBox::clicked, this, &InterfacePane::OnSaveConfig);
|
||||
connect(m_checkbox_hide_mouse, &QCheckBox::clicked, &Settings::Instance(),
|
||||
&Settings::SetHideCursor);
|
||||
}
|
||||
|
||||
void InterfacePane::LoadConfig()
|
||||
@ -131,7 +134,7 @@ void InterfacePane::LoadConfig()
|
||||
m_checkbox_enable_osd->setChecked(startup_params.bOnScreenDisplayMessages);
|
||||
m_checkbox_show_active_title->setChecked(startup_params.m_show_active_title);
|
||||
m_checkbox_pause_on_focus_lost->setChecked(startup_params.m_PauseOnFocusLost);
|
||||
m_checkbox_hide_mouse->setChecked(startup_params.bHideCursor);
|
||||
m_checkbox_hide_mouse->setChecked(Settings::Instance().GetHideCursor());
|
||||
}
|
||||
|
||||
void InterfacePane::OnSaveConfig()
|
||||
@ -148,7 +151,6 @@ void InterfacePane::OnSaveConfig()
|
||||
settings.bOnScreenDisplayMessages = m_checkbox_enable_osd->isChecked();
|
||||
settings.m_show_active_title = m_checkbox_show_active_title->isChecked();
|
||||
settings.m_PauseOnFocusLost = m_checkbox_pause_on_focus_lost->isChecked();
|
||||
settings.bHideCursor = m_checkbox_hide_mouse->isChecked();
|
||||
|
||||
settings.SaveSettings();
|
||||
}
|
||||
|
Reference in New Issue
Block a user