mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
Merge pull request #11113 from DivineWinds/translate_tooltip
DolphinQt/HacksWidget: Make backend name in GPU Texture Decoding/Bounding Box tooltip translatable
This commit is contained in:
commit
6911e1b730
1 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,8 @@ void HacksWidget::OnBackendChanged(const QString& backend_name)
|
||||||
m_gpu_texture_decoding->setEnabled(gpu_texture_decoding);
|
m_gpu_texture_decoding->setEnabled(gpu_texture_decoding);
|
||||||
m_disable_bounding_box->setEnabled(bbox);
|
m_disable_bounding_box->setEnabled(bbox);
|
||||||
|
|
||||||
const QString tooltip = tr("%1 doesn't support this feature on your system.").arg(backend_name);
|
const QString tooltip = tr("%1 doesn't support this feature on your system.")
|
||||||
|
.arg(tr(backend_name.toStdString().c_str()));
|
||||||
|
|
||||||
m_gpu_texture_decoding->setToolTip(!gpu_texture_decoding ? tooltip : QString{});
|
m_gpu_texture_decoding->setToolTip(!gpu_texture_decoding ? tooltip : QString{});
|
||||||
m_disable_bounding_box->setToolTip(!bbox ? tooltip : QString{});
|
m_disable_bounding_box->setToolTip(!bbox ? tooltip : QString{});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue