You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
440 B
C++
17 lines
440 B
C++
|
5 years ago
|
#include "lpCoreConfig.h"
|
||
|
|
#include "QZkJsonParser.h"
|
||
|
|
void lpCoreConfig::readConfig()
|
||
|
|
{
|
||
|
|
QString strCorePath = "./config/corectrl.json";
|
||
|
|
QJsonObject objJson = QZkJsonParser::ReadJsonObject(strCorePath);
|
||
|
|
|
||
|
|
QJsonObject objTmp = objJson["core_setting"].toObject();
|
||
|
|
m_CoreSetting.threadsCount = objTmp.value("image_threads").toInt(0);
|
||
|
|
m_CoreSetting.imageShowType = objTmp.value("show_type").toInt(0);
|
||
|
|
}
|
||
|
|
|
||
|
|
void lpCoreConfig::writeConfig()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|