Rename AboutWidget to AboutForm.
This commit is contained in:
@@ -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();;
|
||||
}
|
||||
@@ -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();
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user