waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

foo.cpp (417B)


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