Rename AboutWidget to AboutForm.

This commit is contained in:
Krad
2022-07-14 14:45:37 +08:00
parent 49474dff02
commit 4fd34dca1e
3 changed files with 13 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
#include "AboutWidget.h"
#include "AboutForm.h"
#include <QVBoxLayout>
#include <QLabel>
@@ -12,18 +12,18 @@
#include "AppVersion.h"
#include "device/DeviceManager.h"
AboutWidget::AboutWidget(QWidget* aParent)
AboutForm::AboutForm(QWidget* aParent)
: QWidget(aParent)
{
initUiWidget();
}
AboutWidget::~AboutWidget()
AboutForm::~AboutForm()
{
}
void AboutWidget::initUiWidget()
void AboutForm::initUiWidget()
{
const int subContentMargin = 10;
const int subContentSpacing = 20;
@@ -136,7 +136,7 @@ void AboutWidget::initUiWidget()
});
}
void AboutWidget::openHelpFile()
void AboutForm::openHelpFile()
{
QString userManulFile = QCoreApplication::applicationDirPath() + "/userManual.pdf";
@@ -147,7 +147,7 @@ void AboutWidget::openHelpFile()
}
}
QString AboutWidget::getGUIVersion()
QString AboutForm::getGUIVersion()
{
if (GUI_VERSION_BETA)
{
@@ -156,12 +156,12 @@ QString AboutWidget::getGUIVersion()
return QString("%1.%2.%3").arg(GUI_VERSION_MAJOR).arg(GUI_VERSION_MINOR).arg(GUI_VERSION_BUILD);
}
QString AboutWidget::getEmbVersion()
QString AboutForm::getEmbVersion()
{
return DeviceManager::Default()->getSoftwareVersion();
}
QString AboutWidget::getDataStorePath()
QString AboutForm::getDataStorePath()
{
return DeviceManager::Default()->getScanOutputPath();;
}

View File

@@ -8,13 +8,13 @@
#include <QFileInfo>
#include <QCoreApplication>
class AboutWidget : public QWidget
class AboutForm : public QWidget
{
Q_OBJECT
public:
explicit AboutWidget(QWidget* aParent = nullptr);
~AboutWidget();
explicit AboutForm(QWidget* aParent = nullptr);
~AboutForm();
QString getGUIVersion();
QString getEmbVersion();

View File

@@ -15,7 +15,7 @@
#include "SystemSettingForm.h"
#include "AccountTableForm.h"
#include "event/EventCenter.h"
#include "AboutWidget.h"
#include "AboutForm.h"
SettingFormWidget::SettingFormWidget(QWidget* aParent, Qt::WindowFlags f)
: TabFormWidget(aParent)
@@ -52,7 +52,7 @@ SettingFormWidget::SettingFormWidget(QWidget* aParent, Qt::WindowFlags f)
SystemSettingForm* systemSetting = new SystemSettingForm(ui->commandWidget);
stackedWidget->addWidget(systemSetting);
AboutWidget* about = new AboutWidget(ui->commandWidget);
AboutForm* about = new AboutForm(ui->commandWidget);
stackedWidget->addWidget(about);
widget->setCurrentRow(0);