This commit is contained in:
kleuter 2017-12-04 14:41:02 +01:00
parent 5bf1d25d9d
commit f8fe35c75b

View File

@ -688,6 +688,16 @@ QT_WARNING_POP
return YES; 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 - (void)convertFromScreen:(NSPoint)mouseLocation toWindowPoint:(QPointF *)qtWindowPoint andScreenPoint:(QPointF *)qtScreenPoint
{ {
// Calculate the mouse position in the QWindow and Qt screen coordinate system, // Calculate the mouse position in the QWindow and Qt screen coordinate system,