mirror of https://github.com/CGAL/cgal
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:
commit
9d40c5209c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue