qt5base-lts/tests/auto/widgets/kernel/qapplication
Stephen Kelly c5665a182d Only quit if there are no visible widgets or windows.
We need to let the QGuiApplication determine whether quitting is appropriate
based on whether there are visible top level QWindows after the last top-level
QWidget was closed.

This solves the issue raised here: http://thread.gmane.org/gmane.comp.lib.qt.user/1880

The transientParent is the QWindow equivalent of parentWidget on QWidget, so the test
in QGuiApplication::shouldQuit is similar to the one in QApplication::shouldQuit.

Change-Id: I500eff8d5887f24415180134b3a4be3c630a896f
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
2012-06-12 04:30:18 +02:00
..
desktopsettingsaware clean up qmake-generated projects 2012-02-24 05:18:30 +01:00
modal Changed qapplication unittest to work from installation directory 2012-01-31 04:55:38 +01:00
test Skip hanging/failing tst_QApplication tests on Mac OS X 2012-02-17 11:44:29 +01:00
tmp Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
wincmdline Changed qapplication unittest to work from installation directory 2012-01-31 04:55:38 +01:00
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
heart.svg Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
qapplication.pro Changed qapplication unittest to work from installation directory 2012-01-31 04:55:38 +01:00
tst_qapplication.cpp Only quit if there are no visible widgets or windows. 2012-06-12 04:30:18 +02:00