aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
diff options
context:
space:
mode:
authorKnud Dollereder <knud.dollereder@qt.io>2020-03-16 14:02:15 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2020-03-18 15:33:19 +0000
commit3e86ed81d9ab4be08abae231d2ba16489a335310 (patch)
tree0791ca6e55ef46cfeced1dffef6b380d5e14cd74 /src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
parentc3420c7fc366999eaee864b3ef95027c1d87f771 (diff)
Improve visual feedback of selections
- The handles can now take 4 kinds of colors: 1) Unselected. 2) Handles influenced by a selected keyframe take the selection-color. 3) Handles that are about to be moved (the mouse hovers over it) take the hover color. 4) Handles that are about to be indirectly moved (Handles that are influenced by the hover handles) take the activate color - Apply some colors of the Theme to the curve-editor. - Fixed a drag handle bug. (The bounding box for the handle was wrong) Change-Id: Ib474c714aae8bf88a5fb916cbef62deb29bc483e 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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
index 4569ace37a..77aa8c168d 100644
--- a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
+++ b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
@@ -67,7 +67,9 @@ public:
void keyframeMoved(KeyframeItem *item, const QPointF &direction);
- void handleMoved(KeyframeItem *frame, HandleSlot handle, double angle, double deltaLength);
+ void handleUnderMouse(HandleItem *handle);
+
+ void handleMoved(KeyframeItem *frame, HandleItem::Slot slot, double angle, double deltaLength);
void setPinned(uint id, bool pinned);