diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-12 11:07:22 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-02-12 11:07:22 +0100 |
commit | cec1d9ea562e3d52c98f1219db5e186943f2f0d6 (patch) | |
tree | 3a66ff06ef16cce96e215644032e6c9fac2cbe8a /plugingui/scrollbar.cc | |
parent | dc33f15a6b968139779c2b7d2003d3ef6e7d5748 (diff) |
Refactor/introduce widget and windiow redraw/dirty mechanism to eradicate unnecessary rendering passes during event handling.
Diffstat (limited to 'plugingui/scrollbar.cc')
-rw-r--r-- | plugingui/scrollbar.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/scrollbar.cc b/plugingui/scrollbar.cc index ac5be15..32db4a4 100644 --- a/plugingui/scrollbar.cc +++ b/plugingui/scrollbar.cc @@ -41,7 +41,7 @@ void ScrollBar::setRange(int r) { rangeValue = r; setValue(value()); - repaintEvent(nullptr); + redraw(); } int ScrollBar::range() @@ -57,7 +57,7 @@ void ScrollBar::setMaximum(int m) rangeValue = maxValue; } setValue(value()); - repaintEvent(nullptr); + redraw(); } int ScrollBar::maximum() @@ -91,7 +91,7 @@ void ScrollBar::setValue(int value) valueChangeNotifier(value); - repaintEvent(nullptr); + redraw(); } int ScrollBar::value() |