mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-10 12:23:58 -07:00
Add a newline to the tooltip
Took 2 minutes Took 27 seconds
This commit is contained in:
parent
1d3df50ed1
commit
18414d8494
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ void BarChartWidget::mouseMoveEvent(QMouseEvent *e)
|
||||||
|
|
||||||
if (hoveredSegment >= 0) {
|
if (hoveredSegment >= 0) {
|
||||||
const auto &s = segments[hoveredSegment];
|
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)
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||||
QToolTip::showText(e->globalPosition().toPoint(), text, this);
|
QToolTip::showText(e->globalPosition().toPoint(), text, this);
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue