CMake Nightly Date Stamp
[kiteware-cmake.git] / Tests / QtAutogen / Complex / abc.cpp
blob4c7dc52cb3868520bd7dc1b7e3c3591ad21d3a97
1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
3 #include "abc.h"
5 #include <stdio.h>
7 #include "abc_p.h"
9 class PrintAbc : public QObject
11 Q_OBJECT
12 public:
13 PrintAbc()
14 : QObject()
17 public slots:
18 void print() const { printf("abc\n"); }
21 Abc::Abc()
22 : QObject()
26 void Abc::doAbc()
28 PrintAbc pa;
29 pa.print();
30 AbcP abcP;
31 abcP.doAbcP();
34 // check that including the moc file for the cpp file and the header works:
35 #include "abc.moc"
36 #include "moc_abc.cpp"
37 #include "moc_abc_p.cpp"
39 // check that including a moc file from another header works:
40 #include "moc_xyz.cpp"