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/progressbar.cc | |
parent | dc33f15a6b968139779c2b7d2003d3ef6e7d5748 (diff) |
Refactor/introduce widget and windiow redraw/dirty mechanism to eradicate unnecessary rendering passes during event handling.
Diffstat (limited to 'plugingui/progressbar.cc')
-rw-r--r-- | plugingui/progressbar.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/progressbar.cc b/plugingui/progressbar.cc index 25e735f..c7550c9 100644 --- a/plugingui/progressbar.cc +++ b/plugingui/progressbar.cc @@ -43,7 +43,7 @@ void ProgressBar::setState(ProgressBarState state) if(this->state != state) { this->state = state; - repaintEvent(nullptr); + redraw(); } } @@ -52,7 +52,7 @@ void ProgressBar::setTotal(std::size_t total) if(this->total != total) { this->total = total; - repaintEvent(nullptr); + redraw(); } } @@ -61,7 +61,7 @@ void ProgressBar::setValue(std::size_t value) if(this->value != value) { this->value = value; - repaintEvent(nullptr); + redraw(); } } |