summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlanimation.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-08 01:12:20 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-08 01:12:20 (GMT)
commit46688b1e8b953f9e3a12d42b9aa73a8eba904f5b (patch)
treeb1142ff7ca36ebd271dcbd67a742d0352e07bdf5 /src/declarative/util/qmlanimation.cpp
parent4dad657516ed2022ef3795693053fdbada4daa40 (diff)
downloadQt-46688b1e8b953f9e3a12d42b9aa73a8eba904f5b.zip
Qt-46688b1e8b953f9e3a12d42b9aa73a8eba904f5b.tar.gz
Qt-46688b1e8b953f9e3a12d42b9aa73a8eba904f5b.tar.bz2
Fix custom string convertors for animations.
Diffstat (limited to 'src/declarative/util/qmlanimation.cpp')
-rw-r--r--src/declarative/util/qmlanimation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qmlanimation.cpp b/src/declarative/util/qmlanimation.cpp
index 5dfaa7f..ff070c1 100644
--- a/src/declarative/util/qmlanimation.cpp
+++ b/src/declarative/util/qmlanimation.cpp
@@ -1477,7 +1477,7 @@ void QmlPropertyAnimationPrivate::convertVariant(QVariant &variant, int type)
if ((uint)type >= QVariant::UserType) {
QmlMetaType::StringConverter converter = QmlMetaType::customStringConverter(type);
if (converter)
- variant.setValue(converter(variant.toString()));
+ variant = converter(variant.toString());
} else
variant.convert((QVariant::Type)type);
break;