qt6-bb10/tests/auto/gui/kernel
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
..
noqteventloop Remove winrt 2020-06-06 20:25:49 +02:00
qaction Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
qactiongroup Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
qaddpostroutine Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
qbackingstore Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qclipboard Remove winrt 2020-06-06 20:25:49 +02:00
qcursor cmake: add gui/kernel tests 2019-10-31 09:49:30 +00:00
qdrag Remove deprecated members from several QtGui classes 2020-04-27 12:21:29 +02:00
qevent cmake: add gui/kernel tests 2019-10-31 09:49:30 +00:00
qfileopenevent cmake: add gui/kernel tests 2019-10-31 09:49:30 +00:00
qguiapplication Introduce QInputDevice hierarchy; replace QTouchDevice 2020-06-16 22:06:56 +02:00
qguieventdispatcher Remove winrt 2020-06-06 20:25:49 +02:00
qguieventloop Remove winrt 2020-06-06 20:25:49 +02:00
qguimetatype Port Q_STATIC_ASSERT(_X) to static_assert 2020-06-19 19:38:23 +02:00
qguitimer Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qguivariant Get rid of QMatrix 2020-02-28 08:57:57 +01:00
qhighdpiscaling Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
qinputdevice Replace "no devices registered" warnings with qCDebug 2020-06-22 11:22:17 +02:00
qinputmethod Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qkeyevent Use QList instead of QVector in gui tests 2020-06-25 10:13:12 +02:00
qkeysequence Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qmouseevent Replace calls to deprecated QEvent accessor functions 2020-06-08 19:11:51 +02:00
qmouseevent_modal Merge remote-tracking branch 'origin/5.15' into dev 2020-02-13 18:31:40 +01:00
qopenglwindow Remove winrt 2020-06-06 20:25:49 +02:00
qpalette Merge remote-tracking branch 'origin/dev' into merge-dev 2020-01-24 13:17:33 +01:00
qpixelformat Use QList instead of QVector in gui tests 2020-06-25 10:13:12 +02:00
qrasterwindow Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qscreen Let QScreen::grabWindow's winId parameter default to 0 and add test 2020-07-01 07:09:24 +02:00
qshortcut Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
qsurfaceformat Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qtouchevent Use QList instead of QVector in gui tests 2020-06-25 10:13:12 +02:00
qwindow Use QList instead of QVector in gui tests 2020-06-25 10:13:12 +02:00
CMakeLists.txt Begin writing tst_QInputDevice autotest 2020-06-18 08:05:44 +02:00
kernel.pro Begin writing tst_QInputDevice autotest 2020-06-18 08:05:44 +02:00