From fc80dcb3b4a1401ce86ed3ddb31c5e8c7abe9862 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 16 May 2018 07:39:08 +0200 Subject: [PATCH] removed testdata class --- source/CMakeLists.txt | 1 - source/mainwindow.cpp | 1 - source/testdata.cpp | 14 -------------- source/testdata.h | 21 --------------------- 4 files changed, 37 deletions(-) delete mode 100644 source/testdata.cpp delete mode 100644 source/testdata.h diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index db35231..da45af9 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -12,7 +12,6 @@ qt5_wrap_ui(UI_HEADERS add_executable(${PROJECT_NAME} LogoTest.cpp - testdata.cpp DataModel.cpp MetaDataModel.cpp mainwindow.cpp diff --git a/source/mainwindow.cpp b/source/mainwindow.cpp index ea05622..d5ccfb8 100644 --- a/source/mainwindow.cpp +++ b/source/mainwindow.cpp @@ -1,7 +1,6 @@ #include "mainwindow.h" #include "ui_mainwindow.h" -#include "testdata.h" #include "DataModel.h" #include "MetaDataModel.h" diff --git a/source/testdata.cpp b/source/testdata.cpp deleted file mode 100644 index 7a9d8f7..0000000 --- a/source/testdata.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include "testdata.h" - -void TestData::SubTest1::write(QJsonObject &json) -{ - json["type"] = "SubTest1"; -} - -void TestData::write(QJsonObject &json) -{ - QJsonObject subTest1Data; - m_subTest1Data.write(subTest1Data); - json["SubTest1"] = subTest1Data; -} - diff --git a/source/testdata.h b/source/testdata.h deleted file mode 100644 index 6092bc6..0000000 --- a/source/testdata.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include -#include -#include - -class TestData -{ -private: - class SubTest1 - { - public: - void write(QJsonObject &json); - }; - -private: - SubTest1 m_subTest1Data; - -public: - void write(QJsonObject &json); -};