Skip to content

Commit

Permalink
FEM: Show material description below combo box
Browse files Browse the repository at this point in the history
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information
PrzemoF authored and wwmayer committed Apr 14, 2015
1 parent 97f5f76 commit 343225d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/Fem/MechanicalMaterial.py
Expand Up @@ -188,6 +188,10 @@ def chooseMat(self, index):
self.obj.Material = Material.importFCMat(str(name))
self.form.comboBox_MaterialsInDir.setCurrentIndex(index)
self.set_mat_params_in_combo_box(self.obj.Material)
gen_mat_desc = ""
if 'General_description' in self.obj.Material:
gen_mat_desc = self.obj.Material['General_description']
self.form.l_mat_description.setText(gen_mat_desc)
self.print_mat_data(self.obj.Material)

def add_mat_dir(self, mat_dir, icon):
Expand Down
10 changes: 10 additions & 0 deletions src/Mod/Fem/MechanicalMaterial.ui
Expand Up @@ -117,6 +117,16 @@
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="l_mat_description">
<property name="text">
<string>Material Description</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
Expand Down

0 comments on commit 343225d

Please sign in to comment.