Skip to content

Commit

Permalink
Only draw major+minor version on startup splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
DeinAlptraum committed Oct 2, 2024
1 parent 274007e commit 7bf8b5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ int main(int argc, char *argv[]) {
versionFont.setPixelSize(24);
painter.setFont(versionFont);

QStringList version_parts = QString(xstr(VERSION)).split(".");
QString maj_min_version = version_parts[0] + "." + version_parts[1];

painter.drawText(
0, 0, 418, 130,
Qt::AlignRight | Qt::AlignBottom,
QString(xstr(VERSION)));
maj_min_version);

painter.end();
QSplashScreen splash(canvas);
Expand Down

0 comments on commit 7bf8b5e

Please sign in to comment.