-
Notifications
You must be signed in to change notification settings - Fork 14
/
about_page.cpp
31 lines (26 loc) · 1.07 KB
/
about_page.cpp
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
28
29
30
31
#include "about_page.h"
#include <QLabel>
AboutPage::AboutPage(QWidget *parent)
: QWidget(parent)
{
layout = new QVBoxLayout(this);
QLabel *icon = new QLabel();
icon->setPixmap(QPixmap(":/resources/logo.svg").scaled(60, 60));
QLabel *title = new QLabel("Rekols词典");
title->setStyleSheet("font-size: 20px");
QLabel *version = new QLabel("版本: v0.1");
QLabel *tips = new QLabel("感谢有道词典提供的API");
QLabel *tips1 = new QLabel("项目地址:https://github.com/rekols/dictionary-reborn");
QLabel *tips2 = new QLabel("本项目以GPLv3协议发布,禁止违反GPLv3协议非法闭源");
layout->addStretch();
layout->addWidget(icon, 0, Qt::AlignCenter);
layout->addSpacing(20);
layout->addWidget(title, 0, Qt::AlignCenter);
layout->addWidget(version, 0, Qt::AlignCenter);
layout->addSpacing(20);
layout->addWidget(tips, 0, Qt::AlignCenter);
layout->addSpacing(20);
layout->addWidget(tips2, 0, Qt::AlignCenter);
layout->addWidget(tips1, 0, Qt::AlignCenter);
layout->addStretch();
}