From dcc7630440124127ab2ea60ee50684ce35f2ca8e Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sat, 27 Apr 2024 12:25:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aboutwindow.cpp | 14 +++++++++++++ aboutwindow.ui | 9 ++++++++- debian/control | 5 +++++ translation/gxde-kernel-manager_zh_CN.ts | 25 +++++++++++++++++++----- 4 files changed, 47 insertions(+), 6 deletions(-) diff --git a/aboutwindow.cpp b/aboutwindow.cpp index d5ea37a..7bbb698 100644 --- a/aboutwindow.cpp +++ b/aboutwindow.cpp @@ -1,11 +1,25 @@ #include "aboutwindow.h" #include "ui_aboutwindow.h" +#include + AboutWindow::AboutWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::AboutWindow) { ui->setupUi(this); + QString info = ""; + info += "
";
+    info += tr("A kernel manager allows users to install or remove kernels easily.") + "\n\n";
+    info += "" + tr("Warning: You may damage your system unless you know what you will do!") + "\n";
+    info += "
"; + info += "
"; + info += "

" + tr("Website") + "

"; + info += "

Gitee: https://gitee.com/GXDE-OS/gxde-kernel-manager

"; + info += "

Github: https://github.com/GXDE-OS/gxde-kernel-manager

"; + info += "
\n"; + info += "

©2023~" + QDateTime::currentDateTime().toString("yyyy") + " gfdgd xi

\n"; + ui->textBrowser->setHtml(info); } AboutWindow::~AboutWindow() diff --git a/aboutwindow.ui b/aboutwindow.ui index 05508ad..ddbe961 100644 --- a/aboutwindow.ui +++ b/aboutwindow.ui @@ -32,7 +32,14 @@ - + + + true + + + true + + diff --git a/debian/control b/debian/control index fb867bf..0450f10 100644 --- a/debian/control +++ b/debian/control @@ -5,6 +5,11 @@ Maintainer: gfdgd_xi <3025613752@qq.com> Rules-Requires-Root: no Build-Depends: debhelper-compat (= 13), + qtbase5-dev, + qtbase5-dev-tools + qtbase5-private-dev, + libqtermwidget5-1-dev, + qttools5-dev-tools Standards-Version: 4.6.2 Homepage: https://gitee.com/GXDE-OS/gxde-kernel-manager #Vcs-Browser: https://salsa.debian.org/debian/gxde-kernel-manager diff --git a/translation/gxde-kernel-manager_zh_CN.ts b/translation/gxde-kernel-manager_zh_CN.ts index ca508f9..a510a7b 100644 --- a/translation/gxde-kernel-manager_zh_CN.ts +++ b/translation/gxde-kernel-manager_zh_CN.ts @@ -14,10 +14,25 @@ - + OK 确定 + + + A kernel manager allows users to install or remove kernels easily. + 内核管理器是一个帮助用户更方便获取、安装、移除内核的工具。 + + + + Warning: You may damage your system unless you know what you will do! + 警告:请不要随意操作内核除非你知道你在做什么! + + + + Website + 网址 + KernelInstaller @@ -161,24 +176,24 @@ QObject - + Waring 警告 - + It is danger because it may make your system unboot. Press 'OK' to countinue 免责声明: 操作内核有可能导致系统无法正常启动,按“OK”键继续 - + Error 错误 - + It unsupport Windows 该程序不支持 Windows