diff --git a/src/lib_gui/qt/window/QtAbout.cpp b/src/lib_gui/qt/window/QtAbout.cpp
index 0506363b..fcd60d99 100644
--- a/src/lib_gui/qt/window/QtAbout.cpp
+++ b/src/lib_gui/qt/window/QtAbout.cpp
@@ -33,33 +33,30 @@ void QtAbout::setupAbout()
{
QtDeviceScaledPixmap sourcetrailLogo(QString::fromStdWString(ResourcePaths::getGuiPath().wstr() + L"about/logo_sourcetrail.png"));
sourcetrailLogo.scaleToHeight(150);
-
QLabel* sourcetrailLogoLabel = new QLabel(this);
sourcetrailLogoLabel->setPixmap(sourcetrailLogo.pixmap());
sourcetrailLogoLabel->resize(sourcetrailLogo.width(), sourcetrailLogo.height());
- windowLayout->addWidget(sourcetrailLogoLabel);
+ windowLayout->addWidget(sourcetrailLogoLabel, 0, Qt::Alignment(Qt::AlignmentFlag::AlignHCenter));
}
windowLayout->addSpacing(10);
{
- QHBoxLayout* row = new QHBoxLayout();
- windowLayout->addLayout(row);
QLabel* versionLabel = new QLabel(
(
"Version " + Version::getApplicationVersion().toDisplayString() + " - " +
std::string(utility::getApplicationArchitectureType() == APPLICATION_ARCHITECTURE_X86_32 ? "32" : "64") + " bit"
- ).c_str(),
+ ).c_str(),
this
);
- row->addWidget(versionLabel);
+ windowLayout->addWidget(versionLabel, 0, Qt::Alignment(Qt::AlignmentFlag::AlignHCenter));
}
windowLayout->addStretch();
{
- QHBoxLayout* row = new QHBoxLayout();
- windowLayout->addLayout(row);
+ QHBoxLayout* layoutHorz1 = new QHBoxLayout();
+ windowLayout->addLayout(layoutHorz1);
QLabel* companyLabel = new QLabel(
"Coati Software KG
"
@@ -69,9 +66,9 @@ void QtAbout::setupAbout()
"support@sourcetrail.com
"
"sourcetrail.com");
companyLabel->setOpenExternalLinks(true);
- row->addWidget(companyLabel);
+ layoutHorz1->addWidget(companyLabel);
- row->addSpacing(80);
+ layoutHorz1->addSpacing(120);
QLabel* developerLabel = new QLabel(
"
"
@@ -83,7 +80,7 @@ void QtAbout::setupAbout()
"Andreas Stallinger
"
);
developerLabel->setObjectName("small");
- row->addWidget(developerLabel);
+ layoutHorz1->addWidget(developerLabel);
}
windowLayout->addStretch();