aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/curveeditor/detail/playhead.cpp
diff options
context:
space:
mode:
authorKnud Dollereder <knud.dollereder@qt.io>2019-10-24 17:09:22 +0200
committerKnud Dollereder <knud.dollereder@qt.io>2019-10-31 11:08:58 +0000
commita4bff368fd05fe609a1f1ec146b73fa8b167b817 (patch)
tree86d3112252cc1ecf5ad1c1a6720ae4b9c6a8f7bb /src/plugins/qmldesigner/components/curveeditor/detail/playhead.cpp
parent3c3f7afcbcadeb7e42a8a43e74cc14d921140efe (diff)
Display the current frame in a dedicated control
Enable immediate dragging of the playhead after clicking into the time-scale Rename "Curve Picker" to "Easing Curve Editor" and "Curve Editor" to "Animation Curve Editor" Change-Id: I0085a26d0ea510286586d89c6cddb9bbe720e49e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/curveeditor/detail/playhead.cpp')
-rw-r--r--src/plugins/qmldesigner/components/curveeditor/detail/playhead.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/playhead.cpp b/src/plugins/qmldesigner/components/curveeditor/detail/playhead.cpp
index e2e6d21274..7b25bbb9af 100644
--- a/src/plugins/qmldesigner/components/curveeditor/detail/playhead.cpp
+++ b/src/plugins/qmldesigner/components/curveeditor/detail/playhead.cpp
@@ -56,6 +56,11 @@ int Playhead::currentFrame() const
return m_frame;
}
+void Playhead::setMoving(bool moving)
+{
+ m_moving = moving;
+}
+
void Playhead::moveToFrame(int frame, GraphicsView *view)
{
m_frame = frame;