356f5bbac3
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> |
||
---|---|---|
.. | ||
bearerex | ||
cocoa | ||
corelib/tools | ||
diaglib | ||
dialogs | ||
filetest | ||
foreignwindows | ||
gestures | ||
highdpi | ||
inputmethodhints | ||
keypadnavigation | ||
lance | ||
mkspecs | ||
network_remote_stresstest | ||
network_stresstest | ||
qcursor | ||
qdesktopservices | ||
qdesktopwidget | ||
qgraphicsitem | ||
qgraphicsitemgroup | ||
qgraphicslayout/flicker | ||
qhttpnetworkconnection | ||
qimagereader | ||
qlayout | ||
qlocale | ||
qmetatype | ||
qmimedatabase | ||
qnetworkaccessmanager/qget | ||
qnetworkconfiguration | ||
qnetworkconfigurationmanager | ||
qnetworkreply | ||
qopenglcontext | ||
qopengltextureblitter | ||
qopenglwidget/openglwidget | ||
qopenglwindow/multiwindow | ||
qprintdevice_dump | ||
qscreen | ||
qssloptions | ||
qsslsocket | ||
qstorageinfo | ||
qsysinfo | ||
qtabletevent | ||
qtbug-8933 | ||
qtbug-52641 | ||
qtexteditlist | ||
qtouchevent | ||
qwidget_zorder | ||
repaint | ||
shortcuts | ||
socketengine | ||
textrendering | ||
touch | ||
transientwindow | ||
unc | ||
widgetgrab | ||
widgets | ||
windowchildgeometry | ||
windowflags | ||
windowgeometry | ||
windowmodality | ||
windowtransparency | ||
xcb_gl_integration | ||
xembed-raster | ||
xembed-widgets | ||
manual.pro |