qmlviewer resizes the root object multiple times.
authorMartin Jones <martin.jones@nokia.com>
Tue, 26 Jul 2011 03:48:45 +0000 (13:48 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jul 2011 06:00:31 +0000 (08:00 +0200)
commite06211e4c67c0c7470fdac86c3fa6d50792516c5
treefc672331a442d93f714c962efc47cbeb6b23dd3c
parente5be1482c81fb3a502e2e5f8e56f11f182c2adab
qmlviewer resizes the root object multiple times.

In SizeRootObjectToView mode on initial load the view was set to
root object size, then the sceneResized() slot would resize back,
then we would finally reset back to the correct value in
statusChanged(true).  Now react directly to the initial size being
set.

Change-Id: Ib6977cf7bad3fe79b9ac80bb6d916fb0f57c5f5e
Fixes: QTBUG-16499
Reviewed-on: http://codereview.qt.nokia.com/2148
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qtquick1/util/qdeclarativeview.cpp
src/qtquick1/util/qdeclarativeview.h
tests/auto/qtquick1/qdeclarativeviewer/tst_qdeclarativeviewer.cpp
tools/qmlviewer/qmlruntime.cpp
tools/qmlviewer/qmlruntime.h