diff options
| author | rlnilsen <47765059+rlnilsen@users.noreply.github.com> | 2019-10-22 01:43:37 +0200 |
|---|---|---|
| committer | rlnilsen <47765059+rlnilsen@users.noreply.github.com> | 2019-10-26 02:20:17 +0200 |
| commit | 8aec424191b295e51d3f305c20086c08dd41b480 (patch) | |
| tree | ac460dea9957f10d91edcffc1bc33a2064c1515a /Source/Core | |
| parent | 4cb3baba5cf360a02dff9d6af1a839a570c40999 (diff) | |
Controller Settings Dialog: Rename "Advanced" group box to "Common".
The only setting inside, "Background Input", doesn't seem advanced to me, but it is used for both GC an Wii input.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/Config/ControllersWindow.cpp | 23 | ||||
| -rw-r--r-- | Source/Core/DolphinQt/Config/ControllersWindow.h | 10 |
2 files changed, 17 insertions, 16 deletions
diff --git a/Source/Core/DolphinQt/Config/ControllersWindow.cpp b/Source/Core/DolphinQt/Config/ControllersWindow.cpp index 304ae7364c..0f2cfc00e3 100644 --- a/Source/Core/DolphinQt/Config/ControllersWindow.cpp +++ b/Source/Core/DolphinQt/Config/ControllersWindow.cpp @@ -67,7 +67,7 @@ ControllersWindow::ControllersWindow(QWidget* parent) : QDialog(parent) CreateGamecubeLayout(); CreateWiimoteLayout(); - CreateAdvancedLayout(); + CreateCommonLayout(); CreateMainLayout(); LoadSettings(); ConnectWidgets(); @@ -199,15 +199,16 @@ void ControllersWindow::CreateWiimoteLayout() m_wiimote_layout->addWidget(m_wiimote_speaker_data, m_wiimote_layout->rowCount(), 1, 1, -1); } -void ControllersWindow::CreateAdvancedLayout() +void ControllersWindow::CreateCommonLayout() { - m_advanced_box = new QGroupBox(tr("Advanced")); - m_advanced_layout = new QHBoxLayout(); - m_advanced_bg_input = new QCheckBox(tr("Background Input")); + // i18n: This is "common" as in "shared", not the opposite of "uncommon" + m_common_box = new QGroupBox(tr("Common")); + m_common_layout = new QHBoxLayout(); + m_common_bg_input = new QCheckBox(tr("Background Input")); - m_advanced_layout->addWidget(m_advanced_bg_input); + m_common_layout->addWidget(m_common_bg_input); - m_advanced_box->setLayout(m_advanced_layout); + m_common_box->setLayout(m_common_layout); } void ControllersWindow::CreateMainLayout() @@ -217,7 +218,7 @@ void ControllersWindow::CreateMainLayout() layout->addWidget(m_gc_box); layout->addWidget(m_wiimote_box); - layout->addWidget(m_advanced_box); + layout->addWidget(m_common_box); layout->addWidget(m_button_box); WrapInScrollArea(this, layout); @@ -232,7 +233,7 @@ void ControllersWindow::ConnectWidgets() connect(m_wiimote_passthrough, &QRadioButton::toggled, this, &ControllersWindow::OnWiimoteModeChanged); - connect(m_advanced_bg_input, &QCheckBox::toggled, this, &ControllersWindow::SaveSettings); + connect(m_common_bg_input, &QCheckBox::toggled, this, &ControllersWindow::SaveSettings); connect(m_wiimote_continuous_scanning, &QCheckBox::toggled, this, &ControllersWindow::SaveSettings); connect(m_wiimote_real_balance_board, &QCheckBox::toggled, this, @@ -480,7 +481,7 @@ void ControllersWindow::LoadSettings() m_wiimote_speaker_data->setChecked(SConfig::GetInstance().m_WiimoteEnableSpeaker); m_wiimote_continuous_scanning->setChecked(SConfig::GetInstance().m_WiimoteContinuousScanning); - m_advanced_bg_input->setChecked(SConfig::GetInstance().m_BackgroundInput); + m_common_bg_input->setChecked(SConfig::GetInstance().m_BackgroundInput); if (SConfig::GetInstance().m_bt_passthrough_enabled) m_wiimote_passthrough->setChecked(true); @@ -495,7 +496,7 @@ void ControllersWindow::SaveSettings() SConfig::GetInstance().m_WiimoteEnableSpeaker = m_wiimote_speaker_data->isChecked(); SConfig::GetInstance().m_WiimoteContinuousScanning = m_wiimote_continuous_scanning->isChecked(); SConfig::GetInstance().m_bt_passthrough_enabled = m_wiimote_passthrough->isChecked(); - SConfig::GetInstance().m_BackgroundInput = m_advanced_bg_input->isChecked(); + SConfig::GetInstance().m_BackgroundInput = m_common_bg_input->isChecked(); WiimoteReal::ChangeWiimoteSource(WIIMOTE_BALANCE_BOARD, m_wiimote_real_balance_board->isChecked() ? WIIMOTE_SRC_REAL : diff --git a/Source/Core/DolphinQt/Config/ControllersWindow.h b/Source/Core/DolphinQt/Config/ControllersWindow.h index ae03b79491..98e81bd058 100644 --- a/Source/Core/DolphinQt/Config/ControllersWindow.h +++ b/Source/Core/DolphinQt/Config/ControllersWindow.h @@ -40,7 +40,7 @@ private: void CreateGamecubeLayout(); void CreateWiimoteLayout(); - void CreateAdvancedLayout(); + void CreateCommonLayout(); void CreateMainLayout(); void ConnectWidgets(); void LoadSettings(); @@ -73,8 +73,8 @@ private: QCheckBox* m_wiimote_speaker_data; QPushButton* m_wiimote_refresh; - // Advanced - QGroupBox* m_advanced_box; - QHBoxLayout* m_advanced_layout; - QCheckBox* m_advanced_bg_input; + // Common + QGroupBox* m_common_box; + QHBoxLayout* m_common_layout; + QCheckBox* m_common_bg_input; }; |
