src/gui/kernel/qcocoaview_mac.mm
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
child 7 3f74d0d4af4c
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
   642     [ta release];
   642     [ta release];
   643 }
   643 }
   644 
   644 
   645 - (void)mouseEntered:(NSEvent *)event
   645 - (void)mouseEntered:(NSEvent *)event
   646 {
   646 {
       
   647     if (qwidgetprivate->data.in_destructor)
       
   648         return;
   647     QEvent enterEvent(QEvent::Enter);
   649     QEvent enterEvent(QEvent::Enter);
   648     NSPoint windowPoint = [event locationInWindow];
   650     NSPoint windowPoint = [event locationInWindow];
   649     NSPoint globalPoint = [[event window] convertBaseToScreen:windowPoint];
   651     NSPoint globalPoint = [[event window] convertBaseToScreen:windowPoint];
   650     NSPoint viewPoint = [self convertPoint:windowPoint fromView:nil];
   652     NSPoint viewPoint = [self convertPoint:windowPoint fromView:nil];
   651     if (!qAppInstance()->activeModalWidget() || QApplicationPrivate::tryModalHelper(qwidget, 0)) {
   653     if (!qAppInstance()->activeModalWidget() || QApplicationPrivate::tryModalHelper(qwidget, 0)) {