+ FEM: Add icon to command
This commit is contained in:
parent
9967bbe297
commit
2a3edfcd84
|
@ -56,6 +56,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
|||
Gui::ToolBarItem* fem = new Gui::ToolBarItem(root);
|
||||
fem->setCommand("FEM");
|
||||
*fem << "Fem_NewMechanicalAnalysis"
|
||||
<< "Fem_CreateFromShape"
|
||||
<< "Fem_MechanicalMaterial"
|
||||
<< "Separator"
|
||||
<< "Fem_CreateNodesSet"
|
||||
|
|
|
@ -87,7 +87,8 @@ class _CommandNewMechanicalAnalysis:
|
|||
|
||||
class _CommandFemFromShape:
|
||||
def GetResources(self):
|
||||
return {'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_CreateFromShape", "Create FEM mesh"),
|
||||
return {'Pixmap': 'Fem_FemMesh',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_CreateFromShape", "Create FEM mesh"),
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_CreateFromShape", "Create FEM mesh from shape")}
|
||||
|
||||
def Activated(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user