This commit is contained in:
kleuter 2016-05-24 21:12:52 +02:00
parent 37ca19a877
commit 5619775b7b

View File

@ -681,6 +681,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,