Extend handling of TimeRangeType.

This commit is contained in:
Gerhard Hoffmann 2024-01-18 14:53:57 +01:00
parent 7f8ed9165d
commit 7ce93ddd7a

View File

@ -177,6 +177,11 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json)
} }
break; break;
case MemberType::TimeBaseType: case MemberType::TimeBaseType:
if (QString(inner_obj_name) == QString("tbase_id")) {
if (k->value.IsInt()) {
TimeBase.tbase_id = k->value.GetInt();
}
} else
if (QString(inner_obj_name) == QString("tbase_type")) { if (QString(inner_obj_name) == QString("tbase_type")) {
if (k->value.IsInt()) { if (k->value.IsInt()) {
int timeBase = k->value.GetInt(); int timeBase = k->value.GetInt();