|
|
|
@ -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());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|