summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgl
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-12-15 17:08:40 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-12-15 17:08:40 (GMT)
commit0bde9d70b1a327b973a3e65efb138ff508ec4986 (patch)
treec999550d938334827922b1ebac50e9a2414d80dd /tests/auto/qgl
parent6b29466ed7b5328ee61c1751bd4efb72f70946d3 (diff)
downloadQt-0bde9d70b1a327b973a3e65efb138ff508ec4986.zip
Qt-0bde9d70b1a327b973a3e65efb138ff508ec4986.tar.gz
Qt-0bde9d70b1a327b973a3e65efb138ff508ec4986.tar.bz2
Add autotest for creating a QGLWidget with alpha channel
Task-number: QT-2602
Diffstat (limited to 'tests/auto/qgl')
-rw-r--r--tests/auto/qgl/tst_qgl.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qgl/tst_qgl.cpp b/tests/auto/qgl/tst_qgl.cpp
index 5dc072d..7b701eb 100644
--- a/tests/auto/qgl/tst_qgl.cpp
+++ b/tests/auto/qgl/tst_qgl.cpp
@@ -75,6 +75,7 @@ private slots:
void graphicsViewClipping();
void partialGLWidgetUpdates_data();
void partialGLWidgetUpdates();
+ void glWidgetWithAlpha();
void glWidgetRendering();
void glFBOSimpleRendering();
void glFBORendering();
@@ -927,6 +928,17 @@ void tst_QGL::glPBufferRendering()
QFUZZY_COMPARE_IMAGES(fb, reference);
}
+void tst_QGL::glWidgetWithAlpha()
+{
+ QGLWidget* w = new QGLWidget(QGLFormat(QGL::AlphaChannel));
+ w->show();
+#ifdef Q_WS_X11
+ qt_x11_wait_for_window_manager(w);
+#endif
+
+ delete w;
+}
+
class GLWidget : public QGLWidget
{
public: