From 4a89486f8d43ab3718b58f10059ef9a2e6df8949 Mon Sep 17 00:00:00 2001 From: dismine Date: Tue, 22 Oct 2013 16:09:49 +0300 Subject: [PATCH] Add point of intersection to detail. --HG-- branch : develop --- tools/vtooldetail.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/vtooldetail.cpp b/tools/vtooldetail.cpp index 93c1c8f3d..56126fcef 100644 --- a/tools/vtooldetail.cpp +++ b/tools/vtooldetail.cpp @@ -166,6 +166,14 @@ VToolDetail::VToolDetail(VDomDocument *doc, VContainer *data, const qint64 &id, tool->setParentItem(this); break; } + case(Tool::PointOfIntersection):{ + VModelingPointOfIntersection *tool = qobject_cast(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: qWarning()<<"Get wrong tool type. Ignore."; break;