summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-07-25 21:18:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-07-25 21:18:40 +0200
commitb6b09f1908260dfe590c9eccca56640324b215f1 (patch)
tree1534ca9fa1363f899711862931cca2a231250ac3
parent10fff28cd3770222f7b0db13ac8214655ca3e607 (diff)
spline: repaint() is cheaper
-rw-r--r--spline/spline-widget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp
index 44576342..7b417c18 100644
--- a/spline/spline-widget.cpp
+++ b/spline/spline-widget.cpp
@@ -79,13 +79,13 @@ QColor spline_widget::colorBezier() const
void spline_widget::setColorBezier(QColor color)
{
spline_color = color;
- update();
+ repaint();
}
void spline_widget::force_redraw()
{
_background = QPixmap();
- update();
+ repaint();
}
void spline_widget::set_preview_only(bool val)