Commit 3e5e946a authored by Claudio Valerio's avatar Claudio Valerio

w3c widgets workaround

parent f49e2fa7
......@@ -563,6 +563,9 @@ void UBGraphicsWidgetItem::injectInlineJavaScript()
void UBGraphicsWidgetItem::paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
if(!scene() || !scene()->renderingContext())
return;
if (scene()->renderingContext() != UBGraphicsScene::Screen)
{
painter->drawPixmap(0, 0, snapshot());
......
Markdown is supported
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