change_code/src/pages/about/aboutpage.cpp

41 lines
1.3 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "aboutpage.h"
#include <QVBoxLayout>
#include <QLabel>
AboutPage::AboutPage(QWidget *parent)
: QWidget(parent)
{
initUI();
}
AboutPage::~AboutPage()
{
}
void AboutPage::initUI()
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setContentsMargins(30, 30, 30, 30);
layout->setAlignment(Qt::AlignCenter);
QLabel *logoLabel = new QLabel;
logoLabel->setStyleSheet("font-size: 48px; text-align: center;");
logoLabel->setText("UFT30");
layout->addWidget(logoLabel, 0, Qt::AlignCenter);
QLabel *title = new QLabel("<h1>UFT30 Change Code</h1>");
title->setAlignment(Qt::AlignCenter);
layout->addWidget(title);
QLabel *version = new QLabel("<p style='font-size: 16px;'>版本: 1.0.0</p>");
version->setAlignment(Qt::AlignCenter);
layout->addWidget(version);
QLabel *description = new QLabel("<p style='font-size: 14px; color: #666;'>一款强大的编码转换工具支持批量转码和非LS格式转换。</p>");
description->setAlignment(Qt::AlignCenter);
layout->addWidget(description);
QLabel *copyright = new QLabel("<p style='font-size: 12px; color: #999;'>Copyright © 2024 UFT30 Team. All rights reserved.</p>");
copyright->setAlignment(Qt::AlignCenter);
layout->addWidget(copyright);
}