Skip to content

Commit

Permalink
[TD]fix HiddenLine style pref
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Feb 14, 2020
1 parent d6f9a6d commit b4943c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/DlgPrefsTechDraw3.ui
Expand Up @@ -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">
Expand Down
4 changes: 3 additions & 1 deletion src/Mod/TechDraw/Gui/QGIEdge.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit b4943c1

Please sign in to comment.