From 6c534941a3015ba529dd4a5c153cffa0e94af11a Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 16 Oct 2020 11:38:25 +0100 Subject: 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 Pick-to: 5.15 Change-Id: Ia09c0cbc1f0997552bd253e79d6715ebcafee0a1 Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/client/qwaylanddatasource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3