summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qstring.cpp
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2017-03-31 14:08:28 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2017-04-18 08:22:38 +0000
commit6d3c4833c26cced876ed57e9f158fbade5b2679c (patch)
tree1fa9a93cf4e6d4a8f0b6a468ce8e0270a14d98ff /src/corelib/tools/qstring.cpp
parent7fffc04335fa63e754655bd15ff4286837d1737b (diff)
iOS: add support for adding mimetypes other than text on the clipboard
A QVariant can only be converted to a QByteArray if it has user type QMetaType::QByteArray or QMetaType::QString. The way it stood, we always tried to convert the mime data to a QByteArray, and then put the result into a QVariant. This would fail if the mime data contained e.g a QPixmap. This patch will inspect what kind of data the QMimeData contains, and convert it to a QVariant using the expected API. Task-number: QTBUG-57428 Change-Id: I67054424fe8c45873bab8305e7b44de939aae0fb Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/tools/qstring.cpp')
0 files changed, 0 insertions, 0 deletions