diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-02-09 17:12:12 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-02-10 09:07:52 (GMT) |
commit | 52e46af04738af62ad0da0daa161de707ff855e0 (patch) | |
tree | 87e6b6c88a6383760cada3afc8789411f51f0947 /src/gui/kernel/qcocoaview_mac.mm | |
parent | bd145e708d97ffb5a68bf53bbdf04b8df8ea4a9b (diff) | |
download | Qt-52e46af04738af62ad0da0daa161de707ff855e0.zip Qt-52e46af04738af62ad0da0daa161de707ff855e0.tar.gz Qt-52e46af04738af62ad0da0daa161de707ff855e0.tar.bz2 |
Cannot drag actions in Designer on Mac OS X/Cocoa.
QMimeData sub classes reimplementing the formats() might not expose the
temporary "application/x-qt-mime-type-name" mimetype used by DnD. So
make sure that the NSDragPboard PasteBoard will contain this dummy mime
type.
Task-number: QTBUG-7981
Reviewed-by: mortens
Diffstat (limited to 'src/gui/kernel/qcocoaview_mac.mm')
-rw-r--r-- | src/gui/kernel/qcocoaview_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qcocoaview_mac.mm b/src/gui/kernel/qcocoaview_mac.mm index 2c35be2..756cf92 100644 --- a/src/gui/kernel/qcocoaview_mac.mm +++ b/src/gui/kernel/qcocoaview_mac.mm @@ -1404,7 +1404,7 @@ Qt::DropAction QDragManager::drag(QDrag *o) // setup the data QMacPasteboard dragBoard((CFStringRef) NSDragPboard, QMacPasteboardMime::MIME_DND); - dragPrivate()->data->setData(QLatin1String("application/x-qt-mime-type-name"), QByteArray()); + dragPrivate()->data->setData(QLatin1String("application/x-qt-mime-type-name"), QByteArray("dummy")); dragBoard.setMimeData(dragPrivate()->data); // create the image |