Stabilize tst_qfontdialog test case.
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Mon, 22 Oct 2012 12:03:06 +0000 (15:03 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 23 Oct 2012 10:03:50 +0000 (12:03 +0200)
commit32cbcca91122c61a1dddf45f23916424cd65829b
treef78f87516e962dd9b2c86b5eba1fe5dd77a30d0e
parent7abf6234436aee377d15f9f2f1d37ee7daf7464e
Stabilize tst_qfontdialog test case.

The delayed quit signal used as failsafe to ensure exit from event
loops interfere with later test if the test case works normally,
as closing the last toplevel window will also exit the event loop.

Fixed by stopping the quit timer if nested application exec loop
is exited.

Change-Id: If87655f1f28f50e27a64f3430c9f65bb3ab7dd70
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Janne Anttila <janne.anttila@digia.com>
tests/auto/widgets/dialogs/qfontdialog/tst_qfontdialog.cpp