blub.cpp 552 B

12345678910111213141516171819202122232425262728293031
  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 "blub.h"
  4. #include <stdio.h>
  5. class BlubBlub : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. BlubBlub()
  10. : QObject()
  11. {
  12. }
  13. public slots:
  14. int getValue() const { return 13; }
  15. };
  16. Blub::Blub()
  17. {
  18. }
  19. void Blub::blubber()
  20. {
  21. BlubBlub bb;
  22. printf("Blub blub %d ! \n", bb.getValue());
  23. }
  24. // test the case that the wrong moc-file is included, it should
  25. // actually be "blub.moc"
  26. #include "moc_blub.cpp"