Rename AboutWidget to AboutForm.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#include "AboutWidget.h"
|
#include "AboutForm.h"
|
||||||
|
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
@@ -12,18 +12,18 @@
|
|||||||
#include "AppVersion.h"
|
#include "AppVersion.h"
|
||||||
#include "device/DeviceManager.h"
|
#include "device/DeviceManager.h"
|
||||||
|
|
||||||
AboutWidget::AboutWidget(QWidget* aParent)
|
AboutForm::AboutForm(QWidget* aParent)
|
||||||
: QWidget(aParent)
|
: QWidget(aParent)
|
||||||
{
|
{
|
||||||
initUiWidget();
|
initUiWidget();
|
||||||
}
|
}
|
||||||
|
|
||||||
AboutWidget::~AboutWidget()
|
AboutForm::~AboutForm()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AboutWidget::initUiWidget()
|
void AboutForm::initUiWidget()
|
||||||
{
|
{
|
||||||
const int subContentMargin = 10;
|
const int subContentMargin = 10;
|
||||||
const int subContentSpacing = 20;
|
const int subContentSpacing = 20;
|
||||||
@@ -136,7 +136,7 @@ void AboutWidget::initUiWidget()
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void AboutWidget::openHelpFile()
|
void AboutForm::openHelpFile()
|
||||||
{
|
{
|
||||||
QString userManulFile = QCoreApplication::applicationDirPath() + "/userManual.pdf";
|
QString userManulFile = QCoreApplication::applicationDirPath() + "/userManual.pdf";
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ void AboutWidget::openHelpFile()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString AboutWidget::getGUIVersion()
|
QString AboutForm::getGUIVersion()
|
||||||
{
|
{
|
||||||
if (GUI_VERSION_BETA)
|
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);
|
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();
|
return DeviceManager::Default()->getSoftwareVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString AboutWidget::getDataStorePath()
|
QString AboutForm::getDataStorePath()
|
||||||
{
|
{
|
||||||
return DeviceManager::Default()->getScanOutputPath();;
|
return DeviceManager::Default()->getScanOutputPath();;
|
||||||
}
|
}
|
||||||
@@ -8,13 +8,13 @@
|
|||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
|
||||||
class AboutWidget : public QWidget
|
class AboutForm : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit AboutWidget(QWidget* aParent = nullptr);
|
explicit AboutForm(QWidget* aParent = nullptr);
|
||||||
~AboutWidget();
|
~AboutForm();
|
||||||
|
|
||||||
QString getGUIVersion();
|
QString getGUIVersion();
|
||||||
QString getEmbVersion();
|
QString getEmbVersion();
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
#include "SystemSettingForm.h"
|
#include "SystemSettingForm.h"
|
||||||
#include "AccountTableForm.h"
|
#include "AccountTableForm.h"
|
||||||
#include "event/EventCenter.h"
|
#include "event/EventCenter.h"
|
||||||
#include "AboutWidget.h"
|
#include "AboutForm.h"
|
||||||
|
|
||||||
SettingFormWidget::SettingFormWidget(QWidget* aParent, Qt::WindowFlags f)
|
SettingFormWidget::SettingFormWidget(QWidget* aParent, Qt::WindowFlags f)
|
||||||
: TabFormWidget(aParent)
|
: TabFormWidget(aParent)
|
||||||
@@ -52,7 +52,7 @@ SettingFormWidget::SettingFormWidget(QWidget* aParent, Qt::WindowFlags f)
|
|||||||
SystemSettingForm* systemSetting = new SystemSettingForm(ui->commandWidget);
|
SystemSettingForm* systemSetting = new SystemSettingForm(ui->commandWidget);
|
||||||
stackedWidget->addWidget(systemSetting);
|
stackedWidget->addWidget(systemSetting);
|
||||||
|
|
||||||
AboutWidget* about = new AboutWidget(ui->commandWidget);
|
AboutForm* about = new AboutForm(ui->commandWidget);
|
||||||
stackedWidget->addWidget(about);
|
stackedWidget->addWidget(about);
|
||||||
|
|
||||||
widget->setCurrentRow(0);
|
widget->setCurrentRow(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user