summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/mocInclude/ObjB.cpp
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/ObjB.cpp
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/ObjB.cpp')
-rw-r--r--Tests/QtAutogen/mocInclude/ObjB.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/Tests/QtAutogen/mocInclude/ObjB.cpp b/Tests/QtAutogen/mocInclude/ObjB.cpp
new file mode 100644
index 0000000..5ff315d
--- /dev/null
+++ b/Tests/QtAutogen/mocInclude/ObjB.cpp
@@ -0,0 +1,25 @@
+#include "ObjB.hpp"
+
+class SubObjB : public QObject
+{
+ Q_OBJECT
+
+public:
+ SubObjB() {}
+ ~SubObjB() {}
+
+ Q_SLOT
+ void aSlot();
+};
+
+void SubObjB::aSlot()
+{
+}
+
+void ObjB::go()
+{
+ SubObjB subObj;
+}
+
+#include "ObjB.moc"
+#include "moc_ObjB.cpp"