@@ -50,6 +50,7 @@ QgsMarkerCatalogue::QgsMarkerCatalogue()
50
50
mList .append ( " hard:cross2" );
51
51
mList .append ( " hard:triangle" );
52
52
mList .append ( " hard:star" );
53
+ mList .append ( " hard:arrow" );
53
54
54
55
// SVG
55
56
QString svgPath = QgsApplication::svgPath ();
@@ -289,5 +290,21 @@ void QgsMarkerCatalogue::hardMarker( QPainter * thepPainter, QString name, doubl
289
290
pa.setPoint ( 9 , x_c + oneSixth, y_c - oneSixth );
290
291
thepPainter->drawPolygon ( pa );
291
292
}
293
+
294
+ else if (name == " arrow" )
295
+ {
296
+ int oneEight = r / 4 ;
297
+ int quarter = r / 2 ;
298
+
299
+ QPolygon pa (7 );
300
+ pa.setPoint ( 0 , x_c, y_c - r );
301
+ pa.setPoint ( 1 , x_c + quarter, y_c - quarter );
302
+ pa.setPoint ( 2 , x_c + oneEight, y_c - quarter );
303
+ pa.setPoint ( 3 , x_c + oneEight, y_c + r );
304
+ pa.setPoint ( 4 , x_c - oneEight, y_c + r );
305
+ pa.setPoint ( 5 , x_c - oneEight, y_c - quarter );
306
+ pa.setPoint ( 6 , x_c - quarter, y_c - quarter );
307
+ thepPainter->drawPolygon ( pa );
308
+ }
292
309
thepPainter->end ();
293
310
}
0 commit comments