qt5base-lts/tests/manual
Morten Johan Sørvig 356f5bbac3 Cocoa: Make child window cursors work correctly
The existing cursor logic had a couple of issues:

- It made the faulty assumption that we could not use
the NSWindow invalidateCursorRectsForView API for
child NSViews.

- It used NSWindow invalidateCursorRectsForView and
NSView resetCursorRects. This API has been replaced
by the more general NSTrackingArea API.

- It did not implement falling back to the parent
window cursor if the current window has no cursor
set.

Document that QWindow cursors work the same way as
QWidget cursors in that a QWindow with no set cursor
will fall back to the parent window cursor.

Change the cocoa platform code to use NSTrackingArea
exclusively and implement NSView cursorUpdate which
sets the cursor. Handle immediate change on QWindow::
setCursor() manually.

Add QWindow::effectiveWindowCursor() and
applyEffectiveWindowCursor() which finds the correct
window cursor.

Add a manual test for the child window, child widget,
and QWidget::createWindowChild cases.

Task-number: QTBUG-33479
Task-number: QTBUG-52023
Change-Id: I0370e11bbadb2da95e8632e61be6228ec2cd5e9d
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2016-11-08 12:30:45 +00:00
..
bearerex Update copyright headers 2015-02-11 06:49:51 +00:00
cocoa Cocoa Menus: Introducing Menurama manual test 2016-08-19 03:04:28 +00:00
corelib/tools Update copyright headers 2015-02-11 06:49:51 +00:00
diaglib Diaglib: Extend class information for QWidget dumps. 2016-06-04 18:49:27 +00:00
dialogs Manual dialog test: Build also when QtPrintSupport is not available. 2015-12-03 15:55:47 +00:00
filetest Update copyright headers 2015-02-11 06:49:51 +00:00
foreignwindows Add a manual test for foreign windows. 2016-03-11 16:03:34 +00:00
gestures Update copyright headers 2015-02-11 06:49:51 +00:00
highdpi Manual High DPI test: Create Dnd pixmap with device pixel ratio. 2016-03-16 14:40:15 +00:00
inputmethodhints Update copyright headers 2015-02-11 06:49:51 +00:00
keypadnavigation Update copyright headers 2015-02-11 06:49:51 +00:00
lance Update copyright headers 2015-02-11 06:49:51 +00:00
mkspecs Fixed license headers 2015-02-17 18:46:09 +00:00
network_remote_stresstest Resolve build failure in network stress tests. 2016-04-07 07:22:54 +00:00
network_stresstest Resolve build failure in network stress tests. 2016-04-07 07:22:54 +00:00
qcursor Cocoa: Make child window cursors work correctly 2016-11-08 12:30:45 +00:00
qdesktopservices Update copyright headers 2015-02-11 06:49:51 +00:00
qdesktopwidget Update copyright headers 2015-02-11 06:49:51 +00:00
qgraphicsitem Update copyright headers 2015-02-11 06:49:51 +00:00
qgraphicsitemgroup Update copyright headers 2015-02-11 06:49:51 +00:00
qgraphicslayout/flicker Update copyright headers 2015-02-11 06:49:51 +00:00
qhttpnetworkconnection Update copyright headers 2015-02-11 06:49:51 +00:00
qimagereader Update copyright headers 2015-02-11 06:49:51 +00:00
qlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qlocale Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
qmetatype Update copyright headers 2015-02-11 06:49:51 +00:00
qmimedatabase Add manual test for QMimeDatabase. 2015-02-25 14:06:20 +00:00
qnetworkaccessmanager/qget Update copyright headers 2015-02-11 06:49:51 +00:00
qnetworkconfiguration Update copyright headers 2015-02-11 06:49:51 +00:00
qnetworkconfigurationmanager Update copyright headers 2015-02-11 06:49:51 +00:00
qnetworkreply Update copyright headers 2015-02-11 06:49:51 +00:00
qopenglcontext Update copyright headers 2015-02-11 06:49:51 +00:00
qopengltextureblitter Add support for TEXTURE_EXTERNAL_OES in the internal texture blitter 2015-10-21 13:32:42 +00:00
qopenglwidget/openglwidget Fix clipRect interpretation in composited backingstores 2016-02-01 08:49:26 +00:00
qopenglwindow/multiwindow multiwindow: Base vsync debug output on actual surface format 2016-09-19 00:42:53 +00:00
qprintdevice_dump Update copyright headers 2015-02-11 06:49:51 +00:00
qscreen QScreen manual test: add MouseMonitor to test multi-screen scenarios 2016-04-08 14:49:59 +00:00
qssloptions Update copyright headers 2015-02-11 06:49:51 +00:00
qsslsocket Update copyright headers 2015-02-11 06:49:51 +00:00
qstorageinfo Print the QStorageInfo dump on test start 2016-05-14 01:21:27 +00:00
qsysinfo Merge the multiple implementations of getting the local hostname 2015-08-13 16:34:51 +00:00
qtabletevent Tablet device_information manual test: show wheel events received 2016-04-26 13:10:52 +00:00
qtbug-8933 decruft project files 2016-05-10 11:12:04 +00:00
qtbug-52641 QPdf: Force miter limit into valid range 2016-04-28 20:10:17 +00:00
qtexteditlist Update copyright headers 2015-02-11 06:49:51 +00:00
qtouchevent Update copyright headers 2015-02-11 06:49:51 +00:00
qwidget_zorder Update copyright headers 2015-02-11 06:49:51 +00:00
repaint Update copyright headers 2015-02-11 06:49:51 +00:00
shortcuts Update copyright headers 2015-02-11 06:49:51 +00:00
socketengine Update copyright headers 2015-02-11 06:49:51 +00:00
textrendering remove redundant OTHER_FILES assignments 2016-05-02 18:34:47 +00:00
touch Manual touch test: Add color for Qt::MouseEventSynthesizedByApplication. 2016-05-04 09:50:50 +00:00
transientwindow Update copyright headers 2015-02-11 06:49:51 +00:00
unc Update copyright headers 2015-02-11 06:49:51 +00:00
widgetgrab Update copyright headers 2015-02-11 06:49:51 +00:00
widgets Add a manual styles test. 2016-04-20 11:35:48 +00:00
windowchildgeometry Update copyright headers 2015-02-11 06:49:51 +00:00
windowflags Update copyright headers 2015-02-11 06:49:51 +00:00
windowgeometry Update copyright headers 2015-02-11 06:49:51 +00:00
windowmodality Update copyright headers 2015-02-11 06:49:51 +00:00
windowtransparency Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
xcb_gl_integration Fixed license headers 2015-02-17 18:46:09 +00:00
xembed-raster Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
xembed-widgets Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
manual.pro tests/manual: add highdpi subdir to the test list 2016-07-20 06:50:02 +00:00