diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-11-08 16:49:00 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-11-11 15:07:33 +0000 |
commit | 22429728f182b6c75837526875e5fe14e92c34dc (patch) | |
tree | 5fb42d09c91d57fae980a721cd933600ed7306c7 /src/plugins/qmldesigner/components/timelineeditor | |
parent | 952f4d82e56efebb6ca7be7e643965b3222e0ee0 (diff) |
QmlDesigner: Add 'float' support to curve editor
Change-Id: I7daf26a565b24c48b247021f0a21024524e479bc
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/timelineeditor')
-rw-r--r-- | src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp b/src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp index 7b27194582..34f3afea96 100644 --- a/src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp +++ b/src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp @@ -113,7 +113,9 @@ void AnimationCurveEditorModel::setMaximumTime(double time) DesignTools::ValueType typeFrom(const QmlTimelineKeyframeGroup &group) { - if (group.valueType() == TypeName("double") || group.valueType() == TypeName("real")) + if (group.valueType() == TypeName("double") + || group.valueType() == TypeName("real") + || group.valueType() == TypeName("float")) return DesignTools::ValueType::Double; if (group.valueType() == TypeName("boolean") || group.valueType() == TypeName("bool")) |