Skip to content

Commit ae63c31

Browse files
author
mhugent
committedJan 29, 2008
nicer vertex markers for editing
git-svn-id: http://svn.osgeo.org/qgis/trunk@8086 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ca974c5 commit ae63c31

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎src/core/qgsvectorlayer.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -888,11 +888,9 @@ void QgsVectorLayer::deleteCachedGeometries()
888888

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

898896
void QgsVectorLayer::select(int number, bool emitSignal)

0 commit comments

Comments
 (0)
Please sign in to comment.