From 6d4b63aeaf10f8f60b2489672b65f7e341f392af Mon Sep 17 00:00:00 2001 From: Chin Date: Sat, 7 Feb 2015 12:50:06 -0500 Subject: [PATCH] Settings: Change slots name --- src/citra_qt/CMakeLists.txt | 6 +++--- src/citra_qt/config/inputs.cpp | 10 +++++----- src/citra_qt/config/inputs.h | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt index ae0dd1423..c63b647c9 100644 --- a/src/citra_qt/CMakeLists.txt +++ b/src/citra_qt/CMakeLists.txt @@ -21,7 +21,7 @@ set(SRCS debugger/registers.cpp util/spinbox.cpp bootmanager.cpp - hotkeys.cpp + hotkeys.cpp main.cpp citra-qt.rc ) @@ -47,7 +47,7 @@ set(HEADERS debugger/registers.h util/spinbox.h bootmanager.h - hotkeys.h + hotkeys.h main.h version.h ) @@ -59,7 +59,7 @@ set(UIS debugger/disassembler.ui debugger/profiler.ui debugger/registers.ui - hotkeys.ui + hotkeys.ui main.ui ) diff --git a/src/citra_qt/config/inputs.cpp b/src/citra_qt/config/inputs.cpp index d79649bfc..43ace3f78 100644 --- a/src/citra_qt/config/inputs.cpp +++ b/src/citra_qt/config/inputs.cpp @@ -2,7 +2,7 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. -#include "common/log.h" +#include "common/logging/log.h" #include #include @@ -36,10 +36,10 @@ GInputsDialog::GInputsDialog(QWidget* parent) : QDialog(parent) { // set up event handlers for the buttons QPushButton* defaultButton = this->ui.buttonBox->button(QDialogButtonBox::RestoreDefaults); - connect(defaultButton, SIGNAL(clicked()), this, SLOT(OnDefaultClicked())); + connect(defaultButton, SIGNAL(clicked()), this, SLOT(RestoreDefaultSettings())); QPushButton* okButton = this->ui.buttonBox->button(QDialogButtonBox::Ok); - connect(okButton, SIGNAL(clicked()), this, SLOT(OnOkClicked())); + connect(okButton, SIGNAL(clicked()), this, SLOT(SaveSettings())); // create a copy of the current settings this->temp_settings = Settings::Values(Settings::values); @@ -84,7 +84,7 @@ QString GInputsDialog::getKeyName(int key_code) { return QKeySequence(key_code).toString(); } -void GInputsDialog::OnDefaultClicked() { +void GInputsDialog::RestoreDefaultSettings() { // load the default button settings into temp_settings this->temp_settings.pad_a_key = Qt::Key_A; this->temp_settings.pad_b_key = Qt::Key_S; @@ -108,7 +108,7 @@ void GInputsDialog::OnDefaultClicked() { this->displayButtonSettings(GInputsDialog::temp_settings); } -void GInputsDialog::OnOkClicked() { +void GInputsDialog::SaveSettings() { Config config; // load the temporary settings into our real settings diff --git a/src/citra_qt/config/inputs.h b/src/citra_qt/config/inputs.h index f3205e372..185bc2a00 100644 --- a/src/citra_qt/config/inputs.h +++ b/src/citra_qt/config/inputs.h @@ -29,6 +29,6 @@ private: void displayButtonSettings(const Settings::Values& values); private slots: - void OnDefaultClicked(); - void OnOkClicked(); + void SaveSettings(); + void RestoreDefaultSettings(); };