committed by
Kacper Donat
parent
66aaf6a2ee
commit
6692dacc0a
@@ -187,7 +187,7 @@ static void renderDevBuildWarning(QPainter& painter,
|
||||
|
||||
// Construct the lines of text and figure out how much space they need
|
||||
const auto devWarningLine1 = QObject::tr("WARNING: This is a development version.");
|
||||
const auto devWarningLine2 = QObject::tr("Please do not use it in a production environment.");
|
||||
const auto devWarningLine2 = QObject::tr("Do not use it in a production environment.");
|
||||
QFontMetrics fontMetrics(painter.font()); // Try to use the existing font
|
||||
int padding = QtTools::horizontalAdvance(fontMetrics, QLatin1String("M")); // Arbitrary
|
||||
int line1Width = QtTools::horizontalAdvance(fontMetrics, devWarningLine1);
|
||||
|
||||
Reference in New Issue
Block a user