From cec1d9ea562e3d52c98f1219db5e186943f2f0d6 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 12 Feb 2017 11:07:22 +0100 Subject: Refactor/introduce widget and windiow redraw/dirty mechanism to eradicate unnecessary rendering passes during event handling. --- plugingui/progressbar.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugingui/progressbar.cc') 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(); } } -- cgit v1.2.3