aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp
diff options
context:
space:
mode:
authorKnud Dollereder <knud.dollereder@qt.io>2020-02-21 15:28:31 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2020-03-17 17:19:14 +0000
commit5b000d17cb2f42891db7bd8c9c857866245eddd3 (patch)
tree97b2a33c6be95de50028e24e2d2f0e85ac262055 /src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp
parent0f60f120d2e24b9912b43b5ba4859adcd5a1a803 (diff)
QmlDesigner: Add the ability to modify the animation rangev4.12.0-beta2
Add the ability to modify the animation range from the curve editor Fix a synchronization issue between timeline and curve editor when the animation contains pinned curves Change-Id: I89dda234063259f41d662749d696f5fc8a04f988 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp')
-rw-r--r--src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp b/src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp
index ce7beba2c9..e09d09532d 100644
--- a/src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp
+++ b/src/plugins/qmldesigner/components/timelineeditor/animationcurveeditormodel.cpp
@@ -35,9 +35,7 @@
namespace QmlDesigner {
AnimationCurveEditorModel::AnimationCurveEditorModel(double minTime, double maxTime)
- : CurveEditorModel()
- , m_minTime(minTime)
- , m_maxTime(maxTime)
+ : CurveEditorModel(minTime, maxTime)
{}
AnimationCurveEditorModel::~AnimationCurveEditorModel() {}
@@ -102,16 +100,6 @@ void AnimationCurveEditorModel::setTimeline(const QmlTimeline &timeline)
reset(items);
}
-void AnimationCurveEditorModel::setMinimumTime(double time)
-{
- m_minTime = time;
-}
-
-void AnimationCurveEditorModel::setMaximumTime(double time)
-{
- m_maxTime = time;
-}
-
DesignTools::ValueType typeFrom(const QmlTimelineKeyframeGroup &group)
{
if (group.valueType() == TypeName("double") || group.valueType() == TypeName("real")