summaryrefslogtreecommitdiff
path: root/plugingui/slider.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-12 11:07:22 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-12 11:07:22 +0100
commitcec1d9ea562e3d52c98f1219db5e186943f2f0d6 (patch)
tree3a66ff06ef16cce96e215644032e6c9fac2cbe8a /plugingui/slider.cc
parentdc33f15a6b968139779c2b7d2003d3ef6e7d5748 (diff)
Refactor/introduce widget and windiow redraw/dirty mechanism to eradicate unnecessary rendering passes during event handling.
Diffstat (limited to 'plugingui/slider.cc')
-rw-r--r--plugingui/slider.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugingui/slider.cc b/plugingui/slider.cc
index 7405a69..039123e 100644
--- a/plugingui/slider.cc
+++ b/plugingui/slider.cc
@@ -46,7 +46,7 @@ Slider::Slider(Widget *parent)
void Slider::setValue(float newValue)
{
currentValue = newValue;
- repaintEvent(nullptr);
+ redraw();
clickNotifier();
}
@@ -120,7 +120,7 @@ void Slider::buttonEvent(ButtonEvent* buttonEvent)
currentValue = 1;
}
- repaintEvent(nullptr);
+ redraw();
clickNotifier();
}
@@ -139,7 +139,7 @@ void Slider::buttonEvent(ButtonEvent* buttonEvent)
currentValue = 1;
}
- repaintEvent(nullptr);
+ redraw();
clickNotifier();
}
}
@@ -160,7 +160,7 @@ void Slider::mouseMoveEvent(MouseMoveEvent* mouseMoveEvent)
currentValue = 1;
}
- repaintEvent(nullptr);
+ redraw();
clickNotifier();
}
}