diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-12-08 19:28:17 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-12-13 12:50:18 (GMT) |
commit | 4988746e76703269d76c3fb633bafc0767fafbe4 (patch) | |
tree | d569e2f21cc046fb89e6ad601872542c972b9e78 /Tests/QtAutogen/Complex/blub.cpp | |
parent | 6ce6fd426ee7649a40c2f253dbc5f814650f0992 (diff) | |
download | CMake-4988746e76703269d76c3fb633bafc0767fafbe4.zip CMake-4988746e76703269d76c3fb633bafc0767fafbe4.tar.gz CMake-4988746e76703269d76c3fb633bafc0767fafbe4.tar.bz2 |
Autogen: Tests: Separate Complex test
Diffstat (limited to 'Tests/QtAutogen/Complex/blub.cpp')
-rw-r--r-- | Tests/QtAutogen/Complex/blub.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Tests/QtAutogen/Complex/blub.cpp b/Tests/QtAutogen/Complex/blub.cpp new file mode 100644 index 0000000..1c497e0 --- /dev/null +++ b/Tests/QtAutogen/Complex/blub.cpp @@ -0,0 +1,31 @@ +/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying + file Copyright.txt or https://cmake.org/licensing for details. */ +#include "blub.h" + +#include <stdio.h> + +class BlubBlub : public QObject +{ + Q_OBJECT +public: + BlubBlub() + : QObject() + { + } +public slots: + int getValue() const { return 13; } +}; + +Blub::Blub() +{ +} + +void Blub::blubber() +{ + BlubBlub bb; + printf("Blub blub %d ! \n", bb.getValue()); +} + +// test the case that the wrong moc-file is included, it should +// actually be "blub.moc" +#include "moc_blub.cpp" |