From 37217c57fa5595e7cdfd7e19f34de22848dfc370 Mon Sep 17 00:00:00 2001 From: Alexander Volkov Date: Thu, 25 Jan 2018 15:18:07 +0300 Subject: Introduce QImage{Reader,Writer}::imageFormatsForMimeType() It can be used if, for example, you get an image MIME type from the user, and you want to find the appropriate format for loading or saving this image. Task-number: QTBUG-49714 Change-Id: Iae5a7e9d658d6c3d1cd750a8bbc279f1812f99df Reviewed-by: Eirik Aavitsland --- src/gui/image/qimagewriter.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/image/qimagewriter.h') diff --git a/src/gui/image/qimagewriter.h b/src/gui/image/qimagewriter.h index fd1fdd07e8..29c06ccdd2 100644 --- a/src/gui/image/qimagewriter.h +++ b/src/gui/image/qimagewriter.h @@ -116,6 +116,7 @@ public: static QList supportedImageFormats(); static QList supportedMimeTypes(); + static QList imageFormatsForMimeType(const QByteArray &mimeType); private: Q_DISABLE_COPY(QImageWriter) -- cgit v1.2.3