23 : mCompositionMode(
QPainter::CompositionMode_SourceOver )
39 if ( mCompositionMode == QPainter::CompositionMode_SourceOver )
50 pixmap =
sourcePixmap( Qt::LogicalCoordinates, &offset );
65 mCompositionMode = compositionMode;
void setCompositionMode(QPainter::CompositionMode compositionMode)
void setCompositionMode(CompositionMode mode)
virtual void draw(QPainter *painter) override
Called whenever source needs to be drawn.
QPixmap sourcePixmap(Qt::CoordinateSystem system, QPoint *offset, PixmapPadMode mode) const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
void drawSource(QPainter *painter)
bool sourceIsPixmap() const