chore: update files of project

This commit is contained in:
x-tools-author 2024-03-29 22:39:24 +08:00
parent 8b1c5ddfb5
commit a50b408c58
2 changed files with 7 additions and 4 deletions

View File

@ -215,11 +215,11 @@ void MainWindow::initLanguageMenu() {}
void MainWindow::initHelpMenu() void MainWindow::initHelpMenu()
{ {
m_helpMenu->addSeparator(); m_helpMenu->addSeparator();
m_helpMenu->addAction(QIcon(":/Resources/Icons/GitHub.svg"), m_helpMenu->addAction(/*QIcon(":/Resources/Icons/GitHub.svg"),*/
tr("Get Sources from Github"), tr("Get Sources from Github"),
this, this,
[]() { QDesktopServices::openUrl(QUrl(X_TOOLS_GITHUB_REPOSITORY_URL)); }); []() { QDesktopServices::openUrl(QUrl(X_TOOLS_GITHUB_REPOSITORY_URL)); });
m_helpMenu->addAction(QIcon(":/Resources/Icons/Gitee.svg"), m_helpMenu->addAction(/*QIcon(":/Resources/Icons/Gitee.svg"),*/
tr("Get Sources from Gitee"), tr("Get Sources from Gitee"),
this, this,
[]() { QDesktopServices::openUrl(QUrl(X_TOOLS_GITEE_REPOSITORY_URL)); }); []() { QDesktopServices::openUrl(QUrl(X_TOOLS_GITEE_REPOSITORY_URL)); });
@ -242,7 +242,7 @@ void MainWindow::initHelpMenu()
m_helpMenu->addAction(tr("Release History"), m_helpMenu->addAction(tr("Release History"),
this, this,
&MainWindow::showHistory); &MainWindow::showHistory);
m_helpMenu->addAction(QIcon(":/Resources/Icons/IconQQ.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);
@ -291,7 +291,7 @@ void MainWindow::initLinksMenu()
continue; continue;
} }
QAction* action = new QAction(QIcon(var.iconPath), var.name, this); QAction* action = new QAction(var.name, this);
action->setObjectName(var.url); action->setObjectName(var.url);
linksMenu->addAction(action); linksMenu->addAction(action);

View File

@ -12,6 +12,9 @@
int main(const int argc, char *argv[]) int main(const int argc, char *argv[])
{ {
#if 0
QApplication::setAttribute(Qt::AA_Use96Dpi);
#endif
#ifdef X_TOOLS_BUILD_WITH_CMAKE #ifdef X_TOOLS_BUILD_WITH_CMAKE
Q_INIT_RESOURCE(xToolsCommon); Q_INIT_RESOURCE(xToolsCommon);
#endif #endif