Align windowShown flag with qml renderer state
authorCharles Yin <charles.yin@nokia.com>
Tue, 12 Jun 2012 04:46:12 +0000 (14:46 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 14 Jun 2012 00:44:19 +0000 (02:44 +0200)
commit4276def0405d22e7cbfb75465a42b5a68e7472fe
tree05877ad9a2f64eb09af4ec597a15f59072f26327
parent5eeffd021996f1bae32973681aa4db3e354aacdb
Align windowShown flag with qml renderer state

Previously, we set windowShown to true once the window is active,
this is not enough for some tests as the initial rendering may not
be finished yet and will give the wrong result for some tests which
require reading back pixels.

Change-Id: Idd67329d207aaf1734a795b40a5bcc40093cf6b8
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qmltest/quicktest.cpp
tests/auto/qmltest/pixel/tst_pixel.qml