chore: update files of project

This commit is contained in:
x-tools-author 2024-03-26 00:12:59 +08:00
parent 407fda37d9
commit 549747ad46
2 changed files with 17 additions and 14 deletions

View File

@ -97,16 +97,9 @@ MainWindow::MainWindow(QWidget* parent)
#endif #endif
QString title = QString("xTools"); QString title = QString("xTools");
#ifndef X_TOOLS_IMPORT_MODULE_PRIVATE
title.append(tr("(Community)"));
#endif
title.append(QString(" ")); title.append(QString(" "));
title.append(QString("v")); title.append(QString("v"));
title.append(qApp->applicationVersion()); title.append(qApp->applicationVersion());
#ifndef X_TOOLS_IMPORT_MODULE_PRIVATE
title.append(" ");
title.append("Beta1");
#endif
setWindowTitle(title); setWindowTitle(title);
setWindowIcon(QIcon(":/Resources/Images/Logo.png")); setWindowIcon(QIcon(":/Resources/Images/Logo.png"));
@ -271,11 +264,10 @@ void MainWindow::initHelpMenu()
#endif #endif
#endif #endif
m_helpMenu->addSeparator(); m_helpMenu->addSeparator();
m_helpMenu->addAction(QIcon(":/Resources/Icons/GitHub.svg"), m_helpMenu->addAction(tr("Release History"),
tr("Release History"),
this, this,
&MainWindow::showHistory); &MainWindow::showHistory);
m_helpMenu->addAction(QIcon(":/Resources/Icons/GitHub.svg"), m_helpMenu->addAction(QIcon(":/Resources/Icons/IconQQ.svg"),
tr("Join in QQ Group"), tr("Join in QQ Group"),
this, this,
&MainWindow::showQrCode); &MainWindow::showQrCode);
@ -302,17 +294,28 @@ void MainWindow::initLinksMenu()
<< Link{tr("Qt Official Release"), << Link{tr("Qt Official Release"),
QString("https://wiki.qt.io/Qt_5.15_Release"), QString("https://wiki.qt.io/Qt_5.15_Release"),
QString(":/resources/images/Qt.png")} QString(":/resources/images/Qt.png")}
<< Link{QString(""),
QString(""),
QString("")}
<< Link{tr("Download xTools from Github"), << Link{tr("Download xTools from Github"),
QString("%1/releases").arg(X_TOOLS_GITHUB_REPOSITORY_URL), QString("%1/releases").arg(X_TOOLS_GITHUB_REPOSITORY_URL),
QString(":/resources/images/GitHub.png")} QString(":/Resources/Icons/GitHub.svg")}
<< Link{tr("Download xTools from Gitee"), << Link{tr("Download xTools from Gitee"),
QString("%1/releases").arg(X_TOOLS_GITEE_REPOSITORY_URL), QString("%1/releases").arg(X_TOOLS_GITEE_REPOSITORY_URL),
QString(":/Resources/Icons/IconQQ.svg")} QString(":/Resources/Icons/Gitee.svg")}
<< Link{QString(""),
QString(""),
QString("")}
<< Link{tr("Office Web Site"), << Link{tr("Office Web Site"),
QString("https://qsaker.gitee.io/qsak/"), QString("https://qsaker.gitee.io/qsak/"),
QString(":/Resources/Icons/IconQQ.svg")}; QString(":/Resources/Images/I18n.png")};
for (auto& var : linkList) { for (auto& var : linkList) {
if (var.url.isEmpty()) {
linksMenu->addSeparator();
continue;
}
QAction* action = new QAction(QIcon(var.iconPath), var.name, this); QAction* action = new QAction(QIcon(var.iconPath), var.name, this);
action->setObjectName(var.url); action->setObjectName(var.url);
linksMenu->addAction(action); linksMenu->addAction(action);

View File

@ -36,7 +36,7 @@
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin"> <property name="leftMargin">
<number>0</number> <number>4</number>
</property> </property>
<property name="topMargin"> <property name="topMargin">
<number>0</number> <number>0</number>