[TechDraw] Simplify retrievement of user preferences
for all TechDraw files
This commit is contained in:
committed by
WandererFan
parent
50c2b7e9d8
commit
5d05acc87e
@@ -942,12 +942,7 @@ int QGIViewBalloon::prefDefaultArrow() const { return Preferences::balloonArrow(
|
||||
//when would you want a crooked pyramid?
|
||||
bool QGIViewBalloon::prefOrthoPyramid() const
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication()
|
||||
.GetUserParameter()
|
||||
.GetGroup("BaseApp")
|
||||
->GetGroup("Preferences")
|
||||
->GetGroup("Mod/TechDraw/Decorations");
|
||||
bool ortho = hGrp->GetBool("PyramidOrtho", true);
|
||||
bool ortho = Preferences::getPreferenceGroup("Decorations")->GetBool("PyramidOrtho", true);
|
||||
return ortho;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user