From 823211f53ae99767b4680bbf65894f6413622a60 Mon Sep 17 00:00:00 2001 From: Gennady Pospelov <g.pospelov@fz-juelich.de> Date: Fri, 4 Sep 2015 13:42:57 +0200 Subject: [PATCH] Disabled layer thickness in GUI for air and substrate layers. --- GUI/coregui/Models/MultiLayerItem.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GUI/coregui/Models/MultiLayerItem.cpp b/GUI/coregui/Models/MultiLayerItem.cpp index 06ba6adf799..1f426a5b0a7 100644 --- a/GUI/coregui/Models/MultiLayerItem.cpp +++ b/GUI/coregui/Models/MultiLayerItem.cpp @@ -54,6 +54,12 @@ void MultiLayerItem::updateLayers() } else { childAt(i)->setPropertyAppearance(LayerItem::P_ROUGHNESS, PropertyAttribute::VISIBLE); } + + if(i==0 || i==childItemCount()-1) { + childAt(i)->setPropertyAppearance(LayerItem::P_THICKNESS, PropertyAttribute::DISABLED); + } else { + childAt(i)->setPropertyAppearance(LayerItem::P_THICKNESS, PropertyAttribute::VISIBLE); + } } } -- GitLab