aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
diff options
context:
space:
mode:
authorKnud Dollereder <knud.dollereder@qt.io>2022-07-01 13:22:32 +0200
committerKnud Dollereder <knud.dollereder@qt.io>2022-07-08 13:20:26 +0000
commit1df1a065de858fed47e134d79b73657bffe96c6f (patch)
tree376056e851a74dc1a25e32ba97dfe19b77d8bea3 /src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
parentb1975da9f78a6a76d0c796b3a77b260ec3c48301 (diff)
QmlDesigner: Improve usability of boolean animation curves
Boolean animation curves are now painted from min to max of the value range instead of from 0 to 1. This allows to see value changes when the curve is loaded together with other animation curves of different value ranges. Boolean curves are now forced to be step interpolated. If the user tries other interpolation types the request is denied and an error message is written in the new status line. Added a status line that displays the current frame number by default and an informative text in case the user did something forbidden. Respect the current state when populating the curve editor. Fixes: QDS-6950 Fixes: QDS-6889 Change-Id: Ia5fa1c1c55ee93eda5a39fd83987b54fb41d54db Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
index 2e6bc3b080..58738d116b 100644
--- a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
+++ b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsscene.h
@@ -41,6 +41,8 @@ class GraphicsScene : public QGraphicsScene
Q_OBJECT
signals:
+ void curveMessage(const QString& msg);
+
void curveChanged(unsigned int id, const AnimationCurve &curve);
public: