summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2020-10-16 11:38:25 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-10-19 12:33:47 +0000
commit51f0466e01df52eb07e589006744f405dfd40bdd (patch)
tree0646303c19c2bfc2788d8c5d74d489f8437017fb
parent2a77384a4f2485364cefeb825eea63daf13dd3b1 (diff)
Client: Advertise all supported mime types
Qt has some internal mime types that can be translated to known types. For example the mime type application/x-qt-image Qt can convert to any supported image format. The data_source_send method already converts (via QWaylandMimeHelper::getByteArray) However we previously only advertised the list of mimetypes explicitly set by the application. This brings us in line with the X11 QPA. Fixes: QTBUG-87657 Change-Id: Ia09c0cbc1f0997552bd253e79d6715ebcafee0a1 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> (cherry picked from commit 6c534941a3015ba529dd4a5c153cffa0e94af11a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/client/qwaylanddatasource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylanddatasource.cpp b/src/client/qwaylanddatasource.cpp
index ea76943a7..f45122fb9 100644
--- a/src/client/qwaylanddatasource.cpp
+++ b/src/client/qwaylanddatasource.cpp
@@ -60,7 +60,7 @@ QWaylandDataSource::QWaylandDataSource(QWaylandDataDeviceManager *dataDeviceMana
{
if (!mimeData)
return;
- const auto formats = mimeData->formats();
+ const auto formats = QInternalMimeData::formatsHelper(mimeData);
for (const QString &format : formats) {
offer(format);
}