diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-08-21 03:16:51 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-08-21 03:16:51 (GMT) |
commit | 7eb52559f44de7666c31ea28ce557eaca9177e9d (patch) | |
tree | 757b9927465409fc6a005a50bfe57322ec0824b9 /src/declarative/util/qmlanimation.cpp | |
parent | 0fd79d739bf102e406a8042eb20add5b1e8ebb10 (diff) | |
download | Qt-7eb52559f44de7666c31ea28ce557eaca9177e9d.zip Qt-7eb52559f44de7666c31ea28ce557eaca9177e9d.tar.gz Qt-7eb52559f44de7666c31ea28ce557eaca9177e9d.tar.bz2 |
Make QVector3D a first-class builtin type within QML
Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/util/qmlanimation.cpp')
-rw-r--r-- | src/declarative/util/qmlanimation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/util/qmlanimation.cpp b/src/declarative/util/qmlanimation.cpp index 7faddee..7b558b9 100644 --- a/src/declarative/util/qmlanimation.cpp +++ b/src/declarative/util/qmlanimation.cpp @@ -1462,6 +1462,10 @@ void QmlPropertyAnimationPrivate::convertVariant(QVariant &variant, int type) variant.setValue(QmlStringConverters::colorFromString(variant.toString())); break; } + case QVariant::Vector3D: { + variant.setValue(QmlStringConverters::vector3DFromString(variant.toString())); + break; + } default: if ((uint)type >= QVariant::UserType) { QmlMetaType::StringConverter converter = QmlMetaType::customStringConverter(type); |