mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2024-11-22 19:00:04 +08:00
5.6.3, fix for https://bugreports.qt.io/browse/QTBUG-40583
This commit is contained in:
parent
5bf1d25d9d
commit
f8fe35c75b
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user