aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
diff options
context:
space:
mode:
authorKnud Dollereder <knud.dollereder@qt.io>2020-06-09 14:36:40 +0200
committerKnud Dollereder <knud.dollereder@qt.io>2020-06-15 09:35:57 +0000
commitaf9665f7850bc679a9ffbf65b6f25615a6176ab4 (patch)
treed5a17b8b8ebe3bd44dd5a82fce9e92251989f713 /src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
parentdb3b60d780ce2d5181837dbcb4ac4626fb23feea (diff)
Fix issues related to curve locking and pinning
- Prevent insertion of keyframes in locked curves. (QDS-2172 means locking, not pinning) - Unselect keyframes when the curve moves into locking state. - Make sure that locked curves are always at the bottom of the z-stack otherwise they might prevent non-locked keyframes from being selected. - Use the selection color as background for the whole row of a treeview-item if it was selected. - Always paint the locked/pinned/unlocked/unpinned icons in the treeview. - Fix wrong mouse-hit-test for the locked/pinned icon hover events. The delegate was sometimes wrongly assuming that the mouse is hovering over a certain icon Task-number: QDS-2172 Change-Id: I6caab3f9e8e61e0dc2738eca113d5e1eec420957 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h')
-rw-r--r--src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
index 3ee50672ba..15433909a0 100644
--- a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
+++ b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
@@ -91,6 +91,10 @@ public:
void addCurveItem(CurveItem *item);
+ void moveToBottom(CurveItem *item);
+
+ void moveToTop(CurveItem *item);
+
void setComponentTransform(const QTransform &transform);
void keyframeMoved(KeyframeItem *item, const QPointF &direction);
@@ -119,6 +123,8 @@ private:
QRectF limits() const;
+ void resetZValues();
+
QVector<CurveItem *> m_curves;
mutable bool m_dirty;