kcontrol: ensure that the resolution numbers are not localized in OutputGraphicsItem::configUpdated()

otherwise it looks as if it is currency or something like that (e.g.
"1,920x1,080") and does not match the number that is shown in the combo box
with available resolutions

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-17 20:06:07 +03:00
parent b634d6fd41
commit b4498d8f43

View file

@ -72,7 +72,9 @@ void OutputGraphicsItem::configUpdated()
m_text->setPlainText(
i18nc(
"Configuration options. Output name, width x height (refresh rate Hz)", "%1\n%2x%3 (%4 Hz)",
m_config->output()->name(), m_config->rect().width(), m_config->rect().height(), refresh
m_config->output()->name(),
QString::number(m_config->rect().width()), QString::number(m_config->rect().height()),
refresh
)
);
// more accurate text centering