Changeset 769 for trunk/src/gui/kernel/qcocoaview_mac.mm
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/kernel/qcocoaview_mac.mm
r651 r769 521 521 { 522 522 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 } 527 528 } 528 529 CGContextRef cg = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort]; … … 645 646 - (void)mouseEntered:(NSEvent *)event 646 647 { 648 if (qwidgetprivate->data.in_destructor) 649 return; 647 650 QEvent enterEvent(QEvent::Enter); 648 651 NSPoint windowPoint = [event locationInWindow]; … … 826 829 } 827 830 831 #ifndef QT_NO_WHEELEVENT 828 832 if (deltaX != 0) { 829 833 QWheelEvent qwe(qlocal, qglobal, deltaX, buttons, keyMods, Qt::Horizontal); … … 866 870 } 867 871 } 872 #endif //QT_NO_WHEELEVENT 873 868 874 if (!wheelOK) { 869 875 return [super scrollWheel:theEvent]; … … 1402 1408 // setup the data 1403 1409 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")); 1405 1411 dragBoard.setMimeData(dragPrivate()->data); 1406 1412
Note:
See TracChangeset
for help on using the changeset viewer.