[TD]fix HiddenLine style pref

This commit is contained in:
wandererfan
2020-02-14 07:44:56 -05:00
committed by WandererFan
parent d6f9a6ddff
commit b4943c1f08
2 changed files with 5 additions and 3 deletions
+2 -2
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">
+3 -1
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;
}