[TD]fix HiddenLine style pref

This commit is contained in:
wandererfan
2020-02-10 08:39:23 -05:00
committed by WandererFan
parent 24da86c913
commit f87bb480fc
2 changed files with 5 additions and 3 deletions

View File

@@ -1068,10 +1068,10 @@
<string>Style for hidden lines.</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>SectionLineStyle</cstring>
<cstring>HiddenLine</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/TechDraw/Standards</cstring>
<cstring>Mod/TechDraw/General</cstring>
</property>
<item>
<property name="text">

View File

@@ -91,7 +91,9 @@ Qt::PenStyle QGIEdge::getHiddenStyle()
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter().GetGroup("BaseApp")->
GetGroup("Preferences")->GetGroup("Mod/TechDraw/General");
Qt::PenStyle hidStyle = static_cast<Qt::PenStyle> (hGrp->GetInt("HiddenLine",1));
//Qt::PenStyle - NoPen, Solid, Dashed, ...
//Preferences::General - Solid, Dashed
Qt::PenStyle hidStyle = static_cast<Qt::PenStyle> (hGrp->GetInt("HiddenLine",0) + 1);
return hidStyle;
}