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;
{
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);
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);
}