From 85fa39cf790841fcbd0de31ae12424b2ed198d44 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 22 Jan 2014 12:53:12 +0100 Subject: [PATCH] Document Qt::NoFormatConversion The Qt::ImageConversionFlag Qt::NoFormatConversion is necessary to generate QPixmaps not in ARGB32PM which can be useful when not used as a paint device. Task-number: QTBUG-36031 Change-Id: Ic2d3ccd59285dd18890f07f3205a2a219ce3aa40 Reviewed-by: Gunnar Sletta --- src/corelib/global/qnamespace.qdoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index f05cd0fd7e..2cadd07f8f 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -699,9 +699,10 @@ retain an alpha channel for some other reason. If the image has no alpha channel this flag has no effect. - \omitvalue NoFormatConversion Don't do any format conversions on the image. + \value NoFormatConversion Don't do any format conversions on the image. Can be useful when converting a QImage to a QPixmap for a one-time - rendering operation for example. + rendering operation for example. Note that a QPixmap not in the + preferred format will be much slower as a paint device. */ /*!