summaryrefslogtreecommitdiff
path: root/doc/src/snippets/code/src_sql_kernel_qsqlindex.cpp
diff options
context:
space:
mode:
authorJason Barron <jason.barron@nokia.com>2010-11-23 11:13:41 +0100
committerJason Barron <jason.barron@nokia.com>2010-11-23 11:22:33 +0100
commitf9c97d3a4ab7bbd0ca2f4cf33a53025af23fc47c (patch)
tree175d7d2ef25f1df28024d6143552bce7c2d8387d /doc/src/snippets/code/src_sql_kernel_qsqlindex.cpp
parent9d9ecb86b80a57e5dcfafb71dc289ca62f64371a (diff)
downloadqt4-tools-f9c97d3a4ab7bbd0ca2f4cf33a53025af23fc47c.tar.gz
Fix QPixmap::fromImage() in the OpenVG pixmap backend.
If QPixmap::fromImage() was called with a QImage that has an alpha channel and with the 'Qt::NoOpaqueDetection' image conversion flag set, then we would always create an opaque (RGB32) pixmap. This is incorrect. The fix is to check if the source QImage has an alpha channel and if so, use sourceFormat(), otherwise use RGB32. Task-number: QT-4278 Reviewed-by: Jani Hautakangas
Diffstat (limited to 'doc/src/snippets/code/src_sql_kernel_qsqlindex.cpp')
0 files changed, 0 insertions, 0 deletions