summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle K <190571+Docteh@users.noreply.github.com>2022-05-30 00:01:07 +0200
committerKyle K <190571+Docteh@users.noreply.github.com>2022-05-30 03:37:38 +0200
commit499c89790b0e07dbb014b8b7415bf0e28cecfaaf (patch)
treeedc895b3b21f450bf01de7b24834c8e00d731e11
parentUpdate some files with Qt 5.15.2 best practices in mind (diff)
downloadyuzu-499c89790b0e07dbb014b8b7415bf0e28cecfaaf.tar
yuzu-499c89790b0e07dbb014b8b7415bf0e28cecfaaf.tar.gz
yuzu-499c89790b0e07dbb014b8b7415bf0e28cecfaaf.tar.bz2
yuzu-499c89790b0e07dbb014b8b7415bf0e28cecfaaf.tar.lz
yuzu-499c89790b0e07dbb014b8b7415bf0e28cecfaaf.tar.xz
yuzu-499c89790b0e07dbb014b8b7415bf0e28cecfaaf.tar.zst
yuzu-499c89790b0e07dbb014b8b7415bf0e28cecfaaf.zip
-rw-r--r--src/yuzu/configuration/configure_motion_touch.cpp2
-rw-r--r--src/yuzu/configuration/configure_motion_touch.ui19
2 files changed, 3 insertions, 18 deletions
diff --git a/src/yuzu/configuration/configure_motion_touch.cpp b/src/yuzu/configuration/configure_motion_touch.cpp
index 27559c37b..c313b0919 100644
--- a/src/yuzu/configuration/configure_motion_touch.cpp
+++ b/src/yuzu/configuration/configure_motion_touch.cpp
@@ -151,6 +151,8 @@ void ConfigureMotionTouch::ConnectEvents() {
&ConfigureMotionTouch::OnConfigureTouchCalibration);
connect(ui->touch_from_button_config_btn, &QPushButton::clicked, this,
&ConfigureMotionTouch::OnConfigureTouchFromButton);
+ connect(ui->buttonBox, &QDialogButtonBox::accepted, this,
+ &ConfigureMotionTouch::ApplyConfiguration);
connect(ui->buttonBox, &QDialogButtonBox::rejected, this, [this] {
if (CanCloseDialog()) {
reject();
diff --git a/src/yuzu/configuration/configure_motion_touch.ui b/src/yuzu/configuration/configure_motion_touch.ui
index c75a84ae4..0237fae54 100644
--- a/src/yuzu/configuration/configure_motion_touch.ui
+++ b/src/yuzu/configuration/configure_motion_touch.ui
@@ -293,22 +293,5 @@
</layout>
</widget>
<resources/>
- <connections>
- <connection>
- <sender>buttonBox</sender>
- <signal>accepted()</signal>
- <receiver>ConfigureMotionTouch</receiver>
- <slot>ApplyConfiguration()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>20</x>
- <y>20</y>
- </hint>
- <hint type="destinationlabel">
- <x>20</x>
- <y>20</y>
- </hint>
- </hints>
- </connection>
- </connections>
+ <connections/>
</ui>