QmlDesigner: Add float as animatable type

Task-number: QDS-3041
Change-Id: Idc5001c3af1631668ac8c9b6f7e3ecc26aa0802f
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2020-11-04 14:42:06 +01:00
parent 0d6792fbfb
commit 7899035c05

View File

@@ -211,7 +211,7 @@ ModelNode TransitionEditorView::addNewTransition()
QHash<QString, QStringList> idPropertyList; QHash<QString, QStringList> idPropertyList;
const QVector<TypeName> validProperties = {"int", "real", "double", "qreal", "color", "QColor"}; const QVector<TypeName> validProperties = {"int", "real", "double", "qreal", "color", "QColor", "float"};
for (const QmlModelState &state : qAsConst(states)) { for (const QmlModelState &state : qAsConst(states)) {
for (const QmlPropertyChanges & change : state.propertyChanges()) { for (const QmlPropertyChanges & change : state.propertyChanges()) {