summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qmacnativewidget_mac.mm
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>2014-04-01 18:15:18 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-17 18:56:27 +0200
commit5ad594a061f5494295b8e4cde73d4e5a7da7491d (patch)
tree18242ecfbd274d0cb3f9636fce2f1634ec0140bf /src/widgets/widgets/qmacnativewidget_mac.mm
parentc4c9883d13d363cf914b4ef7dd5d11b593c6b515 (diff)
QMacNativeWidget: Fix background rendering
The widget's background is transparent, but Qt is not owning the backing store in this case, so we must make sure it gets properly cleared and flushed. Task-number: QTBUG-19840 Change-Id: I1087ce80aae3620d64a8c180129d79b5b022750b Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'src/widgets/widgets/qmacnativewidget_mac.mm')
-rw-r--r--src/widgets/widgets/qmacnativewidget_mac.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/widgets/qmacnativewidget_mac.mm b/src/widgets/widgets/qmacnativewidget_mac.mm
index 66a1ed7ce7..d3f3515b04 100644
--- a/src/widgets/widgets/qmacnativewidget_mac.mm
+++ b/src/widgets/widgets/qmacnativewidget_mac.mm
@@ -128,6 +128,7 @@ QMacNativeWidget::QMacNativeWidget(NSView *parentView)
setAttribute(Qt::WA_SetPalette, false);
setAttribute(Qt::WA_LayoutUsesWidgetRect);
setAttribute(Qt::WA_TranslucentBackground);
+ setAttribute(Qt::WA_NoSystemBackground, false);
}
/*!