removed metadata

This commit is contained in:
Michael Mandl 2018-05-15 14:36:53 +02:00
parent 8550316388
commit 45923ef8a3
2 changed files with 0 additions and 27 deletions

View file

@ -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;

View file

@ -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: