mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2024-11-22 18:52:31 +08:00
5.6.1, fix for patch for https://bugreports.qt.io/browse/QTBUG-40583
This commit is contained in:
parent
37ca19a877
commit
5619775b7b
@ -681,6 +681,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