aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHatem ElKharashy <[email protected]>2025-12-03 13:00:53 +0200
committerHatem ElKharashy <[email protected]>2025-12-04 12:44:01 +0200
commita9239daa3025f2023a0f653a333827f4ef3457c9 (patch)
tree9914a3844ce39ee5f7ba3730ed67545518a2f3ff
parent52c4f8d7b8e8ca3d8696d45b98072df06ee470ef (diff)
VectorImage: fix creation of easingCurve type
commit : 1f51dc291c0763453f6a3230c8eb79a28892870f introduced a way to share custom easing curve objects among different animations. However, the easingCurve type was not constructed properly leading to the animation falling back to linear easing. Change-Id: I5a0ce2bd513ba2c24f9554a46547c479f2a2d021 Reviewed-by: Eirik Aavitsland <[email protected]>
-rw-r--r--src/quickvectorimage/generator/qquickqmlgenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quickvectorimage/generator/qquickqmlgenerator.cpp b/src/quickvectorimage/generator/qquickqmlgenerator.cpp
index b747c14b89..05142b64d9 100644
--- a/src/quickvectorimage/generator/qquickqmlgenerator.cpp
+++ b/src/quickvectorimage/generator/qquickqmlgenerator.cpp
@@ -1701,10 +1701,10 @@ bool QQuickQmlGenerator::generateRootNode(const StructureNodeInfo &info)
}
for (const auto [coords, id] : m_easings.asKeyValueRange()) {
- stream() << "property easingCurve " << id << ": { type: Easing.BezierSpline; bezierCurve: [ ";
+ stream() << "readonly property easingCurve " << id << ": ({ type: Easing.BezierSpline, bezierCurve: [ ";
for (auto coord : coords)
stream(SameLine) << coord << ", ";
- stream(SameLine) << "1, 1 ] }";
+ stream(SameLine) << "1, 1 ] })";
}
generateNodeEnd(info);