Add point of intersection to detail.
--HG-- branch : develop
This commit is contained in:
parent
b5afc2192d
commit
4a89486f8d
|
@ -166,6 +166,14 @@ VToolDetail::VToolDetail(VDomDocument *doc, VContainer *data, const qint64 &id,
|
||||||
tool->setParentItem(this);
|
tool->setParentItem(this);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case(Tool::PointOfIntersection):{
|
||||||
|
VModelingPointOfIntersection *tool = qobject_cast<VModelingPointOfIntersection*>(tools->value(detail[i].getId()));
|
||||||
|
Q_ASSERT(tool != 0);
|
||||||
|
connect(tool, &VModelingPointOfIntersection::ChoosedTool, scene, &VMainGraphicsScene::ChoosedItem);
|
||||||
|
connect(tool, &VModelingPointOfIntersection::RemoveTool, scene, &VMainGraphicsScene::RemoveTool);
|
||||||
|
tool->setParentItem(this);
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
qWarning()<<"Get wrong tool type. Ignore.";
|
qWarning()<<"Get wrong tool type. Ignore.";
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user