GeneralPane: Add BalloonTip to fallback region combobox
This commit is contained in:
parent
fa4803f38a
commit
bfbc4c8cc7
|
@ -213,17 +213,11 @@ void GeneralPane::CreateFallbackRegion()
|
|||
fallback_region_dropdown_layout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
|
||||
fallback_region_group_layout->addLayout(fallback_region_dropdown_layout);
|
||||
|
||||
m_combobox_fallback_region = new QComboBox(this);
|
||||
m_combobox_fallback_region = new ToolTipComboBox();
|
||||
fallback_region_dropdown_layout->addRow(tr("Fallback Region:"), m_combobox_fallback_region);
|
||||
|
||||
for (const QString& option : {tr("NTSC-J"), tr("NTSC-U"), tr("PAL"), tr("NTSC-K")})
|
||||
m_combobox_fallback_region->addItem(option);
|
||||
|
||||
auto* fallback_region_description =
|
||||
new QLabel(tr("Dolphin will use this for titles whose region cannot be determined "
|
||||
"automatically."));
|
||||
fallback_region_description->setWordWrap(true);
|
||||
fallback_region_group_layout->addWidget(fallback_region_description);
|
||||
}
|
||||
|
||||
#if defined(USE_ANALYTICS) && USE_ANALYTICS
|
||||
|
@ -429,6 +423,9 @@ void GeneralPane::AddDescriptions()
|
|||
"<br><br>Selecting \"Don't Update\" will prevent Dolphin from automatically checking for "
|
||||
"updates."
|
||||
"<br><br><dolphin_emphasis>If unsure, select Releases.</dolphin_emphasis>");
|
||||
static constexpr char TR_FALLBACK_REGION_DESCRIPTION[] =
|
||||
QT_TR_NOOP("Sets the region used for titles whose region cannot be determined automatically."
|
||||
"<br><br>This setting cannot be changed while emulation is active.");
|
||||
|
||||
m_checkbox_dualcore->SetDescription(tr(TR_DUALCORE_DESCRIPTION));
|
||||
|
||||
|
@ -450,4 +447,7 @@ void GeneralPane::AddDescriptions()
|
|||
m_combobox_update_track->SetTitle(tr("Auto Update"));
|
||||
m_combobox_update_track->SetDescription(tr(TR_UPDATE_TRACK_DESCRIPTION));
|
||||
}
|
||||
|
||||
m_combobox_fallback_region->SetTitle(tr("Fallback Region"));
|
||||
m_combobox_fallback_region->SetDescription(tr(TR_FALLBACK_REGION_DESCRIPTION));
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ private:
|
|||
QVBoxLayout* m_main_layout;
|
||||
ToolTipComboBox* m_combobox_speedlimit;
|
||||
ToolTipComboBox* m_combobox_update_track;
|
||||
QComboBox* m_combobox_fallback_region;
|
||||
ToolTipComboBox* m_combobox_fallback_region;
|
||||
ConfigBool* m_checkbox_dualcore;
|
||||
ConfigBool* m_checkbox_cheats;
|
||||
ConfigBool* m_checkbox_override_region_settings;
|
||||
|
|
Loading…
Reference in New Issue