修复编译警告
This commit is contained in:
parent
273da28390
commit
4cb44fc2fa
|
|
@ -321,7 +321,7 @@ bool MetadataProcessor::processUft3Interfaces(const QString& basePath)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MetadataProcessor::processUf2DataType(const QString& basePath)
|
bool MetadataProcessor::processUf2DataType()
|
||||||
{
|
{
|
||||||
LogManager::instance()->log("========== 开始处理 UF2.0 数据类型 ==========");
|
LogManager::instance()->log("========== 开始处理 UF2.0 数据类型 ==========");
|
||||||
|
|
||||||
|
|
@ -351,7 +351,7 @@ bool MetadataProcessor::processUf2DataType(const QString& basePath)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MetadataProcessor::processUf2StdFields(const QString& basePath)
|
bool MetadataProcessor::processUf2StdFields()
|
||||||
{
|
{
|
||||||
LogManager::instance()->log("========== 开始处理 UF2.0 标准字段 ==========");
|
LogManager::instance()->log("========== 开始处理 UF2.0 标准字段 ==========");
|
||||||
|
|
||||||
|
|
@ -393,7 +393,7 @@ bool MetadataProcessor::processUf2StdFields(const QString& basePath)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MetadataProcessor::processUf2ErrNumber(const QString& basePath)
|
bool MetadataProcessor::processUf2ErrNumber()
|
||||||
{
|
{
|
||||||
LogManager::instance()->log("========== 开始处理 UF2.0 标准错误号 ==========");
|
LogManager::instance()->log("========== 开始处理 UF2.0 标准错误号 ==========");
|
||||||
|
|
||||||
|
|
@ -423,7 +423,7 @@ bool MetadataProcessor::processUf2ErrNumber(const QString& basePath)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MetadataProcessor::processUft3DataType(const QString& basePath)
|
bool MetadataProcessor::processUft3DataType()
|
||||||
{
|
{
|
||||||
LogManager::instance()->log("========== 开始处理 UFT3.0 数据类型 ==========");
|
LogManager::instance()->log("========== 开始处理 UFT3.0 数据类型 ==========");
|
||||||
|
|
||||||
|
|
@ -453,7 +453,7 @@ bool MetadataProcessor::processUft3DataType(const QString& basePath)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MetadataProcessor::processUft3StdFields(const QString& basePath)
|
bool MetadataProcessor::processUft3StdFields()
|
||||||
{
|
{
|
||||||
LogManager::instance()->log("========== 开始处理 UFT3.0 标准字段 ==========");
|
LogManager::instance()->log("========== 开始处理 UFT3.0 标准字段 ==========");
|
||||||
|
|
||||||
|
|
@ -495,7 +495,7 @@ bool MetadataProcessor::processUft3StdFields(const QString& basePath)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MetadataProcessor::processUft3Table(const QString& basePath)
|
bool MetadataProcessor::processUft3Table()
|
||||||
{
|
{
|
||||||
LogManager::instance()->log("========== 开始处理 UFT3.0 表结构 ==========");
|
LogManager::instance()->log("========== 开始处理 UFT3.0 表结构 ==========");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,13 +18,13 @@ public:
|
||||||
bool processUf2Interfaces(const QString& basePath);
|
bool processUf2Interfaces(const QString& basePath);
|
||||||
bool processUft3Interfaces(const QString& basePath);
|
bool processUft3Interfaces(const QString& basePath);
|
||||||
|
|
||||||
bool processUf2StdFields(const QString& basePath);
|
bool processUf2StdFields();
|
||||||
bool processUf2DataType(const QString& basePath);
|
bool processUf2DataType();
|
||||||
bool processUf2ErrNumber(const QString& basePath);
|
bool processUf2ErrNumber();
|
||||||
|
|
||||||
bool processUft3StdFields(const QString& basePath);
|
bool processUft3StdFields();
|
||||||
bool processUft3DataType(const QString& basePath);
|
bool processUft3DataType();
|
||||||
bool processUft3Table(const QString& basePath);
|
bool processUft3Table();
|
||||||
|
|
||||||
QString getBasePath() const;
|
QString getBasePath() const;
|
||||||
void setBasePath(const QString& path);
|
void setBasePath(const QString& path);
|
||||||
|
|
|
||||||
|
|
@ -244,7 +244,6 @@ void MetadataUpdatePage::onUpdateUFT3()
|
||||||
|
|
||||||
void MetadataUpdatePage::updateUf2Interfaces(const QStringList& items)
|
void MetadataUpdatePage::updateUf2Interfaces(const QStringList& items)
|
||||||
{
|
{
|
||||||
QString basePath = QCoreApplication::applicationDirPath();
|
|
||||||
int itemCount = items.size();
|
int itemCount = items.size();
|
||||||
|
|
||||||
foreach (const QString& item, items) {
|
foreach (const QString& item, items) {
|
||||||
|
|
@ -254,12 +253,13 @@ void MetadataUpdatePage::updateUf2Interfaces(const QStringList& items)
|
||||||
_progressBar->setValue(progress);
|
_progressBar->setValue(progress);
|
||||||
|
|
||||||
if (item == "标准字段") {
|
if (item == "标准字段") {
|
||||||
processUf2StdFields(basePath);
|
processUf2StdFields();
|
||||||
} else if (item == "数据类型") {
|
} else if (item == "数据类型") {
|
||||||
processUf2DataType(basePath);
|
processUf2DataType();
|
||||||
} else if (item == "标准错误号") {
|
} else if (item == "标准错误号") {
|
||||||
processUf2ErrNumber(basePath);
|
processUf2ErrNumber();
|
||||||
} else if (item == "接口数据") {
|
} else if (item == "接口数据") {
|
||||||
|
QString basePath = QCoreApplication::applicationDirPath();
|
||||||
processUf2Interface(basePath);
|
processUf2Interface(basePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -274,7 +274,6 @@ void MetadataUpdatePage::updateUf2Interfaces(const QStringList& items)
|
||||||
|
|
||||||
void MetadataUpdatePage::updateUft3Interfaces(const QStringList& items)
|
void MetadataUpdatePage::updateUft3Interfaces(const QStringList& items)
|
||||||
{
|
{
|
||||||
QString basePath = QCoreApplication::applicationDirPath();
|
|
||||||
int itemCount = items.size();
|
int itemCount = items.size();
|
||||||
|
|
||||||
foreach (const QString& item, items) {
|
foreach (const QString& item, items) {
|
||||||
|
|
@ -284,12 +283,13 @@ void MetadataUpdatePage::updateUft3Interfaces(const QStringList& items)
|
||||||
_progressBar->setValue(progress);
|
_progressBar->setValue(progress);
|
||||||
|
|
||||||
if (item == "标准字段") {
|
if (item == "标准字段") {
|
||||||
processUft3StdFields(basePath);
|
processUft3StdFields();
|
||||||
} else if (item == "数据类型") {
|
} else if (item == "数据类型") {
|
||||||
processUft3DataType(basePath);
|
processUft3DataType();
|
||||||
} else if (item == "表结构") {
|
} else if (item == "表结构") {
|
||||||
processUft3Table(basePath);
|
processUft3Table();
|
||||||
} else if (item == "接口数据") {
|
} else if (item == "接口数据") {
|
||||||
|
QString basePath = QCoreApplication::applicationDirPath();
|
||||||
processUft3Interface(basePath);
|
processUft3Interface(basePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -302,19 +302,19 @@ void MetadataUpdatePage::updateUft3Interfaces(const QStringList& items)
|
||||||
onUpdateFinished(true, "UFT30更新完成");
|
onUpdateFinished(true, "UFT30更新完成");
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetadataUpdatePage::processUf2StdFields(const QString& basePath)
|
void MetadataUpdatePage::processUf2StdFields()
|
||||||
{
|
{
|
||||||
_processor->processUf2StdFields(basePath);
|
_processor->processUf2StdFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetadataUpdatePage::processUf2DataType(const QString& basePath)
|
void MetadataUpdatePage::processUf2DataType()
|
||||||
{
|
{
|
||||||
_processor->processUf2DataType(basePath);
|
_processor->processUf2DataType();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetadataUpdatePage::processUf2ErrNumber(const QString& basePath)
|
void MetadataUpdatePage::processUf2ErrNumber()
|
||||||
{
|
{
|
||||||
_processor->processUf2ErrNumber(basePath);
|
_processor->processUf2ErrNumber();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetadataUpdatePage::processUf2Interface(const QString& basePath)
|
void MetadataUpdatePage::processUf2Interface(const QString& basePath)
|
||||||
|
|
@ -322,19 +322,19 @@ void MetadataUpdatePage::processUf2Interface(const QString& basePath)
|
||||||
_processor->processUf2Interfaces(basePath);
|
_processor->processUf2Interfaces(basePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetadataUpdatePage::processUft3StdFields(const QString& basePath)
|
void MetadataUpdatePage::processUft3StdFields()
|
||||||
{
|
{
|
||||||
_processor->processUft3StdFields(basePath);
|
_processor->processUft3StdFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetadataUpdatePage::processUft3DataType(const QString& basePath)
|
void MetadataUpdatePage::processUft3DataType()
|
||||||
{
|
{
|
||||||
_processor->processUft3DataType(basePath);
|
_processor->processUft3DataType();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetadataUpdatePage::processUft3Table(const QString& basePath)
|
void MetadataUpdatePage::processUft3Table()
|
||||||
{
|
{
|
||||||
_processor->processUft3Table(basePath);
|
_processor->processUft3Table();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetadataUpdatePage::processUft3Interface(const QString& basePath)
|
void MetadataUpdatePage::processUft3Interface(const QString& basePath)
|
||||||
|
|
|
||||||
|
|
@ -40,14 +40,14 @@ private:
|
||||||
void updateUf2Interfaces(const QStringList& items);
|
void updateUf2Interfaces(const QStringList& items);
|
||||||
void updateUft3Interfaces(const QStringList& items);
|
void updateUft3Interfaces(const QStringList& items);
|
||||||
|
|
||||||
void processUf2StdFields(const QString& basePath);
|
void processUf2StdFields();
|
||||||
void processUf2DataType(const QString& basePath);
|
void processUf2DataType();
|
||||||
void processUf2ErrNumber(const QString& basePath);
|
void processUf2ErrNumber();
|
||||||
void processUf2Interface(const QString& basePath);
|
void processUf2Interface(const QString& basePath);
|
||||||
|
|
||||||
void processUft3StdFields(const QString& basePath);
|
void processUft3StdFields();
|
||||||
void processUft3DataType(const QString& basePath);
|
void processUft3DataType();
|
||||||
void processUft3Table(const QString& basePath);
|
void processUft3Table();
|
||||||
void processUft3Interface(const QString& basePath);
|
void processUft3Interface(const QString& basePath);
|
||||||
|
|
||||||
QGridLayout* _updateGridLayout{nullptr};
|
QGridLayout* _updateGridLayout{nullptr};
|
||||||
|
|
|
||||||
|
|
@ -384,7 +384,6 @@ void SettingsPage::onSelectOutputPath()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsPage::onThemeChanged(int index)
|
void SettingsPage::onThemeChanged()
|
||||||
{
|
{
|
||||||
Q_UNUSED(index);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ private slots:
|
||||||
void onSelectUF20Path();
|
void onSelectUF20Path();
|
||||||
void onSelectUF20AccountPath();
|
void onSelectUF20AccountPath();
|
||||||
void onSelectOutputPath();
|
void onSelectOutputPath();
|
||||||
void onThemeChanged(int index);
|
void onThemeChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void initUI();
|
void initUI();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue