Skip to content
Permalink
Browse files
nicer vertex markers for editing
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8086 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 29, 2008
1 parent 335934a commit c6dbdf15aefa14d0c94b1d0d6fc4e3f538b6779c
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/core/qgsvectorlayer.cpp
@@ -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)

0 comments on commit c6dbdf1

Please sign in to comment.