hidden pref setting for face debugging
This commit is contained in:
parent
15ab763652
commit
7c3e2447b0
|
@ -423,7 +423,8 @@ void QGIViewPart::drawViewPart()
|
||||||
newFace->setHatchColor(fHatch->HatchColor.getValue());
|
newFace->setHatchColor(fHatch->HatchColor.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
newFace->setDrawEdges(true);
|
bool drawEdges = getFaceEdgesPref();
|
||||||
|
newFace->setDrawEdges(drawEdges); //pref. for debugging only
|
||||||
newFace->setZValue(ZVALUE::FACE);
|
newFace->setZValue(ZVALUE::FACE);
|
||||||
newFace->draw();
|
newFace->draw();
|
||||||
newFace->setPrettyNormal();
|
newFace->setPrettyNormal();
|
||||||
|
@ -927,3 +928,12 @@ QRectF QGIViewPart::boundingRect() const
|
||||||
{
|
{
|
||||||
return childrenBoundingRect();
|
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 dumpPath(const char* text,QPainterPath path);
|
||||||
void removePrimitives(void);
|
void removePrimitives(void);
|
||||||
void removeDecorations(void);
|
void removeDecorations(void);
|
||||||
|
bool getFaceEdgesPref(void);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QList<QGraphicsItem*> deleteItems;
|
QList<QGraphicsItem*> deleteItems;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user