summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/qfunctionconfigurator.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-26 17:11:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-26 17:19:20 +0200
commitd7f71f721449853efa88479035c7139898a2a6a5 (patch)
treee5716dd10ef2ce8f95a046383dcd38c69d41c367 /spline-widget/qfunctionconfigurator.cpp
parentb008aefee41a21b24f1d2f1f23cd6c78b888ede5 (diff)
spline-widget: don't use `double' when not needed
Diffstat (limited to 'spline-widget/qfunctionconfigurator.cpp')
-rw-r--r--spline-widget/qfunctionconfigurator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/spline-widget/qfunctionconfigurator.cpp b/spline-widget/qfunctionconfigurator.cpp
index 086d3703..8a3eef85 100644
--- a/spline-widget/qfunctionconfigurator.cpp
+++ b/spline-widget/qfunctionconfigurator.cpp
@@ -386,9 +386,9 @@ void QFunctionConfigurator::update_range()
if (!_config)
return;
- const double w = width(), h = height();
- const double mwl = 40, mhl = 20;
- const double mwr = 15, mhr = 35;
+ const int w = width(), h = height();
+ const int mwl = 40, mhl = 20;
+ const int mwr = 15, mhr = 35;
pixel_bounds = QRectF(mwl, mhl, (w - mwl - mwr), (h - mhl - mhr));
c = QPointF(pixel_bounds.width() / _config->maxInput(), pixel_bounds.height() / _config->maxOutput());