diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-09 15:03:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-09 15:03:13 +0200 |
commit | 7ac86dfa4973c5b9a10a2a8ce1e5e6a672572ca2 (patch) | |
tree | b968dcde621f6b0281fcbc20dd24ece9e397f14f | |
parent | dd790c11fafaa0890bdc4c9b38d4fd1ec48003d3 (diff) |
spline-widget: simplify alpha calculation
-rw-r--r-- | spline-widget/spline-widget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spline-widget/spline-widget.cpp b/spline-widget/spline-widget.cpp index 472862fe..5f766dcd 100644 --- a/spline-widget/spline-widget.cpp +++ b/spline-widget/spline-widget.cpp @@ -163,7 +163,7 @@ void spline_widget::drawFunction() else { QColor color(spline_color); - color.setAlphaF(std::min(.9, color.alphaF())); + color.setAlphaF(color.alphaF() * .9); return color; } ); |