From ea09a8d5e6957bb98e674c557478f52f32737276 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 29 Jan 2017 12:34:27 +0100 Subject: spline-widget: actually use the [xy]_step properties --- spline-widget/spline-widget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spline-widget/spline-widget.cpp b/spline-widget/spline-widget.cpp index c17bc291..5fa0644c 100644 --- a/spline-widget/spline-widget.cpp +++ b/spline-widget/spline-widget.cpp @@ -30,6 +30,8 @@ spline_widget::spline_widget(QWidget *parent) : _config(nullptr), snap_x(0), snap_y(0), + _x_step(10), + _y_step(10), moving_control_point_idx(-1), _draw_function(true), _preview_only(false) @@ -121,7 +123,7 @@ void spline_widget::drawBackground() const QPen pen(color__, 1, Qt::SolidLine, Qt::FlatCap); - const int xstep = 10, ystep = 10; + const int ystep = _y_step, xstep = _x_step; const qreal maxx = _config->max_input(); const qreal maxy = _config->max_output(); -- cgit v1.2.3