summaryrefslogtreecommitdiffhomepage
path: root/spline-widget
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-01-29 12:34:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-01-29 12:34:27 +0100
commitea09a8d5e6957bb98e674c557478f52f32737276 (patch)
tree5c4bacc17fa213d22cb846f5ca138bc8ae747886 /spline-widget
parent7e4df772887d5c9f734dbdc62c9198b593219561 (diff)
spline-widget: actually use the [xy]_step properties
Diffstat (limited to 'spline-widget')
-rw-r--r--spline-widget/spline-widget.cpp4
1 files changed, 3 insertions, 1 deletions
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();