Skip to content

Commit

Permalink
Update aboutwidget.cpp
Browse files Browse the repository at this point in the history
Add QPA platform after version.
  • Loading branch information
rodlie committed Dec 29, 2024
1 parent dc911b0 commit e7367c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ui/widgets/aboutwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "appsupport.h"
#include "themesupport.h"

#include <QApplication>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QLabel>
Expand All @@ -45,12 +46,14 @@ AboutWidget::AboutWidget(QWidget *parent)
int logoSize = 96;
QString label = QString::fromUtf8("<div style=\"margin: 0; padding: 0; text-align: center; font-weight: normal;\">"
"<img src=\":/icons/hicolor/%5x%5/apps/%4.png\" width=\"%2\" height=\"%2\">"
"<h1 style=\"font-weight: normal; margin-top: 0; padding-top: 0;\">%3<br><span style=\"font-size: large;\">%1</span></h1>"
"<h1 style=\"font-weight: normal; margin-top: 0; padding-top: 0;\">%3<br>"
"<span style=\"font-size: large;\">%1 <span style=\"font-size: medium;\">(%6)</span></span></h1>"
"</div>").arg(AppSupport::getAppVersion(),
QString::number(ThemeSupport::getIconSize(logoSize).width()),
AppSupport::getAppDisplayName(),
AppSupport::getAppID(),
QString::number(ThemeSupport::getIconSize(qRound(logoSize * devicePixelRatioF())).width()));
QString::number(ThemeSupport::getIconSize(qRound(logoSize * devicePixelRatioF())).width()),
QApplication::platformName());
const auto buildInfo = AppSupport::getAppBuildInfo(true);
if (!buildInfo.isEmpty()) {
label.append(buildInfo);
Expand Down

0 comments on commit e7367c8

Please sign in to comment.