Sync code default values with Pref defaults
This commit is contained in:
@@ -90,7 +90,7 @@ QPainterPath QGIArrow::makeFilledTriangle(double length, double width, bool flip
|
||||
if (!flipped) {
|
||||
length *= -1;
|
||||
}
|
||||
|
||||
|
||||
QPainterPath path;
|
||||
path.moveTo(QPointF(0.,0.));
|
||||
path.lineTo(QPointF(Rez::guiX(length),Rez::guiX(-width)));
|
||||
@@ -106,7 +106,7 @@ QPainterPath QGIArrow::makeOpenArrow(double length, double width, bool flipped)
|
||||
if (!flipped) {
|
||||
length *= -1;
|
||||
}
|
||||
|
||||
|
||||
QPainterPath path;
|
||||
path.moveTo(QPointF(Rez::guiX(length),Rez::guiX(-width)));
|
||||
path.lineTo(QPointF(0.,0.));
|
||||
@@ -163,7 +163,7 @@ double QGIArrow::getPrefArrowSize()
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter().
|
||||
GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/Dimensions");
|
||||
double style = hGrp->GetFloat("ArrowSize", 5.0);
|
||||
double style = hGrp->GetFloat("ArrowSize", 3.5);
|
||||
return style;
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ Qt::PenStyle QGICenterLine::getCenterStyle()
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter().GetGroup("BaseApp")->
|
||||
GetGroup("Preferences")->GetGroup("Mod/TechDraw/Decorations");
|
||||
Qt::PenStyle centerStyle = static_cast<Qt::PenStyle> (hGrp->GetInt("CenterLine", 4));
|
||||
Qt::PenStyle centerStyle = static_cast<Qt::PenStyle> (hGrp->GetInt("CenterLine", 2));
|
||||
return centerStyle;
|
||||
}
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ 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",2));
|
||||
Qt::PenStyle hidStyle = static_cast<Qt::PenStyle> (hGrp->GetInt("HiddenLine",1));
|
||||
return hidStyle;
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ int QGIMatting::getHoleStyle()
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
|
||||
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/Decorations");
|
||||
int style = hGrp->GetInt("MattingStyle", 1l);
|
||||
int style = hGrp->GetInt("MattingStyle", 0l);
|
||||
return style;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ QGISectionLine::QGISectionLine()
|
||||
{
|
||||
m_symbol = "";
|
||||
m_symSize = 0.0;
|
||||
|
||||
|
||||
m_extLen = Rez::guiX(8.0);
|
||||
m_arrowSize = 0.0;
|
||||
|
||||
@@ -181,7 +181,7 @@ Qt::PenStyle QGISectionLine::getSectionStyle()
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter().GetGroup("BaseApp")->
|
||||
GetGroup("Preferences")->GetGroup("Mod/TechDraw");
|
||||
Qt::PenStyle sectStyle = static_cast<Qt::PenStyle> (hGrp->GetInt("SectionLine", 4));
|
||||
Qt::PenStyle sectStyle = static_cast<Qt::PenStyle> (hGrp->GetInt("SectionLine", 2));
|
||||
return sectStyle;
|
||||
}
|
||||
|
||||
|
||||
@@ -311,7 +311,7 @@ void QGIView::setViewFeature(TechDraw::DrawView *obj)
|
||||
|
||||
viewObj = obj;
|
||||
viewName = obj->getNameInDocument();
|
||||
|
||||
|
||||
//mark the actual QGraphicsItem so we can check what's in the scene later
|
||||
setData(0,QString::fromUtf8("QGIV"));
|
||||
setData(1,QString::fromUtf8(obj->getNameInDocument()));
|
||||
@@ -528,7 +528,7 @@ double QGIView::getPrefFontSize()
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter().
|
||||
GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/Labels");
|
||||
double fontSize = hGrp->GetFloat("LabelSize", 5.0);
|
||||
double fontSize = hGrp->GetFloat("LabelSize", 3.5);
|
||||
return Rez::guiX(fontSize);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user