summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/mocInclude/subA
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-02-16 14:59:56 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-21 15:38:49 (GMT)
commit39c4819eaa4f680411a63701b1303d79a088aece (patch)
tree1588c2a9e6d0595552e542791bee12cc821c450d /Tests/QtAutogen/mocInclude/subA
parent50805693ba987fbf86bb5e8263d7b427cd4da0c2 (diff)
downloadCMake-39c4819eaa4f680411a63701b1303d79a088aece.zip
CMake-39c4819eaa4f680411a63701b1303d79a088aece.tar.gz
CMake-39c4819eaa4f680411a63701b1303d79a088aece.tar.bz2
Autogen: Tests: Add moc include tests
Diffstat (limited to 'Tests/QtAutogen/mocInclude/subA')
-rw-r--r--Tests/QtAutogen/mocInclude/subA/SubObjA.cpp27
-rw-r--r--Tests/QtAutogen/mocInclude/subA/SubObjA.hpp16
2 files changed, 43 insertions, 0 deletions
diff --git a/Tests/QtAutogen/mocInclude/subA/SubObjA.cpp b/Tests/QtAutogen/mocInclude/subA/SubObjA.cpp
new file mode 100644
index 0000000..a05f6e3
--- /dev/null
+++ b/Tests/QtAutogen/mocInclude/subA/SubObjA.cpp
@@ -0,0 +1,27 @@
+#include "SubObjA.hpp"
+
+namespace subA {
+
+class SubObjA : public QObject
+{
+ Q_OBJECT
+
+public:
+ SubObjA() {}
+ ~SubObjA() {}
+
+ Q_SLOT
+ void aSlot();
+};
+
+void SubObjA::aSlot()
+{
+}
+
+void ObjA::go()
+{
+ SubObjA subObj;
+}
+}
+
+#include "SubObjA.moc"
diff --git a/Tests/QtAutogen/mocInclude/subA/SubObjA.hpp b/Tests/QtAutogen/mocInclude/subA/SubObjA.hpp
new file mode 100644
index 0000000..31a18b6
--- /dev/null
+++ b/Tests/QtAutogen/mocInclude/subA/SubObjA.hpp
@@ -0,0 +1,16 @@
+#ifndef SUBOBJA_HPP
+#define SUBOBJA_HPP
+
+#include <QObject>
+
+namespace subA {
+
+class ObjA : public QObject
+{
+ Q_OBJECT
+ Q_SLOT
+ void go();
+};
+}
+
+#endif