diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2012-07-16 16:46:08 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-16 21:36:28 +0200 |
commit | 5762da38b989e65dedd3d04e258615a9558e4bf1 (patch) | |
tree | a59f4c39914d07b0d9150a13ec15ae5c10c9914a | |
parent | 2718f2e31f6c03afc80b18d3ade1162047a60554 (diff) |
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>
-rw-r--r-- | src/gui/image/qimagewriter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/image/qimagewriter.cpp b/src/gui/image/qimagewriter.cpp index ba647b76f5..ef946277f1 100644 --- a/src/gui/image/qimagewriter.cpp +++ b/src/gui/image/qimagewriter.cpp @@ -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"; |