hidden pref setting for face debugging
This commit is contained in:
committed by
Yorik van Havre
parent
3ed4fb86a2
commit
fb1cc0a413
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user