summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qclipboard_mac.cpp
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ulattil@nokia.com>2009-10-28 09:55:19 (GMT)
committerPrasanth Ullattil <prasanth.ulattil@nokia.com>2009-10-28 11:42:49 (GMT)
commit3c2c1c21b41f600eeaa056b66fe44d5017f9b500 (patch)
tree2cac51b8deab69cb1ce1bfb8962b6a366fe15728 /src/gui/kernel/qclipboard_mac.cpp
parent4470801f73b86d3ee06a866fbbdafcaeb9f294a6 (diff)
downloadQt-3c2c1c21b41f600eeaa056b66fe44d5017f9b500.zip
Qt-3c2c1c21b41f600eeaa056b66fe44d5017f9b500.tar.gz
Qt-3c2c1c21b41f600eeaa056b66fe44d5017f9b500.tar.bz2
Drag and drop of plain text doesnot work on Mac.
While querying for the text in the pasteboard, it was looking in the wrong place. The helper function qt_mac_get_pasteboardString() always searched in generalPasteboard instead of the pasteboard referred by the QMacPasteboard. Reviewed-by: MortenS
Diffstat (limited to 'src/gui/kernel/qclipboard_mac.cpp')
-rw-r--r--src/gui/kernel/qclipboard_mac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qclipboard_mac.cpp b/src/gui/kernel/qclipboard_mac.cpp
index 3db647b..8892269 100644
--- a/src/gui/kernel/qclipboard_mac.cpp
+++ b/src/gui/kernel/qclipboard_mac.cpp
@@ -532,7 +532,7 @@ QMacPasteboard::retrieveData(const QString &format, QVariant::Type) const
// Try to get the NSStringPboardType from NSPasteboard, newlines are mapped
// correctly (as '\n') in this data. The 'public.utf16-plain-text' type
// usually maps newlines to '\r' instead.
- QString str = qt_mac_get_pasteboardString();
+ QString str = qt_mac_get_pasteboardString(paste);
if (!str.isEmpty())
return str;
}