#include "qt/window/QtAbout.h" #include #include #include #include #include "qt/utility/QtDeviceScaledPixmap.h" #include "qt/utility/utilityQt.h" #include "utility/ResourcePaths.h" #include "utility/utility.h" #include "utility/Version.h" QtAbout::QtAbout(QWidget *parent) : QtWindow(false, parent) { } QSize QtAbout::sizeHint() const { return QSize(450, 480); } void QtAbout::setupAbout() { setStyleSheet(utility::getStyleSheet(ResourcePaths::getGuiPath().concatenate(L"about/about.css")).c_str()); QVBoxLayout* windowLayout = new QVBoxLayout(); windowLayout->setContentsMargins(10, 10, 10, 0); windowLayout->setSpacing(1); m_content->setLayout(windowLayout); { 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, 0, Qt::Alignment(Qt::AlignmentFlag::AlignHCenter)); } windowLayout->addSpacing(10); { QLabel* versionLabel = new QLabel( ( "Version " + Version::getApplicationVersion().toDisplayString() + " - " + std::string(utility::getApplicationArchitectureType() == APPLICATION_ARCHITECTURE_X86_32 ? "32" : "64") + " bit" ).c_str(), this ); windowLayout->addWidget(versionLabel, 0, Qt::Alignment(Qt::AlignmentFlag::AlignHCenter)); } windowLayout->addStretch(); { QHBoxLayout* layoutHorz1 = new QHBoxLayout(); windowLayout->addLayout(layoutHorz1); QLabel* companyLabel = new QLabel( "Coati Software KG
" "Jakob-Haringer-Straße 1/127
" "5020 Salzburg
" "Austria
" "support@sourcetrail.com
" "sourcetrail.com"); companyLabel->setOpenExternalLinks(true); layoutHorz1->addWidget(companyLabel); layoutHorz1->addSpacing(120); QLabel* developerLabel = new QLabel( "

" "Team:
" "Manuel Dobusch
" "Eberhard Gräther
" "Malte Langkabel
" "Viktoria Pfausler
" "Andreas Stallinger
" ); developerLabel->setObjectName("small"); layoutHorz1->addWidget(developerLabel); } windowLayout->addStretch(); QLabel* acknowledgementsLabel = new QLabel( "Acknowledgements:
" "Sourcetrail (aka Coati) 0.1 was created in the context of education at " "Salzburg University of Applied Sciences.
" "Coati Software KG is member of Startup Salzburg.
" "The development of Sourcetrail was funded by aws." ); acknowledgementsLabel->setObjectName("small"); acknowledgementsLabel->setWordWrap(true); acknowledgementsLabel->setOpenExternalLinks(true); windowLayout->addWidget(acknowledgementsLabel); windowLayout->addSpacing(10); }