Skip to content

Commit

Permalink
nicer vertex markers for editing
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@8086 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 29, 2008
1 parent ca974c5 commit ae63c31
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -888,11 +888,9 @@ void QgsVectorLayer::deleteCachedGeometries()

void QgsVectorLayer::drawVertexMarker(int x, int y, QPainter& p)
{
//todo: let the user configure the size and appearance of the marker
int size = 15;
int m = (size-1)/2;
p.drawLine(x-m, y+m, x+m, y-m);
p.drawLine(x-m, y-m, x+m, y+m);
p.setPen(QColor(50, 100, 120, 200));
p.setBrush(QColor(200, 200, 210, 120));
p.drawEllipse(QRectF(x - 7, y - 7, 14, 14));
}

void QgsVectorLayer::select(int number, bool emitSignal)
Expand Down

0 comments on commit ae63c31

Please sign in to comment.