Skip to content
Commit 2b739c70 authored by Marcel Wiesweg's avatar Marcel Wiesweg
Browse files

Pass a persistent QImage to QPixmap::fromImage when paint engine is raster.

For native engines, a temporary QImage can be provided, but raster will just take
and store the QImage, so a memcpy is needed.
The paint engine relevant for pixmaps can be detected by opening a painter on a
1x1 pixmap and querying the QPaintEngine. For optimization, this is done only once
per application lifetime because DImg::convertToPixmap is very time critical.

BUG: 278320
parent 7fab15b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment