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/qclipboard_mac.cpp

    r651 r769  
    389389        QStringList formats = mime_src->formats();
    390390
     391#ifdef QT_MAC_USE_COCOA
     392        // QMimeData sub classes reimplementing the formats() might not expose the
     393        // temporary "application/x-qt-mime-type-name" mimetype. So check the existence
     394        // of this mime type while doing drag and drop.
     395        QString dummyMimeType(QLatin1String("application/x-qt-mime-type-name"));
     396        if (!formats.contains(dummyMimeType)) {
     397            QByteArray dummyType = mime_src->data(dummyMimeType);
     398            if (!dummyType.isEmpty()) {
     399                formats.append(dummyMimeType);
     400            }
     401        }
     402#endif
    391403        for(int f = 0; f < formats.size(); ++f) {
    392404            QString mimeType = formats.at(f);
Note: See TracChangeset for help on using the changeset viewer.