diff options
author | Jędrzej Nowacki <jedrzej.nowacki@nokia.com> | 2011-10-26 13:48:40 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-09 10:12:18 +0100 |
commit | 5bd377274e080234cb7e74679b7477feec9ec294 (patch) | |
tree | 66a91ce94b5ac06bb422704393ee9529d1703bd8 /src/gui/kernel/qguivariant.cpp | |
parent | 8fd64d22ac7892b061a09c42c72aacf033b80876 (diff) |
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 <ogoffart@woboq.com>
Diffstat (limited to 'src/gui/kernel/qguivariant.cpp')
-rw-r--r-- | src/gui/kernel/qguivariant.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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; |