Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/kernel/qcocoaview_mac.mm

    r651 r769  
    521521{
    522522    if (QApplicationPrivate::graphicsSystem() != 0) {
    523         if (QWidgetBackingStore *bs = qwidgetprivate->maybeBackingStore())
    524             bs->markDirty(qwidget->rect(), qwidget);
    525         qwidgetprivate->syncBackingStore(qwidget->rect());
    526         return;
     523        if (QWidgetBackingStore *bs = qwidgetprivate->maybeBackingStore()) {
     524            // Drawing is handled on the window level
     525            // See qcocoasharedwindowmethods_mac_p.
     526            return;
     527        }
    527528    }
    528529    CGContextRef cg = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
     
    645646- (void)mouseEntered:(NSEvent *)event
    646647{
     648    if (qwidgetprivate->data.in_destructor)
     649        return;
    647650    QEvent enterEvent(QEvent::Enter);
    648651    NSPoint windowPoint = [event locationInWindow];
     
    826829    }
    827830
     831#ifndef QT_NO_WHEELEVENT
    828832    if (deltaX != 0) {
    829833        QWheelEvent qwe(qlocal, qglobal, deltaX, buttons, keyMods, Qt::Horizontal);
     
    866870        }
    867871    }
     872#endif //QT_NO_WHEELEVENT
     873
    868874    if (!wheelOK) {
    869875        return [super scrollWheel:theEvent];
     
    14021408    // setup the data
    14031409    QMacPasteboard dragBoard((CFStringRef) NSDragPboard, QMacPasteboardMime::MIME_DND);
    1404     dragPrivate()->data->setData(QLatin1String("application/x-qt-mime-type-name"), QByteArray());
     1410    dragPrivate()->data->setData(QLatin1String("application/x-qt-mime-type-name"), QByteArray("dummy"));
    14051411    dragBoard.setMimeData(dragPrivate()->data);
    14061412
Note: See TracChangeset for help on using the changeset viewer.