diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-07-09 10:45:07 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-07-20 14:55:11 (GMT) |
commit | f5ccef17515ed4794659923706989fa059b4df38 (patch) | |
tree | a89fb812c1806f77ffa12621cb055694ac8a79dc /Tests/QtAutogen/mocInclude/ObjA.cpp | |
parent | a8d8d2fd05e65444e52adb5164a38f3c64b247d5 (diff) | |
download | CMake-f5ccef17515ed4794659923706989fa059b4df38.zip CMake-f5ccef17515ed4794659923706989fa059b4df38.tar.gz CMake-f5ccef17515ed4794659923706989fa059b4df38.tar.bz2 |
Autogen: Extended mocInclude tests
The extended tests cover more AUTOMOC use cases.
Diffstat (limited to 'Tests/QtAutogen/mocInclude/ObjA.cpp')
-rw-r--r-- | Tests/QtAutogen/mocInclude/ObjA.cpp | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/Tests/QtAutogen/mocInclude/ObjA.cpp b/Tests/QtAutogen/mocInclude/ObjA.cpp index 1b0311d..6f6b90e 100644 --- a/Tests/QtAutogen/mocInclude/ObjA.cpp +++ b/Tests/QtAutogen/mocInclude/ObjA.cpp @@ -1,24 +1,20 @@ #include "ObjA.hpp" +#include "ObjA_p.h" -class SubObjA : public QObject +ObjAPrivate::ObjAPrivate() { - Q_OBJECT - -public: - SubObjA() {} - ~SubObjA() {} - - Q_SLOT - void aSlot(); -}; +} -void SubObjA::aSlot() +ObjAPrivate::~ObjAPrivate() { } -void ObjA::go() +ObjA::ObjA() + : d(new ObjAPrivate) { - SubObjA subObj; } -#include "ObjA.moc" +ObjA::~ObjA() +{ + delete d; +} |