diff options
author | Stephen Kelly <steveire@gmail.com> | 2011-11-22 21:26:42 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2011-11-22 21:26:42 (GMT) |
commit | 47457159c70d031cfdb5704ce461644446de5a26 (patch) | |
tree | 642f35b63c170a8bb4dc43d589827c37ff2da948 /Tests/QtAutomoc/private_slot.h | |
parent | bde4edb6ab6501de42bdc167e027a9f5c5760244 (diff) | |
download | CMake-47457159c70d031cfdb5704ce461644446de5a26.zip CMake-47457159c70d031cfdb5704ce461644446de5a26.tar.gz CMake-47457159c70d031cfdb5704ce461644446de5a26.tar.bz2 |
Add a test case for the use of Q_PRIVATE_SLOT.
Diffstat (limited to 'Tests/QtAutomoc/private_slot.h')
-rw-r--r-- | Tests/QtAutomoc/private_slot.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Tests/QtAutomoc/private_slot.h b/Tests/QtAutomoc/private_slot.h new file mode 100644 index 0000000..28e5448 --- /dev/null +++ b/Tests/QtAutomoc/private_slot.h @@ -0,0 +1,20 @@ + +#ifndef PRIVATE_SLOT_H +#define PRIVATE_SLOT_H + +#include <QObject> + +class PrivateSlotPrivate; + +class PrivateSlot : public QObject +{ + Q_OBJECT +public: + PrivateSlot(QObject *parent = 0); + +private: + PrivateSlotPrivate * const d; + Q_PRIVATE_SLOT(d, void privateSlot()) +}; + +#endif |