List .pbm and .pgm as supported writable image file formats.
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>
Mon, 16 Jul 2012 14:46:08 +0000 (16:46 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 16 Jul 2012 19:36:28 +0000 (21:36 +0200)
QImageWriter can write .pbm and .pgm files, but didn't list them
among its supported image file formats.

Task-number: QTBUG-22958
Change-Id: I777c7cd9a4b56fcf313248a29a917e594a5e4477
Reviewed-by: aavit <qt_aavit@ovi.com>
src/gui/image/qimagewriter.cpp

index ba647b7..ef94627 100644 (file)
@@ -691,6 +691,8 @@ void supportedImageHandlerFormats(QFactoryLoader *loader,
     \row    \li JPG    \li Joint Photographic Experts Group
     \row    \li JPEG   \li Joint Photographic Experts Group
     \row    \li PNG    \li Portable Network Graphics
+    \row    \li PBM    \li Portable Bitmap
+    \row    \li PGM    \li Portable Graymap
     \row    \li PPM    \li Portable Pixmap
     \row    \li XBM    \li X11 Bitmap
     \row    \li XPM    \li X11 Pixmap
@@ -710,7 +712,7 @@ QList<QByteArray> QImageWriter::supportedImageFormats()
     QSet<QByteArray> formats;
     formats << "bmp";
 #ifndef QT_NO_IMAGEFORMAT_PPM
-    formats << "ppm";
+    formats << "pbm" << "pgm" << "ppm";
 #endif
 #ifndef QT_NO_IMAGEFORMAT_XBM
     formats << "xbm";