aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp
diff options
context:
space:
mode:
authorKnud Dollereder <knud.dollereder@qt.io>2020-10-16 16:45:44 +0200
committerKnud Dollereder <knud.dollereder@qt.io>2020-10-19 14:43:04 +0000
commitaaf564cab7cbb0a79c37098bd9642a72cef9a9ba (patch)
tree1dd4cf77e0c9500f2299b0232f2268a1913419b3 /src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp
parentb771f400de94edf1d95f2e5ce5827ed226dec914 (diff)
CurveEditor: Fix bounding rect computation for the graphicsscene
Task-number: QDS-2957 Change-Id: I0019d538e7460e923b35024bd02f7186e1935f6b Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp')
-rw-r--r--src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp
index 9fec8b2fc54..c162b5fd906 100644
--- a/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp
+++ b/src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp
@@ -126,12 +126,12 @@ double GraphicsView::maximumTime() const
double GraphicsView::minimumValue() const
{
- return m_scene->empty() ? -1.0 : m_scene->minimumValue();
+ return m_scene->empty() ? CurveEditorStyle::defaultValueMin : m_scene->minimumValue();
}
double GraphicsView::maximumValue() const
{
- return m_scene->empty() ? 1.0 : m_scene->maximumValue();
+ return m_scene->empty() ? CurveEditorStyle::defaultValueMax : m_scene->maximumValue();
}
double GraphicsView::zoomX() const