Fix SizeRootObjectToView mode
authorAlan Alpert <alan.alpert@nokia.com>
Tue, 1 Nov 2011 04:16:09 +0000 (14:16 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 2 Nov 2011 07:25:58 +0000 (08:25 +0100)
commit685a00d7776de64366a4aa60bf154bea99c9026d
tree7d80be42c34c0421ea574a7a69b8014eee636a05
parent62af8d46b2d1b0bb1ef79e5a119bd05e5a83aad6
Fix SizeRootObjectToView mode

It is not yet possible to check if the window has been resized (after
the refactor branch merge). Instead, resize to rootObject regardless
only if the current view has no visible area.

Task-number: QTBUG-22019
Change-Id: I158aaa11862529745ad389e1cbadb6a0ad18c742
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/declarative/items/qquickview.cpp
src/declarative/items/qquickview_p.h
tests/auto/declarative/qquickview/tst_qquickview.cpp