summaryrefslogtreecommitdiffstats
path: root/tests/manual/qopenglwidget/openglwidget/main.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-01-27 18:12:44 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-02-01 08:49:26 +0000
commit920472c85f6a5cd96344c28dbba0f199c34c6c10 (patch)
tree681cfae36f9df7406459f3509a384eb0b5a290ab /tests/manual/qopenglwidget/openglwidget/main.cpp
parent758b7b0d88742db7db223a69d689e235e6272f85 (diff)
Fix clipRect interpretation in composited backingstores
Empty clipRect means "clip away completely", not "no clipping". Task-number: QTBUG-50719 Change-Id: I6a9dd66130716a921fe9fc245582274e3c9718fe Reviewed-by: Paul Olav Tvete <paul.tvete@theqtcompany.com>
Diffstat (limited to 'tests/manual/qopenglwidget/openglwidget/main.cpp')
-rw-r--r--tests/manual/qopenglwidget/openglwidget/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/manual/qopenglwidget/openglwidget/main.cpp b/tests/manual/qopenglwidget/openglwidget/main.cpp
index a56cea1dfe6..3844ca3d0f6 100644
--- a/tests/manual/qopenglwidget/openglwidget/main.cpp
+++ b/tests/manual/qopenglwidget/openglwidget/main.cpp
@@ -181,6 +181,13 @@ int main(int argc, char *argv[])
glw3->setObjectName("GL widget in scroll area (possibly native)");
glw3->setFormat(format);
glw3->setFixedSize(600, 600);
+ OpenGLWidget *glw3child = new OpenGLWidget(0);
+ const float glw3ClearColor[] = { 0.5f, 0.2f, 0.8f };
+ glw3child->setClearColor(glw3ClearColor);
+ glw3child->setObjectName("Child widget of GL Widget in scroll area");
+ glw3child->setFormat(format);
+ glw3child->setParent(glw3);
+ glw3child->setGeometry(500, 500, 100, 100); // lower right corner of parent
QScrollArea *sa = new QScrollArea;
sa->setWidget(glw3);
sa->setMinimumSize(100, 100);