qt5base-lts/tests/auto
Volker Hilsheimer 980795dc55 Let QScreen::grabWindow's winId parameter default to 0 and add test
The platform plugins are implemented to grab the entire screen if
no window ID is provided. They do not grab the entire virtual
screen, just the screen the method is called on.

On macOS, the implementation ignored the window parameter, and
always grabbed the entire virtual screen. This change fixes the
cocoa implementation. The test passes in local tests (with two
displays with different dpr). Since grabbing a screen returns an
image with managed colors, we need to convert it to sRGB color
spec first, otherwise displaying a grabbed image will produce
different results. This will need to be changed once Qt supports
a fully color managed flow.

The test does not cover the case where a window spans multiple
displays, since this is generally not supported at least on macOS.
The code that exists in QCocoaScreen to handle that case is
untested, but with the exception of the optimization it is also
unchanged.

Done-with: Morten Sørvig <morten.sorvig@qt.io>
Change-Id: I8ac1233e56d559230ff9e10111abfb6227431e8c
Fixes: QTBUG-84876
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2020-07-01 07:09:24 +02:00
..
cmake Remove the openglextensions module 2020-06-10 09:35:04 +02:00
concurrent Use QList instead of QVector in concurrent tests 2020-06-22 16:46:01 +02:00
corelib Use QList instead of QVector in corelib docs 2020-06-29 18:00:13 +02:00
dbus Use QList instead of QVector in dbus tests 2020-06-25 07:54:33 +02:00
gui Let QScreen::grabWindow's winId parameter default to 0 and add test 2020-07-01 07:09:24 +02:00
guiapplauncher
installed_cmake
network Move QAlertLevel and QAlertType enums into the namespace QSsl 2020-06-29 17:08:13 +02:00
opengl Get rid of QT_OPENGL_ES* 2020-04-17 11:50:24 +02:00
other Use QList instead of QVector in other tests 2020-06-25 10:14:24 +02:00
printsupport Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
shared QWindowsFontDatabase: Check preferred family names for all fonts 2019-11-29 09:31:21 +01:00
sql Use QList instead of QVector in sql tests 2020-06-25 10:14:15 +02:00
testlib Use QList instead of QVector in testlib tests 2020-06-25 10:13:58 +02:00
tools CMake: Fix tst_qmake not to hang and re-enable it 2020-06-26 22:14:09 +02:00
widgets QFileDialog: remove deprecated mode QFileDialog::DirectoryOnly 2020-06-26 22:40:34 +02:00
xml Remove QByteArray's methods taking QString and their uses 2020-06-25 09:54:16 +02:00
.prev_CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
auto.pro Remove winrt 2020-06-06 20:25:49 +02:00
CMakeLists.txt Remove winrt 2020-06-06 20:25:49 +02:00
network-settings.h Revert "QAbstractSocket: deprecate 'error' member-function" 2020-02-26 23:07:52 +03:00