From 8aceadba1f1acd27f9f445874985e9812cfc7b2d Mon Sep 17 00:00:00 2001 From: Paul Lemire Date: Mon, 10 Nov 2014 15:53:38 +0100 Subject: QSurface: added Q_DECLARE_METATYPE In Qt3D we need to be able to send a QSurface * through a QVariant which would allow us to be as generic as possible. Change-Id: I2ca2760f9b985c8dc1db822048fa41e13774d52c Reviewed-by: Sean Harmer Reviewed-by: Olivier Goffart --- src/gui/kernel/qsurface.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/kernel') diff --git a/src/gui/kernel/qsurface.h b/src/gui/kernel/qsurface.h index 58b7ce018e..0c02a3564c 100644 --- a/src/gui/kernel/qsurface.h +++ b/src/gui/kernel/qsurface.h @@ -36,7 +36,7 @@ #include #include - +#include #include QT_BEGIN_NAMESPACE @@ -82,4 +82,6 @@ protected: QT_END_NAMESPACE +Q_DECLARE_METATYPE(QSurface*) + #endif //QSURFACE_H -- cgit v1.2.3