diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-17 09:57:57 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-17 14:10:24 (GMT) |
commit | 65313ab37780191c5aacd88f246aec6f8d839543 (patch) | |
tree | 59e4dee40b1d4337748224d6238e4257ce0825da /src/opengl | |
parent | a45cec6a22c70f0b0d7e066822a74b2172d5f397 (diff) | |
download | Qt-65313ab37780191c5aacd88f246aec6f8d839543.zip Qt-65313ab37780191c5aacd88f246aec6f8d839543.tar.gz Qt-65313ab37780191c5aacd88f246aec6f8d839543.tar.bz2 |
Make WA_TranslucentBackground work with QX11GLWindowSurface
Reviewed-By: TrustMe
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qwindowsurface_x11gl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opengl/qwindowsurface_x11gl.cpp b/src/opengl/qwindowsurface_x11gl.cpp index 27b91ba..c6897d5 100644 --- a/src/opengl/qwindowsurface_x11gl.cpp +++ b/src/opengl/qwindowsurface_x11gl.cpp @@ -113,6 +113,8 @@ void QX11GLWindowSurface::setGeometry(const QRect &rect) QX11GLPixmapData *pd = new QX11GLPixmapData; pd->resize(newSize.width(), newSize.height()); m_backBuffer = QPixmap(pd); + if (window()->testAttribute(Qt::WA_TranslucentBackground)) + m_backBuffer.fill(Qt::transparent); } // if (gc) |