hidden pref setting for face debugging
This commit is contained in:
parent
64b36a2801
commit
d5bb03b75f
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user