aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.h
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/curveeditor/detail/graphicsview.h
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/curveeditor/detail/graphicsview.h')
-rw-r--r--src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.h b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.h
index d56dfa7c57..7308d77608 100644
--- a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.h
+++ b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.h
@@ -108,6 +108,8 @@ public:
void reset(const std::vector<CurveItem *> &items);
+ void updateSelection(const std::vector<CurveItem *> &items);
+
void setInterpolation(Keyframe::Interpolation interpol);
protected:
@@ -148,8 +150,14 @@ private:
void drawValueScale(QPainter *painter, const QRectF &rect);
+ void drawRangeBar(QPainter *painter, const QRectF &rect);
+
double timeLabelInterval(QPainter *painter, double maxTime);
+ QRectF rangeMinHandle(const QRectF &rect);
+
+ QRectF rangeMaxHandle(const QRectF &rect);
+
private:
double m_zoomX;