Do not update labels and grain line if disabled.
--HG-- branch : develop
This commit is contained in:
parent
d4317a61ec
commit
fe8179d1bf
|
@ -1283,21 +1283,31 @@ void VToolDetail::AllowSelecting(bool enabled)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VToolDetail::ResetChildren(QGraphicsItem *pItem)
|
||||
{
|
||||
const VDetail detail = VAbstractTool::data.GetDetail(id);
|
||||
VTextGraphicsItem* pVGI = dynamic_cast<VTextGraphicsItem*>(pItem);
|
||||
if (pVGI != dataLabel)
|
||||
{
|
||||
if (detail.GetPatternPieceData().IsVisible())
|
||||
{
|
||||
dataLabel->Reset();
|
||||
}
|
||||
}
|
||||
if (pVGI != patternInfo)
|
||||
{
|
||||
if (detail.GetPatternInfo().IsVisible())
|
||||
{
|
||||
patternInfo->Reset();
|
||||
}
|
||||
}
|
||||
VGrainlineItem* pGLI = dynamic_cast<VGrainlineItem*>(pItem);
|
||||
if (pGLI != grainLine)
|
||||
{
|
||||
if (detail.GetGrainlineGeometry().IsVisible())
|
||||
{
|
||||
grainLine->Reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VToolDetail::UpdateAll()
|
||||
|
|
Loading…
Reference in New Issue
Block a user