1aede2d7fc
It had no effect because of an explicit check for NoBrush. However the default in QBitmap is (unfortunately) QBrush(color0), rather than NoBrush, so the brush must be updated when calling setBrush(NoBrush). I suppose the real issue is that lastBrush is default-constructed in QRasterPaintEngine, rather than starting with the brush from QPainter, which is QBrush(color0) for the case of the bitmap. But no reason to special case NoBrush here anyway. Task-Number: QTBUG-38781 Change-Id: I9996ac12bf628920cfaf0de9c886f637a336028b Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com> |
||
---|---|---|
.. | ||
drawEllipse | ||
drawLine_rop_bitmap | ||
drawPixmap_rop | ||
drawPixmap_rop_bitmap | ||
utils/createImages | ||
.gitignore | ||
qpainter.pro | ||
task217400.png | ||
tst_qpainter.cpp |