aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltyperegistrar/foreign/foreign.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmltyperegistrar/foreign/foreign.h')
-rw-r--r--tests/auto/qml/qmltyperegistrar/foreign/foreign.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmltyperegistrar/foreign/foreign.h b/tests/auto/qml/qmltyperegistrar/foreign/foreign.h
index d5e5a060b4..dc9fbc84a8 100644
--- a/tests/auto/qml/qmltyperegistrar/foreign/foreign.h
+++ b/tests/auto/qml/qmltyperegistrar/foreign/foreign.h
@@ -30,6 +30,7 @@
#define FOREIGN_H
#include <QtCore/qobject.h>
+#include <QtCore/qsize.h>
class Foreign : public QObject
{
@@ -49,4 +50,10 @@ private:
int m_things = 0;
};
+class SizeGadget : public QSize
+{
+ Q_GADGET
+ Q_PROPERTY(int height READ height WRITE setHeight FINAL)
+};
+
#endif // FOREIGN_H