From 3211f18a5fa44a0e9326959db6d5c7c207aed637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Thu, 27 Nov 2025 23:56:46 +0100 Subject: [PATCH] Use correct placeholders. Took 2 minutes --- cockatrice/src/interface/widgets/general/display/color_bar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/interface/widgets/general/display/color_bar.cpp b/cockatrice/src/interface/widgets/general/display/color_bar.cpp index cb73e9ebc..5c9376b3d 100644 --- a/cockatrice/src/interface/widgets/general/display/color_bar.cpp +++ b/cockatrice/src/interface/widgets/general/display/color_bar.cpp @@ -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;