hidden pref setting for face debugging

This commit is contained in:
WandererFan 2017-01-31 01:18:47 -05:00 committed by Yorik van Havre
parent 64b36a2801
commit d5bb03b75f
2 changed files with 12 additions and 1 deletions

View File

@ -423,7 +423,8 @@ void QGIViewPart::drawViewPart()
newFace->setHatchColor(fHatch->HatchColor.getValue());
}
}
newFace->setDrawEdges(true);
bool drawEdges = getFaceEdgesPref();
newFace->setDrawEdges(drawEdges); //pref. for debugging only
newFace->setZValue(ZVALUE::FACE);
newFace->draw();
newFace->setPrettyNormal();
@ -927,3 +928,12 @@ QRectF QGIViewPart::boundingRect() const
{
return childrenBoundingRect();
}
bool QGIViewPart::getFaceEdgesPref(void)
{
bool result = false;
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/General");
result = hGrp->GetBool("DrawFaceEdges", 0l);
return result;
}

View File

@ -94,6 +94,7 @@ protected:
void dumpPath(const char* text,QPainterPath path);
void removePrimitives(void);
void removeDecorations(void);
bool getFaceEdgesPref(void);
private:
QList<QGraphicsItem*> deleteItems;