Skip to content

Commit

Permalink
Shorten a long string
Browse files Browse the repository at this point in the history
  • Loading branch information
10110111 committed Jan 25, 2025
1 parent 8d7e4d7 commit 023e726
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/StelSplashScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ void SplashScreen::SplashScreenWidget::paintEvent(QPaintEvent* event)
p.setPen(Qt::white);
#if defined(GIT_REVISION)
QFontMetrics metrics(splashFont);
p.drawText(QPointF(metrics.averageCharWidth(), 1.3*metrics.height()), QString("%1+ (v%2)").arg(StelUtils::getApplicationPublicVersion(), StelUtils::getApplicationVersion()));
const auto verStr = QString("%1+ (v%2)").arg(StelUtils::getApplicationPublicVersion(),
StelUtils::getApplicationVersion());
p.drawText(QPointF(metrics.averageCharWidth(), 1.3*metrics.height()), verStr);
#else
QFont versionFont(splashFont);
QString version = StelUtils::getApplicationPublicVersion();
Expand Down

0 comments on commit 023e726

Please sign in to comment.