|
|
|
@ -184,7 +184,7 @@ void UBGraphicsPolygonItem::copyItemParameters(UBItem *copy) const |
|
|
|
|
void UBGraphicsPolygonItem::paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget) |
|
|
|
|
{ |
|
|
|
|
if(mHasAlpha && scene() && scene()->isLightBackground()) |
|
|
|
|
painter->setCompositionMode(QPainter::CompositionMode_Darken); |
|
|
|
|
painter->setCompositionMode(QPainter::CompositionMode_SourceOver); |
|
|
|
|
|
|
|
|
|
painter->setRenderHints(QPainter::Antialiasing); |
|
|
|
|
|
|
|
|
|