mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
refs #527, JSON reading of value objects
* renamed simkey to modelstring * allow parsing of stub objects (only foreign keys, not denormalized)
This commit is contained in:
@@ -129,6 +129,13 @@ namespace BlackMisc
|
||||
}
|
||||
|
||||
QString description(json.value(prefix + "description").toString());
|
||||
if (description.isEmpty()) {
|
||||
// stub, only key, maybe also timestamps
|
||||
CDistributor distributorStub;
|
||||
distributorStub.setKeyAndTimestampFromDatabaseJson(json, prefix);
|
||||
return distributorStub;
|
||||
}
|
||||
|
||||
QString alias1(json.value(prefix + "alias1").toString());
|
||||
QString alias2(json.value(prefix + "alias2").toString());
|
||||
Q_ASSERT_X(!description.isEmpty(), Q_FUNC_INFO, "Missing description");
|
||||
|
||||
Reference in New Issue
Block a user