Skip to content

Commit 2af6a28

Browse files
committed
Update iteration over QRegion rects
1 parent 0afb526 commit 2af6a28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

widgets/GDIRenderer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ void GDIRenderer::drawBackground()
238238
//HDC hdc = d.device_context;
239239
Graphics g(d.device_context);
240240
SolidBrush brush(Color(bc.alpha(), bc.red(), bc.green(), bc.blue())); //argb
241-
const QVector<QRect> bg(bgRegion.rects());
242-
foreach (const QRect& r, bg) {
241+
foreach (const QRect& r, bgRegion) {
243242
g.FillRectangle(&brush, r.x(), r.y(), r.width(), r.height());
244243
}
245244
}

0 commit comments

Comments
 (0)