Update MainWindow.cpp

fixed small typo in the warning about 0.22 being dev version not for production use
This commit is contained in:
FEA-eng
2023-09-05 20:53:27 +02:00
committed by Chris Hennes
parent af3cf2e9e9
commit b277feed7d

View File

@@ -1714,7 +1714,7 @@ void MainWindow::renderDevBuildWarning(
// Construct the lines of text and figure out how much space they need
const auto devWarningLine1 = tr("WARNING: This is a development version.");
const auto devWarningLine2 = tr("Please do not use in a production environment.");
const auto devWarningLine2 = tr("Please 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);