Commit e073090e authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa Committed by Sebastian Trueg
Browse files

fix the rect passed to kcapacitybar paint method.

CCBUG: 290879
REVIEW: 103669
parent b3322c89
......@@ -370,7 +370,8 @@ QSize KCapacityBar::minimumSizeHint() const
void KCapacityBar::paintEvent(QPaintEvent *event)
{
QPainter p(this);
drawCapacityBar(&p, event->rect());
p.setClipRect(event->rect());
drawCapacityBar(&p, contentsRect());
p.end();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment