update the viewport after changing the background

Task-number: QTBUG-4359

Change-Id: I218e6a8b3b64e1b518338efb18e8a7eb95ecf2c7
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
This commit is contained in:
Irfan Omair 2013-05-16 06:23:39 -07:00 committed by The Qt Project
parent 3ea974178a
commit 4e38c2aab3

View File

@ -2043,7 +2043,7 @@ void QMdiArea::setBackground(const QBrush &brush)
if (d->background != brush) {
d->background = brush;
d->viewport->setAttribute(Qt::WA_OpaquePaintEvent, brush.isOpaque());
update();
d->viewport->update();
}
}