Add a newline to the tooltip

Took 2 minutes

Took 27 seconds
This commit is contained in:
Lukas Brübach 2025-12-31 13:53:43 +01:00
parent 1d3df50ed1
commit 18414d8494

View file

@ -203,7 +203,7 @@ void BarChartWidget::mouseMoveEvent(QMouseEvent *e)
if (hoveredSegment >= 0) {
const auto &s = segments[hoveredSegment];
QString text = QString("%1: %2 cards\n%3").arg(s.category).arg(s.value).arg(s.cards.join(", "));
QString text = QString("%1: %2 cards\n\n%3").arg(s.category).arg(s.value).arg(s.cards.join("\n"));
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QToolTip::showText(e->globalPosition().toPoint(), text, this);
#else