feat: Remove ? button in about page.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -21,7 +21,6 @@ public:
|
||||
QString getEmbVersion();
|
||||
|
||||
private slots:
|
||||
void openHelpFile();
|
||||
void setReconVersion(const QString& version);
|
||||
void setDmsVersion(const QString& aVersion);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user