Skip to content
Permalink
Browse files
nicer vertex markers for editing
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 ae63c319ba436229b19e83cbf7211a95f3150282
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 ae63c31

Please sign in to comment.