Eliminate some redundant executes

- excessive calls to DrawView::execute were
  slowing data entry in PropertyEditor.
This commit is contained in:
wandererfan
2018-05-04 10:28:03 -04:00
committed by Yorik van Havre
parent 4594583613
commit eefaaa58db
12 changed files with 58 additions and 86 deletions

View File

@@ -50,21 +50,6 @@ QGIEdge::QGIEdge(int index) :
setCosmetic(isCosmetic);
}
QRectF QGIEdge::boundingRect() const
{
return shape().controlPointRect();
}
QPainterPath QGIEdge::shape() const
{
QPainterPath outline;
QPainterPathStroker stroker;
stroker.setWidth(2.0);
outline = stroker.createStroke(path());
return outline;
}
void QGIEdge::setCosmetic(bool state)
{
isCosmetic = state;
@@ -73,7 +58,6 @@ void QGIEdge::setCosmetic(bool state)
}
}
void QGIEdge::setHiddenEdge(bool b) {
isHiddenEdge = b;
if (b) {