Use correct placeholders.

Took 2 minutes
This commit is contained in:
Lukas Brübach 2025-11-27 23:56:46 +01:00 committed by Brübach, Lukas
parent f9390f6090
commit 3211f18a5f

View file

@ -134,7 +134,7 @@ QString ColorBar::tooltipForPosition(int x) const
if (x >= pos && x < pos + segmentWidth) {
double percent = (100.0 * it.value()) / total;
return QString("%1: %2 cards (%.1f%)").arg(it.key()).arg(it.value()).arg(percent);
return QString("%1: %2 cards (%3%)").arg(it.key()).arg(it.value()).arg(QString::number(percent, 'f', 1));
}
pos += segmentWidth;