From: nds Date: Wed, 4 Mar 2015 11:25:20 +0000 (+0300) Subject: Using the workshop "Delete" action for the sketch operation features X-Git-Tag: V_1.1.0~147^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9a4009e0551f735870971dbaf6458d346ef9fe47;p=modules%2Fshaper.git Using the workshop "Delete" action for the sketch operation features --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index ec85146bc..912fdebf4 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -299,7 +299,7 @@ void PartSet_Module::addViewerItems(QMenu* theMenu) const XGUI_Workshop* aWorkshop = aConnector->workshop(); QAction* anAction = aWorkshop->contextMenuMgr()->action("DELETE_CMD"); theMenu->addAction(anAction); - theMenu->addAction(action("DELETE_PARTSET_CMD")); + //theMenu->addAction(action("DELETE_PARTSET_CMD")); } } bool isConstruction; @@ -492,8 +492,8 @@ void PartSet_Module::createActions() { QAction* anAction; - anAction = new QAction(QIcon(":pictures/delete.png"), tr("Delete"), this); - addAction("DELETE_PARTSET_CMD", anAction); + //anAction = new QAction(QIcon(":pictures/delete.png"), tr("Delete"), this); + //addAction("DELETE_PARTSET_CMD", anAction); anAction = new QAction(tr("Construction"), this); anAction->setCheckable(true); @@ -521,9 +521,9 @@ void PartSet_Module::onAction(bool isChecked) QAction* aAction = static_cast(sender()); QString anId = aAction->data().toString(); - if (anId == "DELETE_PARTSET_CMD") { - deleteObjects(); - } + //if (anId == "DELETE_PARTSET_CMD") { + // deleteObjects(); + //} if (anId == "CONSTRUCTION_CMD") { mySketchMgr->setConstruction(isChecked); }