summaryrefslogtreecommitdiff
path: root/plugingui/progressbar.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-11-07 10:39:46 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-11-07 10:39:46 +0100
commita65ca7af57feaf7a4ea73f7e071a72eb9b3a1e24 (patch)
tree6cf9fa3b8b57513b8eae030bdc6e1a18495d7e75 /plugingui/progressbar.cc
parent60109b8a737059058d2b0664c7ea88ec501490f7 (diff)
Refactored Painter.
Diffstat (limited to 'plugingui/progressbar.cc')
-rw-r--r--plugingui/progressbar.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/progressbar.cc b/plugingui/progressbar.cc
index 3b821bb..f834fc4 100644
--- a/plugingui/progressbar.cc
+++ b/plugingui/progressbar.cc
@@ -71,14 +71,14 @@ void GUI::ProgressBar::setProgress(float progress)
void GUI::ProgressBar::repaintEvent(GUI::RepaintEvent *e)
{
- Painter p(this);
+ Painter p(*this);
int max = width() * _progress;
p.clear();
int brd = 4;
- p.drawBar(0, 0, &bar_bg, width(), height());
+ p.drawBar(0, 0, bar_bg, width(), height());
GUI::Painter::Bar *b = NULL;
switch(state) {
@@ -87,7 +87,7 @@ void GUI::ProgressBar::repaintEvent(GUI::RepaintEvent *e)
case blue: b = &bar_blue; break;
default: break;
}
- if(b) p.drawBar(brd, 0, b, max - 2*brd, height());
+ if(b) p.drawBar(brd, 0, *b, max - 2*brd, height());
}
#ifdef TEST_PROGRESSBAR