foo.cpp 417 B

12345678910111213141516171819202122232425
  1. // Thomas Nagy, 2011
  2. #include "foo.h"
  3. Foo::Foo() : QWidget(NULL) {
  4. }
  5. /* WARNING: do not declare private classes in .cpp files (put them in header files) */
  6. class Bar_private : public QWidget {
  7. Q_OBJECT
  8. signals:
  9. void test();
  10. public:
  11. Bar_private();
  12. };
  13. Bar_private::Bar_private() : QWidget(NULL) {
  14. }
  15. #if WAF
  16. #include "foo.moc"
  17. #include "foo.cpp.moc"
  18. #endif