Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QObject>
- #ifndef Q_MOC_RUN
- # define Q_INFO(...)
- # define SOMETHING
- # define ANOTHER
- #endif
- Q_INFO("first" ARGS "An argument")
- Q_INFO("second")
- class Foo : public QObject {
- Q_OBJECT
- Q_ENUMS(Yadda)
- Q_CLASSINFO("Schnitzel", "nomnom")
- Q_INFO("third")
- Q_PROPERTY(int something READ something)
- Q_PROPERTY(int anotherProperty READ something)
- public:
- Q_INFO("fourth" ARGS "yay")
- Q_INFO("fourth.second")
- enum Yadda {
- Eins = 0,
- Zwei,
- Drei
- };
- Q_INFO("fifth")
- Q_INVOKABLE Foo () {}
- public slots:
- Q_INFO("sixth" ARGS "One", "Two")
- Q_INFO("seventh")
- SOMETHING ANOTHER void fooBar ();
- Q_REVISION(1)
- int something ();
- private slots:
- int anotherFunction ();
- Q_INFO("eigth")
- QByteArray yaddaFunc ();
- signals:
- Q_INFO("nineth")
- void foo ();
- private:
- int m_aValue;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement