workaround API change in QT 6.9 (#8859)

Working around `qstring::arg()` API change in Qt 6.9

should fix:

https://cgal.geometryfactory.com/CGAL/testsuite/summary-6.1-I-135.html?package=Lab_Demo
This commit is contained in:
Sebastien Loriot 2025-04-24 09:49:26 +02:00 committed by GitHub
commit 9d40c5209c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ private:
color);
QRect text_rect(left_margin + cell_width + 10, drawing_height - top_margin - j, 50, text_height);
painter.drawText(text_rect, Qt::AlignCenter, QObject::tr("%1").arg(values[i], 0, 'f', 3, QLatin1Char(' ')));
painter.drawText(text_rect, Qt::AlignCenter, QObject::tr("%1").arg(static_cast<double>(values[i]), 0, 'f', 3, QLatin1Char(' ')));
}
if(color_map.size() > size)