QQuickWidget: handle resize to empty size
authorPaul Olav Tvete <paul.tvete@digia.com>
Fri, 7 Mar 2014 15:46:51 +0000 (16:46 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 10 Mar 2014 09:34:59 +0000 (10:34 +0100)
commit2df6031b5935fafcada04bc15b281c63bdbfabf9
treefbb4069faf8990ce94e8db79fb78eb8ca5196018
parent4c6c6d9a1743acf712b83e4dc9330a36afa70f80
QQuickWidget: handle resize to empty size

Resizing to an empty size needs to be handled as if the widget was
hidden. Restoring to a non-empty size is like a show, except that we
are rendering synchronously.

Task-number: QTBUG-37046
Change-Id: I572e4763c4a28bfe7347868e109acca5b357db50
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/quickwidgets/qquickwidget.cpp
src/quickwidgets/qquickwidget_p.h