forked from qt-creator/qt-creator
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:
@@ -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()) {
|
||||||
|
Reference in New Issue
Block a user