diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-12-08 18:40:17 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-12-13 12:50:17 (GMT) |
commit | cc66d356510c51b5240239a212a511fb0d23dc9a (patch) | |
tree | 5a844861aebf5ede3030bc2aedad2bea6d02298e /Tests/QtAutogen/MocInclude/EObjA.cpp | |
parent | 7971202b3c58f78008f5b651c048910fcc49c49f (diff) | |
download | CMake-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.cpp | 44 |
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" |