QPA: update backingstore also when moving QWindows
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>
Fri, 30 Nov 2012 11:39:23 +0000 (12:39 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 30 Nov 2012 17:28:14 +0000 (18:28 +0100)
commit1cce35472a84aa81cec2ac42a6e0843ef92af267
tree6c24c6b51e857539273dff9fef8e71584611a9d3
parent27a945dccd7dbe6449427f85c8ebdca7b0f654f8
QPA: update backingstore also when moving QWindows

When moving QMdiSubWindows that contains native widgets (e.g QGLWidget)
inside a QMdiArea, garbage is drawn to the screen. The reason is
that since we use native QWindow backed widgets, QPA will assume
that it does not need to update/scroll the backingstore. But since the
backingstore can be shared among several windows, we need to do this to
ensure that exposed areas behind the moved QWindow will be updated.

Change-Id: I35f4d4069a73ab6cd6d610e25c176c752789a927
Task-number: QTBUG-26162
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/widgets/kernel/qwidget_qpa.cpp