Merge pull request #16451 from wwmayer/fix_qt6_warnings

Fix Qt6 warnings
This commit is contained in:
Chris Hennes
2024-09-12 21:22:37 -05:00
committed by GitHub
6 changed files with 38 additions and 13 deletions

View File

@@ -2126,8 +2126,7 @@ QPixmap MainWindow::splashImage() const
y = h - 20;
}
QColor color;
color.setNamedColor(QString::fromLatin1(tc->second.c_str()));
QColor color(QString::fromLatin1(tc->second.c_str()));
if (color.isValid()) {
painter.setPen(color);
painter.setFont(fontExe);
@@ -2137,8 +2136,7 @@ QPixmap MainWindow::splashImage() const
}
painter.setFont(fontVer);
painter.drawText(x + (l + 235), y - 7, version);
QColor warningColor;
warningColor.setNamedColor(QString::fromLatin1(wc->second.c_str()));
QColor warningColor(QString::fromLatin1(wc->second.c_str()));
if (suffix == QLatin1String("dev") && warningColor.isValid()) {
fontVer.setPointSizeF(14.0);
painter.setFont(fontVer);