diff options
author | Irfan Omair <irfan.omair@gmail.com> | 2013-05-16 06:23:39 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-15 13:46:51 +0200 |
commit | 4e38c2aab3a197225665645c0634df31d4f45bcc (patch) | |
tree | 0ff04a9b9d0b6c7cb88ef1277bddbac54736c545 /src/widgets | |
parent | 3ea974178ae6fb16048cbd75a32908833ece2cf4 (diff) |
update the viewport after changing the background
Task-number: QTBUG-4359
Change-Id: I218e6a8b3b64e1b518338efb18e8a7eb95ecf2c7
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/widgets/qmdiarea.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/widgets/qmdiarea.cpp b/src/widgets/widgets/qmdiarea.cpp index b2409e300c..13c9bf8deb 100644 --- a/src/widgets/widgets/qmdiarea.cpp +++ b/src/widgets/widgets/qmdiarea.cpp @@ -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(); } } |