summaryrefslogtreecommitdiff
path: root/Tests/QtAutogen/MocMacroName/Gadget.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/QtAutogen/MocMacroName/Gadget.hpp')
-rw-r--r--Tests/QtAutogen/MocMacroName/Gadget.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/QtAutogen/MocMacroName/Gadget.hpp b/Tests/QtAutogen/MocMacroName/Gadget.hpp
new file mode 100644
index 000000000..cab792edc
--- /dev/null
+++ b/Tests/QtAutogen/MocMacroName/Gadget.hpp
@@ -0,0 +1,19 @@
+#ifndef GADGET_HPP
+#define GADGET_HPP
+
+#include <QMetaType>
+
+class Gadget
+{
+ Q_GADGET
+ Q_PROPERTY(int test READ getTest)
+public:
+ Gadget();
+
+ int getTest() { return _test; }
+
+private:
+ int _test;
+};
+
+#endif