Advertisement
Guest User

Untitled

a guest
Sep 10th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.86 KB | None | 0 0
  1. #include <QObject>
  2.  
  3. #ifndef Q_MOC_RUN
  4. # define Q_INFO(...)
  5. # define SOMETHING
  6. # define ANOTHER
  7. #endif
  8.  
  9. Q_INFO("first" ARGS "An argument")
  10. Q_INFO("second")
  11. class Foo : public QObject {
  12.     Q_OBJECT
  13.     Q_ENUMS(Yadda)
  14.    
  15.     Q_CLASSINFO("Schnitzel", "nomnom")
  16.    
  17.     Q_INFO("third")
  18.     Q_PROPERTY(int something READ something)
  19.     Q_PROPERTY(int anotherProperty READ something)
  20.    
  21. public:
  22.    
  23.     Q_INFO("fourth" ARGS "yay")
  24.     Q_INFO("fourth.second")
  25.     enum Yadda {
  26.         Eins = 0,
  27.         Zwei,
  28.         Drei
  29.     };
  30.    
  31.     Q_INFO("fifth")
  32.     Q_INVOKABLE Foo () {}
  33.    
  34. public slots:
  35.    
  36.     Q_INFO("sixth" ARGS "One", "Two")
  37.     Q_INFO("seventh")
  38.     SOMETHING ANOTHER void fooBar ();
  39.    
  40.     Q_REVISION(1)
  41.     int something ();
  42.    
  43. private slots:
  44.    
  45.     int anotherFunction ();
  46.    
  47.     Q_INFO("eigth")
  48.     QByteArray yaddaFunc ();
  49.    
  50. signals:
  51.    
  52.     Q_INFO("nineth")
  53.     void foo ();
  54.    
  55. private:
  56.    
  57.     int m_aValue;
  58.    
  59. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement