Eliminate some redundant executes
- excessive calls to DrawView::execute were slowing data entry in PropertyEditor.
This commit is contained in:
committed by
Yorik van Havre
parent
4594583613
commit
eefaaa58db
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user