mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2024-11-26 04:31:39 +08:00
5.6.2, fix for patch for https://bugreports.qt.io/browse/QTBUG-40583
This commit is contained in:
parent
3367fa70f6
commit
94a0f0e575
@ -688,6 +688,16 @@ QT_WARNING_POP
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (NSView *)hitTest:(NSPoint)aPoint
|
||||
{
|
||||
NSView *candidate = [super hitTest:aPoint];
|
||||
if (candidate == self) {
|
||||
if (m_window && (m_window->flags() & Qt::WindowTransparentForInput))
|
||||
return nil;
|
||||
}
|
||||
return candidate;
|
||||
}
|
||||
|
||||
- (void)convertFromScreen:(NSPoint)mouseLocation toWindowPoint:(QPointF *)qtWindowPoint andScreenPoint:(QPointF *)qtScreenPoint
|
||||
{
|
||||
// Calculate the mouse position in the QWindow and Qt screen coordinate system,
|
||||
|
Loading…
Reference in New Issue
Block a user