From 5bd377274e080234cb7e74679b7477feec9ec294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Nowacki?= Date: Wed, 26 Oct 2011 13:48:40 +0200 Subject: Add QPolygonF to metatype system. That was strange that QPolygon was know to QMetaType class but QPolygonF not. Change-Id: I67bb99644b8b1d0fe1aec730619d8048cb78219b Reviewed-by: Olivier Goffart --- src/gui/kernel/qguivariant.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/kernel/qguivariant.cpp') diff --git a/src/gui/kernel/qguivariant.cpp b/src/gui/kernel/qguivariant.cpp index 2bb7524ab9..78d431f9bd 100644 --- a/src/gui/kernel/qguivariant.cpp +++ b/src/gui/kernel/qguivariant.cpp @@ -549,6 +549,7 @@ Q_DECL_METATYPE_HELPER(QVector4D) #ifndef QT_NO_QUATERNION Q_DECL_METATYPE_HELPER(QQuaternion) #endif +Q_DECL_METATYPE_HELPER(QPolygonF) #ifdef QT_NO_DATASTREAM # define Q_IMPL_METATYPE_HELPER(TYPE) \ @@ -616,10 +617,11 @@ static const QMetaTypeGuiHelper qVariantGuiHelper[] = { {0, 0, 0, 0, 0, 0, 0}, #endif #ifndef QT_NO_QUATERNION - Q_IMPL_METATYPE_HELPER(QQuaternion) + Q_IMPL_METATYPE_HELPER(QQuaternion), #else - {0, 0, 0, 0, 0, 0, 0} + {0, 0, 0, 0, 0, 0, 0}, #endif + Q_IMPL_METATYPE_HELPER(QPolygonF) }; static const QVariant::Handler *qt_guivariant_last_handler = 0; -- cgit v1.2.3