aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-04-29 10:32:26 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-05-19 08:36:04 +0200
commit19ea4e630c70cdab1f7eec4f1a8f278df8915720 (patch)
treecb5ad929688d5eb5becd74964862db6127b857af /examples/quick
parentd29f3d7a62780d74f62330b0e3a0703a72155852 (diff)
Clean up registration of QEasingCurve
We don't need to register the Type enum for both QtQml and QtQuick. QtQml is enough. Removing this makes the whole manual value type registration obsolete. Furthermore, we want QEasingCurve as QML_FOREIGN as we have several classes with properties of that type. To keep it nice and tidy, we make the uppercase-named enum holder class a separate type. Unfortunately, the Type enums differ in one entry: QEasingCurve::BezierSpline is called Easing.Bezier in QML. Therefore, we need to keep the custom enum around. We can change all users in qtdeclarative to use the name from QEasingCurve, though. Change-Id: Ibbc78d8bbf8938e2a8722f8c09833a0c73394c3d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/animation/easing/easing.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/animation/easing/easing.qml b/examples/quick/animation/easing/easing.qml
index f443486141..44c078b9a2 100644
--- a/examples/quick/animation/easing/easing.qml
+++ b/examples/quick/animation/easing/easing.qml
@@ -102,7 +102,7 @@ Rectangle {
ListElement { name: "Easing.InBounce"; type: Easing.InBounce; ballColor: "DimGray" }
ListElement { name: "Easing.InOutBounce"; type: Easing.InOutBounce; ballColor: "SlateGray" }
ListElement { name: "Easing.OutInBounce"; type: Easing.OutInBounce; ballColor: "DarkSlateGray" }
- ListElement { name: "Easing.Bezier"; type: Easing.Bezier; ballColor: "Chartreuse"; }
+ ListElement { name: "Easing.BezierSpline"; type: Easing.BezierSpline; ballColor: "Chartreuse"; }
}
Component {
@@ -180,7 +180,7 @@ Rectangle {
function getBezierCurve(name)
{
- if (name === "Easing.Bezier")
+ if (name === "Easing.BezierSpline")
return easingCurve;
return [];
}