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 <sean.harmer@kdab.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Paul Lemire 2014-11-10 15:53:38 +01:00 committed by Sean Harmer
parent efbc538587
commit 8aceadba1f

View File

@ -36,7 +36,7 @@
#include <QtCore/qnamespace.h>
#include <QtGui/qsurfaceformat.h>
#include <QtCore/qmetatype.h>
#include <QtCore/qsize.h>
QT_BEGIN_NAMESPACE
@ -82,4 +82,6 @@ protected:
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QSurface*)
#endif //QSURFACE_H