kleuter 2016-04-10 17:28:38 +02:00
parent d843bfe161
commit e253ec906c

View File

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