List .pbm and .pgm as supported writable image file formats.

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>
This commit is contained in:
Kim Motoyoshi Kalland 2012-07-16 16:46:08 +02:00 committed by Qt by Nokia
parent 2718f2e31f
commit 5762da38b9

View 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";