diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-05-27 12:02:14 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2009-05-27 12:09:40 (GMT) |
commit | 962d216ce9f9f1e6bd73fe43e3d2a7c86f64b75f (patch) | |
tree | 9fccf497be456fff3cfde4d5b0d0ea07aae0d7af /src/opengl/qgl_p.h | |
parent | 71cb35e942b94e4dba2055acdebbf90c352da762 (diff) | |
download | Qt-962d216ce9f9f1e6bd73fe43e3d2a7c86f64b75f.zip Qt-962d216ce9f9f1e6bd73fe43e3d2a7c86f64b75f.tar.gz Qt-962d216ce9f9f1e6bd73fe43e3d2a7c86f64b75f.tar.bz2 |
Make QGLWidgets have the same background colour as QWidgets
QWidgets are filled with Qt::transparent when WA_TranslucentBackground
is set, reguardless of what their background colour has been set to.
This patch makes QGLWidgets behave the same way.
Reviewed-By: Samuel Rødal
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r-- | src/opengl/qgl_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h index 9657416..b1a63b5 100644 --- a/src/opengl/qgl_p.h +++ b/src/opengl/qgl_p.h @@ -314,6 +314,7 @@ public: QColor backgroundColor() const; QGLContext *context() const; bool autoFillBackground() const; + bool hasTransparentBackground() const; #if !defined(QT_OPENGL_ES_1) && !defined(QT_OPENGL_ES_1_CL) QGLPixmapData *copyOnBegin() const; |