summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/mocPlugin
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/QtAutogen/mocPlugin')
-rw-r--r--Tests/QtAutogen/mocPlugin/CMakeLists.txt33
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleA.cpp6
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleA.hpp17
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleA.json1
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleA_Custom.json1
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleB.cpp6
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleB.hpp17
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleC.cpp6
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleC.hpp17
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleCommon.hpp7
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleD.cpp6
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleD.hpp17
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleE.cpp6
-rw-r--r--Tests/QtAutogen/mocPlugin/StyleE.hpp17
-rw-r--r--Tests/QtAutogen/mocPlugin/jsonIn/StyleB.json1
-rw-r--r--Tests/QtAutogen/mocPlugin/jsonIn/StyleB_Custom.json1
-rw-r--r--Tests/QtAutogen/mocPlugin/jsonIn/StyleC.json1
-rw-r--r--Tests/QtAutogen/mocPlugin/jsonIn/StyleD.json1
-rw-r--r--Tests/QtAutogen/mocPlugin/main.cpp6
19 files changed, 0 insertions, 167 deletions
diff --git a/Tests/QtAutogen/mocPlugin/CMakeLists.txt b/Tests/QtAutogen/mocPlugin/CMakeLists.txt
deleted file mode 100644
index 9b224fb..0000000
--- a/Tests/QtAutogen/mocPlugin/CMakeLists.txt
+++ /dev/null
@@ -1,33 +0,0 @@
-cmake_minimum_required(VERSION 3.9)
-project(mocPlugin CXX)
-
-set(CMAKE_AUTOMOC_DEPEND_FILTERS
- "A_CUSTOM_MACRO"
- "[\n][ \t]*A_CUSTOM_MACRO[ \t\r\n]*\\([^,]+,[ \t\r\n]*\"([^\"]+)\""
- )
-
-if (NOT QT_TEST_VERSION STREQUAL 5)
- message(SEND_ERROR "Invalid Qt version specified.")
-endif()
-find_package(Qt5Widgets REQUIRED)
-
-if(Qt5_POSITION_INDEPENDENT_CODE AND CMAKE_CXX_COMPILE_OPTIONS_PIC)
- add_definitions(${CMAKE_CXX_COMPILE_OPTIONS_PIC})
-endif()
-
-configure_file(jsonIn/StyleC.json jsonFiles/StyleC.json)
-configure_file(jsonIn/StyleD.json jsonFiles/sub/StyleD.json)
-configure_file(jsonIn/StyleC.json jsonFiles/StyleC_Custom.json)
-configure_file(jsonIn/StyleD.json jsonFiles/sub/StyleD_Custom.json)
-
-# Enable automoc
-set(CMAKE_AUTOMOC TRUE)
-
-include_directories("${CMAKE_CURRENT_BINARY_DIR}/jsonFiles")
-link_libraries(Qt5::Widgets)
-
-add_library(PlugA STATIC StyleA.cpp)
-add_library(PlugB STATIC StyleB.cpp)
-add_library(PlugC STATIC StyleC.cpp)
-add_library(PlugD STATIC StyleD.cpp)
-add_library(PlugE STATIC StyleE.cpp)
diff --git a/Tests/QtAutogen/mocPlugin/StyleA.cpp b/Tests/QtAutogen/mocPlugin/StyleA.cpp
deleted file mode 100644
index b5e8753..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleA.cpp
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "StyleA.hpp"
-
-QStyle* StyleA::create(const QString& key)
-{
- return 0;
-}
diff --git a/Tests/QtAutogen/mocPlugin/StyleA.hpp b/Tests/QtAutogen/mocPlugin/StyleA.hpp
deleted file mode 100644
index 1b6154d..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleA.hpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef STYLEA_HPP
-#define STYLEA_HPP
-
-#include "StyleCommon.hpp"
-#include <QStylePlugin>
-
-class StyleA : public QStylePlugin
-{
- Q_OBJECT
- // Json file in local directory
- Q_PLUGIN_METADATA(IID "org.styles.A" FILE "StyleA.json")
- A_CUSTOM_MACRO(SomeArg, "StyleA_Custom.json", AnotherArg)
-public:
- QStyle* create(const QString& key);
-};
-
-#endif
diff --git a/Tests/QtAutogen/mocPlugin/StyleA.json b/Tests/QtAutogen/mocPlugin/StyleA.json
deleted file mode 100644
index cc33953..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleA.json
+++ /dev/null
@@ -1 +0,0 @@
-{ "Keys": [ "Rocket", "Starbuster" ] }
diff --git a/Tests/QtAutogen/mocPlugin/StyleA_Custom.json b/Tests/QtAutogen/mocPlugin/StyleA_Custom.json
deleted file mode 100644
index cc33953..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleA_Custom.json
+++ /dev/null
@@ -1 +0,0 @@
-{ "Keys": [ "Rocket", "Starbuster" ] }
diff --git a/Tests/QtAutogen/mocPlugin/StyleB.cpp b/Tests/QtAutogen/mocPlugin/StyleB.cpp
deleted file mode 100644
index 17d4400..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleB.cpp
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "StyleB.hpp"
-
-QStyle* StyleB::create(const QString& key)
-{
- return 0;
-}
diff --git a/Tests/QtAutogen/mocPlugin/StyleB.hpp b/Tests/QtAutogen/mocPlugin/StyleB.hpp
deleted file mode 100644
index 163c9b2..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleB.hpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef STYLEB_HPP
-#define STYLEB_HPP
-
-#include "StyleCommon.hpp"
-#include <QStylePlugin>
-
-class StyleB : public QStylePlugin
-{
- Q_OBJECT
- // Json file in local subdirectory
- Q_PLUGIN_METADATA(IID "org.styles.B" FILE "jsonIn/StyleB.json")
- A_CUSTOM_MACRO(SomeArg, "jsonIn/StyleB_Custom.json", AnotherArg)
-public:
- QStyle* create(const QString& key);
-};
-
-#endif
diff --git a/Tests/QtAutogen/mocPlugin/StyleC.cpp b/Tests/QtAutogen/mocPlugin/StyleC.cpp
deleted file mode 100644
index 37e7564..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleC.cpp
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "StyleC.hpp"
-
-QStyle* StyleC::create(const QString& key)
-{
- return 0;
-}
diff --git a/Tests/QtAutogen/mocPlugin/StyleC.hpp b/Tests/QtAutogen/mocPlugin/StyleC.hpp
deleted file mode 100644
index 52a887a..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleC.hpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef STYLEC_HPP
-#define STYLEC_HPP
-
-#include "StyleCommon.hpp"
-#include <QStylePlugin>
-
-class StyleC : public QStylePlugin
-{
- Q_OBJECT
- // Json file in global root directory
- Q_PLUGIN_METADATA(IID "org.styles.C" FILE "StyleC.json")
- A_CUSTOM_MACRO(SomeArg, "StyleC_Custom.json", AnotherArg)
-public:
- QStyle* create(const QString& key);
-};
-
-#endif
diff --git a/Tests/QtAutogen/mocPlugin/StyleCommon.hpp b/Tests/QtAutogen/mocPlugin/StyleCommon.hpp
deleted file mode 100644
index f1a7ec6..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleCommon.hpp
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef STYLECOMMON_HPP
-#define STYLECOMMON_HPP
-
-// Empty test macro definition
-#define A_CUSTOM_MACRO(name, jsonFile, pluginRegistrations)
-
-#endif
diff --git a/Tests/QtAutogen/mocPlugin/StyleD.cpp b/Tests/QtAutogen/mocPlugin/StyleD.cpp
deleted file mode 100644
index 7e4b121..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleD.cpp
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "StyleD.hpp"
-
-QStyle* StyleD::create(const QString& key)
-{
- return 0;
-}
diff --git a/Tests/QtAutogen/mocPlugin/StyleD.hpp b/Tests/QtAutogen/mocPlugin/StyleD.hpp
deleted file mode 100644
index df8a439..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleD.hpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef STYLED_HPP
-#define STYLED_HPP
-
-#include "StyleCommon.hpp"
-#include <QStylePlugin>
-
-class StyleD : public QStylePlugin
-{
- Q_OBJECT
- // Json file in global sub director
- Q_PLUGIN_METADATA(IID "org.styles.D" FILE "sub/StyleD.json")
- A_CUSTOM_MACRO(SomeArg, "sub/StyleD_Custom.json", AnotherArg)
-public:
- QStyle* create(const QString& key);
-};
-
-#endif
diff --git a/Tests/QtAutogen/mocPlugin/StyleE.cpp b/Tests/QtAutogen/mocPlugin/StyleE.cpp
deleted file mode 100644
index 8fc9a7f..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleE.cpp
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "StyleE.hpp"
-
-QStyle* StyleE::create(const QString& key)
-{
- return 0;
-}
diff --git a/Tests/QtAutogen/mocPlugin/StyleE.hpp b/Tests/QtAutogen/mocPlugin/StyleE.hpp
deleted file mode 100644
index e7915a8..0000000
--- a/Tests/QtAutogen/mocPlugin/StyleE.hpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef STYLEE_HPP
-#define STYLEE_HPP
-
-#include "StyleCommon.hpp"
-#include <QStylePlugin>
-
-class StyleE : public QStylePlugin
-{
- Q_OBJECT
- // No Json file
- Q_PLUGIN_METADATA(IID "org.styles.E")
- A_CUSTOM_MACRO(SomeArg, InvalidFileArg, AnotherArg)
-public:
- QStyle* create(const QString& key);
-};
-
-#endif
diff --git a/Tests/QtAutogen/mocPlugin/jsonIn/StyleB.json b/Tests/QtAutogen/mocPlugin/jsonIn/StyleB.json
deleted file mode 100644
index 129cac4..0000000
--- a/Tests/QtAutogen/mocPlugin/jsonIn/StyleB.json
+++ /dev/null
@@ -1 +0,0 @@
-{ "Keys": [ "Rocket", "StarbusterB" ] }
diff --git a/Tests/QtAutogen/mocPlugin/jsonIn/StyleB_Custom.json b/Tests/QtAutogen/mocPlugin/jsonIn/StyleB_Custom.json
deleted file mode 100644
index 129cac4..0000000
--- a/Tests/QtAutogen/mocPlugin/jsonIn/StyleB_Custom.json
+++ /dev/null
@@ -1 +0,0 @@
-{ "Keys": [ "Rocket", "StarbusterB" ] }
diff --git a/Tests/QtAutogen/mocPlugin/jsonIn/StyleC.json b/Tests/QtAutogen/mocPlugin/jsonIn/StyleC.json
deleted file mode 100644
index 119aaa4..0000000
--- a/Tests/QtAutogen/mocPlugin/jsonIn/StyleC.json
+++ /dev/null
@@ -1 +0,0 @@
-{ "Keys": [ "Boat", "Ship" ] }
diff --git a/Tests/QtAutogen/mocPlugin/jsonIn/StyleD.json b/Tests/QtAutogen/mocPlugin/jsonIn/StyleD.json
deleted file mode 100644
index 732c547..0000000
--- a/Tests/QtAutogen/mocPlugin/jsonIn/StyleD.json
+++ /dev/null
@@ -1 +0,0 @@
-{ "Keys": [ "Bike", "Car" ] }
diff --git a/Tests/QtAutogen/mocPlugin/main.cpp b/Tests/QtAutogen/mocPlugin/main.cpp
deleted file mode 100644
index 3ba2ddc..0000000
--- a/Tests/QtAutogen/mocPlugin/main.cpp
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "StyleA.hpp"
-
-int main(int argv, char** args)
-{
- return 0;
-}