mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Merge pull request #12390 from lioncash/string
GraphicsModListWidget: Add string specifier to By and Description fields
This commit is contained in:
@ -210,14 +210,14 @@ void GraphicsModListWidget::OnModChanged(std::optional<std::string> absolute_pat
|
|||||||
|
|
||||||
if (!mod->m_author.empty())
|
if (!mod->m_author.empty())
|
||||||
{
|
{
|
||||||
auto* author_label = new QLabel(tr("By: ") + QString::fromStdString(mod->m_author));
|
auto* author_label = new QLabel(tr("By: %1").arg(QString::fromStdString(mod->m_author)));
|
||||||
m_mod_meta_layout->addWidget(author_label);
|
m_mod_meta_layout->addWidget(author_label);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mod->m_description.empty())
|
if (!mod->m_description.empty())
|
||||||
{
|
{
|
||||||
auto* description_label =
|
auto* description_label =
|
||||||
new QLabel(tr("Description: ") + QString::fromStdString(mod->m_description));
|
new QLabel(tr("Description: %1").arg(QString::fromStdString(mod->m_description)));
|
||||||
description_label->setWordWrap(true);
|
description_label->setWordWrap(true);
|
||||||
m_mod_meta_layout->addWidget(description_label);
|
m_mod_meta_layout->addWidget(description_label);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user