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

View File

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