Hide objects before they need.
--HG-- branch : develop
This commit is contained in:
parent
d9a41b8453
commit
a1bb140bb5
|
@ -178,6 +178,7 @@ void Visualization::DrawLine(QGraphicsLineItem *lineItem, const QLineF &line, co
|
||||||
|
|
||||||
lineItem->setPen(QPen(color, qApp->toPixel(qApp->widthHairLine())/factor, style));
|
lineItem->setPen(QPen(color, qApp->toPixel(qApp->widthHairLine())/factor, style));
|
||||||
lineItem->setLine(line);
|
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->setPen(QPen(color, qApp->toPixel(qApp->widthMainLine())/factor, style, cap));
|
||||||
pathItem->setPath(path);
|
pathItem->setPath(path);
|
||||||
|
pathItem->setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,6 +101,7 @@ protected:
|
||||||
item->setPen(QPen(color, qApp->toPixel(qApp->widthHairLine())/factor));
|
item->setPen(QPen(color, qApp->toPixel(qApp->widthHairLine())/factor));
|
||||||
item->setZValue(1);
|
item->setZValue(1);
|
||||||
item->setFlags(QGraphicsItem::ItemStacksBehindParent);
|
item->setFlags(QGraphicsItem::ItemStacksBehindParent);
|
||||||
|
item->setVisible(false);
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user