From 822ab0a353f1d53862e403907aa1f4a603bd32f0 Mon Sep 17 00:00:00 2001 From: sunwen Date: Thu, 10 Jul 2025 11:08:36 +0800 Subject: [PATCH] feat: Remove ? button in about page. --- src/forms/settings/AboutForm.cpp | 20 -------------------- src/forms/settings/AboutForm.h | 1 - 2 files changed, 21 deletions(-) diff --git a/src/forms/settings/AboutForm.cpp b/src/forms/settings/AboutForm.cpp index b92561e..9b5d4ba 100644 --- a/src/forms/settings/AboutForm.cpp +++ b/src/forms/settings/AboutForm.cpp @@ -45,7 +45,6 @@ void AboutForm::initUiWidget() QVBoxLayout* pMainLayout; QHBoxLayout* pProductVerLayout; QLabel* pProductVer; - QPushButton* pBtnHelp; QLabel* pCompanyCopyRight; QLabel* pMainVer; QLabel* pFEBVer; @@ -78,11 +77,6 @@ void AboutForm::initUiWidget() pProductVer->setText(tr("HJ-USCT-01 V1.0")); pProductVerLayout->addWidget(pProductVer); - pBtnHelp = new QPushButton(this); - pBtnHelp->setText(tr("?")); - pBtnHelp->setFixedWidth(50); - pProductVerLayout->addWidget(pBtnHelp); - pCompanyCopyRight = new QLabel(this); pCompanyCopyRight->setObjectName("normal"); pCompanyCopyRight->setText(tr("Copyright © 2017-2022 Zhejiang Equilibrium Nine Medical Equipment Co., Ltd. All Rights Reserved")); @@ -150,11 +144,8 @@ void AboutForm::initUiWidget() QMetaObject::invokeMethod(ReconManager::getInstance(), "getReconVersion", Qt::QueuedConnection); connect(ReconManager::getInstance(), &ReconManager::getReconVersionResponsed,this,&AboutForm::setReconVersion,Qt::QueuedConnection); connect(DeviceManager::Default(), &DeviceManager::getDmsVersionResponsed,this,&AboutForm::setDmsVersion,Qt::QueuedConnection); - - connect(pBtnHelp, SIGNAL(clicked()), this, SLOT(openHelpFile())); connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() { pProductVer->setText(tr("HJ-USCT-01 V1.0")); - pBtnHelp->setText(tr("?")); pCompanyCopyRight->setText(tr("Copyright © 2017-2020 Zhejiang Equilibrium Nine Medical Equipment Co., Ltd. All Rights Reversed")); pMainVer->setText(QString(tr("GUI Software V%1")).arg(getGUIVersion())); mDmsVersion->setText(tr("Embedded Software %1").arg(getEmbVersion())); @@ -163,17 +154,6 @@ void AboutForm::initUiWidget() }); } -void AboutForm::openHelpFile() -{ - QString userManulFile = QCoreApplication::applicationDirPath() + "/userManual.pdf"; - - QFileInfo file(userManulFile); - if (file.exists()) - { - QDesktopServices::openUrl(QUrl::fromLocalFile(userManulFile)); - } -} - QString AboutForm::getGUIVersion() { if (GUI_VERSION_BETA) diff --git a/src/forms/settings/AboutForm.h b/src/forms/settings/AboutForm.h index fe8c4ae..62c43a1 100644 --- a/src/forms/settings/AboutForm.h +++ b/src/forms/settings/AboutForm.h @@ -21,7 +21,6 @@ public: QString getEmbVersion(); private slots: - void openHelpFile(); void setReconVersion(const QString& version); void setDmsVersion(const QString& aVersion);