[TD]fix HiddenLine style pref
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user