summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-05-02 16:05:08 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-05-02 16:05:08 (GMT)
commit20531a5d26113837cd48ecc52a70ae62fdd97606 (patch)
treeeb46ee10d2481d2c3576e014e0fd03d8140e9437 /src/opengl
parent8abaeb826c5fdb5bb872b27b3f411e63d63a12ff (diff)
parentc97917179c633fecd7c92180482ace941829ba49 (diff)
downloadQt-20531a5d26113837cd48ecc52a70ae62fdd97606.zip
Qt-20531a5d26113837cd48ecc52a70ae62fdd97606.tar.gz
Qt-20531a5d26113837cd48ecc52a70ae62fdd97606.tar.bz2
Merge branch 4.7 into qt-4.8-from-4.7
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qwindowsurface_gl.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/opengl/qwindowsurface_gl.cpp b/src/opengl/qwindowsurface_gl.cpp
index 56e2c3b..8494283 100644
--- a/src/opengl/qwindowsurface_gl.cpp
+++ b/src/opengl/qwindowsurface_gl.cpp
@@ -610,6 +610,17 @@ void QGLWindowSurface::flush(QWidget *widget, const QRegion &rgn, const QPoint &
if (!d_ptr->destructive_swap_buffers && !d_ptr->did_paint)
return;
+#ifdef Q_OS_SYMBIAN
+ if (window() != widget) {
+ // For performance reasons we don't support
+ // flushing native child widgets on Symbian.
+ // It breaks overlapping native child widget
+ // rendering in some cases but we prefer performance.
+ return;
+ }
+#endif
+
+
QWidget *parent = widget->internalWinId() ? widget : widget->nativeParentWidget();
Q_ASSERT(parent);