mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 04:43:56 -07:00
Use correct placeholders.
Took 2 minutes
This commit is contained in:
parent
f9390f6090
commit
3211f18a5f
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ QString ColorBar::tooltipForPosition(int x) const
|
||||||
|
|
||||||
if (x >= pos && x < pos + segmentWidth) {
|
if (x >= pos && x < pos + segmentWidth) {
|
||||||
double percent = (100.0 * it.value()) / total;
|
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;
|
pos += segmentWidth;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue