removed metadata
This commit is contained in:
parent
8550316388
commit
45923ef8a3
2 changed files with 0 additions and 27 deletions
|
@ -1,14 +1,5 @@
|
|||
#include "testdata.h"
|
||||
|
||||
void TestData::Meta::write(QJsonObject &json)
|
||||
{
|
||||
json["participant name"] = m_participant;
|
||||
json["instructor name"] = m_instructor;
|
||||
json["date of birth"] = m_dateOfBirth.toString(Qt::TextDate);
|
||||
json["date of test"] = m_dateOfTest.toString(Qt::TextDate);
|
||||
json["remarks"] = m_remarks;
|
||||
}
|
||||
|
||||
void TestData::SubTest1::write(QJsonObject &json)
|
||||
{
|
||||
json["type"] = "SubTest1";
|
||||
|
@ -16,10 +7,6 @@ void TestData::SubTest1::write(QJsonObject &json)
|
|||
|
||||
void TestData::write(QJsonObject &json)
|
||||
{
|
||||
QJsonObject metaData;
|
||||
m_metaData.write(metaData);
|
||||
json["Meta"] = metaData;
|
||||
|
||||
QJsonObject subTest1Data;
|
||||
m_subTest1Data.write(subTest1Data);
|
||||
json["SubTest1"] = subTest1Data;
|
||||
|
|
|
@ -7,19 +7,6 @@
|
|||
class TestData
|
||||
{
|
||||
private:
|
||||
class Meta
|
||||
{
|
||||
private:
|
||||
QString m_participant;
|
||||
QString m_instructor;
|
||||
QDate m_dateOfBirth;
|
||||
QDate m_dateOfTest;
|
||||
QString m_remarks;
|
||||
|
||||
public:
|
||||
void write(QJsonObject &json);
|
||||
};
|
||||
|
||||
class SubTest1
|
||||
{
|
||||
public:
|
||||
|
@ -27,7 +14,6 @@ private:
|
|||
};
|
||||
|
||||
private:
|
||||
Meta m_metaData;
|
||||
SubTest1 m_subTest1Data;
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue