Skip to content

Commit

Permalink
+ FEM: Add icon to command
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 24, 2015
1 parent 9967bbe commit 2a3edfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Mod/Fem/Gui/Workbench.cpp
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion src/Mod/Fem/MechanicalAnalysis.py
Expand Up @@ -87,7 +87,8 @@ def IsActive(self):

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):
Expand Down

0 comments on commit 2a3edfc

Please sign in to comment.