qt5base-lts/tests/auto/widgets
Tor Arne Vestbø 09cc63d425 tst_qapplication: Prevent desktopaware test from deactivating main test
Applications on macOS are automatically activated (put into the foreground),
when launched from the Finder, or via 'open' on the command line. But when
launched from the terminal, e.g. foo.app/Contents/MacOS/foo, the application
will launch in the background (inactive).

In Qt we override this behavior, activating the app even when launched from
the terminal, as a convenience, as long as the application is a GUI application.

Unfortunately this means that when tst_qapplication launches a subprocess that
is a GUI app, it will steal activation from tst_qapplication, which in turn
will break tests that later try to activate a window and check that the window
is then active. The window will not be active until the application is active.

We can work around it by preventing Qt from activating the application, but
ideally we'd find a better solution to this, as we don't want to sprinkle
overrides all over our tests.

Fixes: QTBUG-90699
Pick-to: 6.1 6.0 5.15
Change-Id: If53a86548002b739df0c0a7153d6244924a4a205
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2021-02-15 14:20:08 +01:00
..
dialogs Windows: Fix dialog moving up after closing/reshowing 2021-01-15 18:05:19 +01:00
effects Remove the qmake project files 2021-01-07 15:32:28 +01:00
graphicsview Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
itemviews Stabilize tst_QListView::internalDragDropMove() on X11 2021-01-27 14:00:57 +00:00
kernel tst_qapplication: Prevent desktopaware test from deactivating main test 2021-02-15 14:20:08 +01:00
styles Set the PlaceholderText color in the palette from the stylesheet as well 2021-01-12 20:24:28 +01:00
util Remove the qmake project files 2021-01-07 15:32:28 +01:00
widgets QPlainTextEdit: adjust scroll bars when showing up 2021-02-09 20:00:59 +08:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00