diff options
author | Lioncash <mathew1800@gmail.com> | 2021-01-14 09:04:20 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-01-14 09:05:41 +0100 |
commit | e11e1dcf2de855e4c8bec9cf8a99c0fb79d01634 (patch) | |
tree | 30ac24559332fb77b8a5ce3858db3ac563b27935 /src | |
parent | Merge pull request #5343 from lioncash/qt6 (diff) | |
download | yuzu-e11e1dcf2de855e4c8bec9cf8a99c0fb79d01634.tar yuzu-e11e1dcf2de855e4c8bec9cf8a99c0fb79d01634.tar.gz yuzu-e11e1dcf2de855e4c8bec9cf8a99c0fb79d01634.tar.bz2 yuzu-e11e1dcf2de855e4c8bec9cf8a99c0fb79d01634.tar.lz yuzu-e11e1dcf2de855e4c8bec9cf8a99c0fb79d01634.tar.xz yuzu-e11e1dcf2de855e4c8bec9cf8a99c0fb79d01634.tar.zst yuzu-e11e1dcf2de855e4c8bec9cf8a99c0fb79d01634.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/configuration/configure_dialog.cpp | 22 | ||||
-rw-r--r-- | src/yuzu/configuration/configure_motion_touch.cpp | 1 |
2 files changed, 2 insertions, 21 deletions
diff --git a/src/yuzu/configuration/configure_dialog.cpp b/src/yuzu/configuration/configure_dialog.cpp index b33f8437a..d6b17a28d 100644 --- a/src/yuzu/configuration/configure_dialog.cpp +++ b/src/yuzu/configuration/configure_dialog.cpp @@ -117,31 +117,13 @@ void ConfigureDialog::UpdateVisibleTabs() { return; } - const std::map<QWidget*, QString> widgets = { - {ui->generalTab, tr("General")}, - {ui->systemTab, tr("System")}, - {ui->profileManagerTab, tr("Profiles")}, - {ui->inputTab, tr("Controls")}, - {ui->hotkeysTab, tr("Hotkeys")}, - {ui->cpuTab, tr("CPU")}, - {ui->cpuDebugTab, tr("Debug")}, - {ui->graphicsTab, tr("Graphics")}, - {ui->graphicsAdvancedTab, tr("Advanced")}, - {ui->audioTab, tr("Audio")}, - {ui->debugTab, tr("Debug")}, - {ui->webTab, tr("Web")}, - {ui->uiTab, tr("UI")}, - {ui->filesystemTab, tr("Filesystem")}, - {ui->serviceTab, tr("Services")}, - }; - [[maybe_unused]] const QSignalBlocker blocker(ui->tabWidget); ui->tabWidget->clear(); - const QList<QWidget*> tabs = qvariant_cast<QList<QWidget*>>(items[0]->data(Qt::UserRole)); + const auto tabs = qvariant_cast<QList<QWidget*>>(items[0]->data(Qt::UserRole)); - for (const auto tab : tabs) { + for (auto* const tab : tabs) { ui->tabWidget->addTab(tab, tab->accessibleName()); } } diff --git a/src/yuzu/configuration/configure_motion_touch.cpp b/src/yuzu/configuration/configure_motion_touch.cpp index 1c477f868..caaa85930 100644 --- a/src/yuzu/configuration/configure_motion_touch.cpp +++ b/src/yuzu/configuration/configure_motion_touch.cpp @@ -112,7 +112,6 @@ ConfigureMotionTouch::~ConfigureMotionTouch() = default; void ConfigureMotionTouch::SetConfiguration() { const Common::ParamPackage motion_param(Settings::values.motion_device); const Common::ParamPackage touch_param(Settings::values.touch_device); - const std::string motion_engine = motion_param.Get("engine", "motion_emu"); const std::string touch_engine = touch_param.Get("engine", "emu_window"); ui->touch_provider->setCurrentIndex( |