]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Using the workshop "Delete" action for the sketch operation features
authornds <natalia.donis@opencascade.com>
Wed, 4 Mar 2015 11:25:20 +0000 (14:25 +0300)
committernds <natalia.donis@opencascade.com>
Wed, 4 Mar 2015 11:25:20 +0000 (14:25 +0300)
src/PartSet/PartSet_Module.cpp

index ec85146bc7249b2739cf6e6a5972d8da26db9baf..912fdebf4ee6a82f6cfda9eadc6f4eed93d607e5 100644 (file)
@@ -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<QAction*>(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);
   }