Hide objects before they need.

--HG--
branch : develop
This commit is contained in:
dismine 2014-12-24 15:13:13 +02:00
parent d9a41b8453
commit a1bb140bb5
2 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,7 @@ void Visualization::DrawLine(QGraphicsLineItem *lineItem, const QLineF &line, co
lineItem->setPen(QPen(color, qApp->toPixel(qApp->widthHairLine())/factor, style));
lineItem->setLine(line);
lineItem->setVisible(true);
}
//---------------------------------------------------------------------------------------------------------------------
@ -188,4 +189,5 @@ void Visualization::DrawPath(QGraphicsPathItem *pathItem, const QPainterPath &pa
pathItem->setPen(QPen(color, qApp->toPixel(qApp->widthMainLine())/factor, style, cap));
pathItem->setPath(path);
pathItem->setVisible(true);
}

View File

@ -101,6 +101,7 @@ protected:
item->setPen(QPen(color, qApp->toPixel(qApp->widthHairLine())/factor));
item->setZValue(1);
item->setFlags(QGraphicsItem::ItemStacksBehindParent);
item->setVisible(false);
return item;
}
private: