mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
EnhancementsWidget:: Move to using ConfigControls and add new control for ComboBoxes that set two settings at once.
This commit is contained in:
@ -363,4 +363,15 @@ void GameConfigWidget::SetItalics()
|
||||
italics(config);
|
||||
for (auto* config : findChildren<ConfigStringChoice*>())
|
||||
italics(config);
|
||||
|
||||
for (auto* config : findChildren<ConfigComplexChoice*>())
|
||||
{
|
||||
std::pair<Config::Location, Config::Location> location = config->GetLocation();
|
||||
if (m_global_layer->Exists(location.first) || m_global_layer->Exists(location.second))
|
||||
{
|
||||
QFont ifont = config->font();
|
||||
ifont.setItalic(true);
|
||||
config->setFont(ifont);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user