summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/MocInclude/EObjA.cpp
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-12-08 18:40:17 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-12-13 12:50:17 (GMT)
commitcc66d356510c51b5240239a212a511fb0d23dc9a (patch)
tree5a844861aebf5ede3030bc2aedad2bea6d02298e /Tests/QtAutogen/MocInclude/EObjA.cpp
parent7971202b3c58f78008f5b651c048910fcc49c49f (diff)
downloadCMake-cc66d356510c51b5240239a212a511fb0d23dc9a.zip
CMake-cc66d356510c51b5240239a212a511fb0d23dc9a.tar.gz
CMake-cc66d356510c51b5240239a212a511fb0d23dc9a.tar.bz2
Autogen: Tests: Separate MocInclude test
Diffstat (limited to 'Tests/QtAutogen/MocInclude/EObjA.cpp')
-rw-r--r--Tests/QtAutogen/MocInclude/EObjA.cpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/Tests/QtAutogen/MocInclude/EObjA.cpp b/Tests/QtAutogen/MocInclude/EObjA.cpp
new file mode 100644
index 0000000..7681c29
--- /dev/null
+++ b/Tests/QtAutogen/MocInclude/EObjA.cpp
@@ -0,0 +1,44 @@
+#include "EObjA.hpp"
+#include "EObjAExtra.hpp"
+#include "EObjA_p.hpp"
+
+class EObjALocal : public QObject
+{
+ Q_OBJECT
+public:
+ EObjALocal();
+ ~EObjALocal();
+};
+
+EObjALocal::EObjALocal()
+{
+}
+
+EObjALocal::~EObjALocal()
+{
+}
+
+EObjAPrivate::EObjAPrivate()
+{
+ EObjALocal localObj;
+ EObjAExtra extraObj;
+}
+
+EObjAPrivate::~EObjAPrivate()
+{
+}
+
+EObjA::EObjA()
+ : d(new EObjAPrivate)
+{
+}
+
+EObjA::~EObjA()
+{
+ delete d;
+}
+
+// For EObjALocal
+#include "EObjA.moc"
+// - Not the own header
+#include "moc_EObjAExtra.cpp"