summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/MocOnly/IncA.cpp
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2018-01-18 09:31:49 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2018-01-18 17:38:45 (GMT)
commitff91a5d54b5458eaebab6be814624925a02eccd7 (patch)
tree8ea2dfdf77d1df28ca960d4ce6a9ca318d580d5c /Tests/QtAutogen/MocOnly/IncA.cpp
parenta1d491ca2721d234eb10553a9e336f51752aa2a0 (diff)
downloadCMake-ff91a5d54b5458eaebab6be814624925a02eccd7.zip
CMake-ff91a5d54b5458eaebab6be814624925a02eccd7.tar.gz
CMake-ff91a5d54b5458eaebab6be814624925a02eccd7.tar.bz2
Autogen: Tests: Extend AUTOMOC include patterns test
Diffstat (limited to 'Tests/QtAutogen/MocOnly/IncA.cpp')
-rw-r--r--Tests/QtAutogen/MocOnly/IncA.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/QtAutogen/MocOnly/IncA.cpp b/Tests/QtAutogen/MocOnly/IncA.cpp
new file mode 100644
index 0000000..94610cd
--- /dev/null
+++ b/Tests/QtAutogen/MocOnly/IncA.cpp
@@ -0,0 +1,19 @@
+#include "moc_IncA.cpp"
+/// AUTOMOC moc_ include on the first line of the file!
+#include "IncA.hpp"
+
+/// @brief Source local QObject
+///
+class IncAPrivate : public QObject
+{
+ Q_OBJECT
+public:
+ IncAPrivate(){};
+};
+
+IncA::IncA()
+{
+ IncAPrivate priv;
+}
+
+#include "IncA.moc"