-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAbout.cpp
More file actions
executable file
·27 lines (25 loc) · 1.14 KB
/
About.cpp
File metadata and controls
executable file
·27 lines (25 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "About.h"
#include <QResource>
About::About(QWidget *parent) : QWidget(parent) {
QVBoxLayout *layout = new QVBoxLayout(this);
QLabel *aboutLabel = new QLabel(this);
aboutLabel->setText(
"<h2>About Overclock</h2>"
"<p><strong>Version:</strong> 1.0</p>"
"<p><strong>Author:</strong> Bui Xuan Tu</p>"
"<p><strong>Occupation:</strong> Software Engineer</p>"
"<p><strong>Year of Creation:</strong> 2024</p>"
"<p><strong>Description:</strong> Monitors the computer and supports overclocking to optimize performance.</p>"
"<p><strong>License:</strong> LGPL</p>"
"<p><strong>Contact:</strong> tuxuanbui1111@gmail.com</p>"
"<p>You are free to modify this software, but please respect my copyright.</p>"
"<p>I encourage everyone to contribute to its development while honoring the author's rights.</p>"
);
aboutLabel->setWordWrap(true);
QLabel *imageLabel = new QLabel(this);
QPixmap pixmap(":/resources/microchip.svg");
imageLabel->setPixmap(pixmap);
layout->addWidget(aboutLabel);
layout->addWidget(imageLabel);
setLayout(layout);
}