From 807b47b8182d690f609577f69e1b71ef3feba663 Mon Sep 17 00:00:00 2001 From: JackLee_CN <809262979@qq.com> Date: Fri, 1 Nov 2024 09:54:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=B3=E4=BA=8E=E6=96=87?= =?UTF-8?q?=E6=9C=AC=20=E4=BF=AE=E5=A4=8D=E4=BF=9D=E5=AD=98=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- res/txt/about.txt | 31 ++++++++++++++++--------------- src/xsteam_about_ui.cpp | 12 ++++++------ src/xsteam_src_edit_ui.cpp | 2 ++ src/xsteam_ui.cpp | 4 ++-- 4 files changed, 26 insertions(+), 23 deletions(-) diff --git a/res/txt/about.txt b/res/txt/about.txt index 781d551..821d01e 100644 --- a/res/txt/about.txt +++ b/res/txt/about.txt @@ -1,16 +1,17 @@ -# 作者申明 -本软件仅供学习和研究,软件内置数据仅限于测试
-开发者不对本软件所造成的计算机软件侵权法律问题承担任何法律责任
-禁止本软件源码和软件用于任何商业用途
-禁止任何人恶意举报本软件
-禁止任何人恶意盗窃本软件测试数据
+#### 作者申明 +**本软件仅供学习和研究,软件内置数据仅限于测试**
+**开发者不对本软件所造成的计算机软件侵权法律问题承担任何法律责任**
+**禁止本软件源码和软件用于任何商业用途**
+**禁止任何人恶意举报本软件**
+**禁止任何人恶意盗窃本软件测试数据**
-# 鸣谢列表 -皓月代码托管平台
- -# About XSteam -software name:XSteam
-builder:JackLee_CN
-github:vek-zvo
-src github(don't open)
- + +#### 鸣谢列表 +**皓月代码托管平台**
+ + +#### About XSteam +**software name:XSteam**
+**builder:JackLee_CN**
+**github:vek-zvo**
+**src github(don't open)**
diff --git a/src/xsteam_about_ui.cpp b/src/xsteam_about_ui.cpp index 001d1e6..91e4ede 100644 --- a/src/xsteam_about_ui.cpp +++ b/src/xsteam_about_ui.cpp @@ -35,12 +35,12 @@ void xsteam_about_ui::load_about() QByteArray line = file.readLine(); strs.append(QString::fromStdString(line.data())); } - strs.append("# "+QString::fromStdString("编译环境")+"
"); - strs.append("qt_version:"+QString::fromStdString(QT_VERSION_STR)+"
"); - strs.append("gcc_version:"+QString::fromStdString(GCC_GXX_VERSION_STR)+"
"); - strs.append("g++_version:"+QString::fromStdString(GCC_GXX_VERSION_STR)+"
"); - strs.append("libcurl_version:"+QString::fromStdString(LIBCURL_VERSION_STR)+"
"); - strs.append("libgit2_version:"+QString::fromStdString(LIBGIT2_VERSION_STR)+"
"); + strs.append("#### "+QString::fromStdString("编译环境")+"
"); + strs.append("**qt_version:"+QString::fromStdString(QT_VERSION_STR)+"**
"); + strs.append("**gcc_version:"+QString::fromStdString(GCC_GXX_VERSION_STR)+"**
"); + strs.append("**g++_version:"+QString::fromStdString(GCC_GXX_VERSION_STR)+"**
"); + strs.append("**libcurl_version:"+QString::fromStdString(LIBCURL_VERSION_STR)+"**
"); + strs.append("**libgit2_version:"+QString::fromStdString(LIBGIT2_VERSION_STR)+"**
"); info->setMarkdown(strs); } } \ No newline at end of file diff --git a/src/xsteam_src_edit_ui.cpp b/src/xsteam_src_edit_ui.cpp index 437629c..4faf264 100644 --- a/src/xsteam_src_edit_ui.cpp +++ b/src/xsteam_src_edit_ui.cpp @@ -218,7 +218,9 @@ void xsteam_src_edit_ui::slots_save_done() } load_src_data_view(_data.s_data); xsteam_save_data_write(); + xsteam_msg_tip(nullptr, "保存成功"); emit signals_update(); + this->close(); } void xsteam_src_edit_ui::slots_update_src_data() { diff --git a/src/xsteam_ui.cpp b/src/xsteam_ui.cpp index 71e9dd3..29fbd26 100644 --- a/src/xsteam_ui.cpp +++ b/src/xsteam_ui.cpp @@ -501,7 +501,7 @@ void xsteam_ui::slots_open_server_edit() void xsteam_ui::slots_open_update() { xs_update_ui = xsteam_update_ui::Instance(); - xs_update_ui->setMaximumSize(width(), height()); + xs_update_ui->setMaximumSize(width()/2, height()); xs_update_ui->setGeometry(geometry()); xs_update_ui->title()->set_font_style(); xs_update_ui->exec(); @@ -517,7 +517,7 @@ void xsteam_ui::slots_open_setting() void xsteam_ui::slots_open_about() { xs_about_ui = xsteam_about_ui::Instance(); - xs_about_ui->setMaximumSize(width(), height()); + xs_about_ui->setMaximumSize(width()/2, height()); xs_about_ui->setGeometry(geometry()); xs_about_ui->title()->set_font_style(); xs_about_ui->exec();