From 7bf8b5e7a6fa0e72b1b446235e7d4ed8139878b6 Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Wed, 2 Oct 2024 19:07:29 +0200 Subject: [PATCH] Only draw major+minor version on startup splash screen --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 9905058..a465d4c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);