+ FEM: Add icon to command

This commit is contained in:
wmayer 2015-04-24 21:45:34 +02:00
parent 9967bbe297
commit 2a3edfcd84
2 changed files with 3 additions and 1 deletions

View File

@ -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"

View File

@ -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):