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
cocoa Cocoa Menus: Introducing Menurama manual test 2016-08-19 03:04:28 +00:00
corelib/tools
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
foreignwindows Add a manual test for foreign windows. 2016-03-11 16:03:34 +00:00
gestures
highdpi Manual High DPI test: Create Dnd pixmap with device pixel ratio. 2016-03-16 14:40:15 +00:00
inputmethodhints
keypadnavigation
lance
mkspecs
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
qdesktopwidget
qgraphicsitem
qgraphicsitemgroup
qgraphicslayout/flicker
qhttpnetworkconnection
qimagereader
qlayout
qlocale
qmetatype
qmimedatabase
qnetworkaccessmanager/qget
qnetworkconfiguration
qnetworkconfigurationmanager
qnetworkreply
qopenglcontext
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
qscreen QScreen manual test: add MouseMonitor to test multi-screen scenarios 2016-04-08 14:49:59 +00:00
qssloptions
qsslsocket
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
qtouchevent
qwidget_zorder
repaint
shortcuts
socketengine
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
unc
widgetgrab
widgets Add a manual styles test. 2016-04-20 11:35:48 +00:00
windowchildgeometry
windowflags
windowgeometry
windowmodality
windowtransparency
xcb_gl_integration
xembed-raster
xembed-widgets
manual.pro tests/manual: add highdpi subdir to the test list 2016-07-20 06:50:02 +00:00