blub.cpp 1000 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2004-2011 Kitware, Inc.
  4. Copyright 2011 Alexander Neundorf ([email protected])
  5. Distributed under the OSI-approved BSD License (the "License");
  6. see accompanying file Copyright.txt for details.
  7. This software is distributed WITHOUT ANY WARRANTY; without even the
  8. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. See the License for more information.
  10. ============================================================================*/
  11. #include "blub.h"
  12. #include <stdio.h>
  13. class BlubBlub : public QObject
  14. {
  15. Q_OBJECT
  16. public:
  17. BlubBlub():QObject() {}
  18. public slots:
  19. int getValue() const { return 13; }
  20. };
  21. Blub::Blub()
  22. {
  23. }
  24. void Blub::blubber()
  25. {
  26. BlubBlub bb;
  27. printf("Blub blub %d ! \n", bb.getValue());
  28. }
  29. // test the case that the wrong moc-file is included, it should
  30. // actually be "blub.moc"
  31. #include "moc_blub.cpp"