18#ifndef MOTIV_ABOUT_HPP
19#define MOTIV_ABOUT_HPP
39 explicit About(QWidget *parent =
nullptr) : QWidget(parent) {
40 this->setAttribute(Qt::WA_DeleteOnClose);
42 auto topLayout =
new QHBoxLayout;
43 topLayout->setAlignment(Qt::AlignTop | Qt::AlignLeading);
44 topLayout->setSizeConstraint(QLayout::SetFixedSize);
45 this->setLayout(topLayout);
47 QPixmap appIcon(
":res/motiv.png");
48 appIcon = appIcon.scaled(200, 200);
49 auto appIconImage =
new QLabel;
50 appIconImage->setPixmap(appIcon);
51 topLayout->addWidget(appIconImage);
53 topLayout->addSpacing(20);
56 QTextStream text(&
string);
57 text <<
"<b>Marvelous OTF2 Trace Interactive Visualizer</b>" << LN
58 <<
"<i>Version " MOTIV_VERSION_STRING
"</i>" << LN << LN
59 << tr(
"Motiv is a free and open source application for viewing and analyzing OTF2 traces.") << LN << LN
60 <<
"Copyright 2023 Motiv contributors" << LN
62 <<
"<li><a href=\"" MOTIV_SOURCE_URL
"\">View source code</a></li>"
63 <<
"<li><a href=\"" MOTIV_ISSUES_URL
"\">Report issue</a></li>"
66 auto label =
new QLabel(
string,
this);
67 label->setWordWrap(
true);
68 label->setFixedWidth(400);
69 label->setTextFormat(Qt::RichText);
70 label->setTextInteractionFlags(Qt::TextBrowserInteraction);
71 label->setOpenExternalLinks(
true);
72 topLayout->addWidget(label);
A widget showcasing information about this software.
About(QWidget *parent=nullptr)