1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Increased marker size(width)

This commit is contained in:
Martin Tůma 2016-10-29 10:49:28 +02:00
parent 640829d89d
commit e4d777bace

View File

@ -3,6 +3,7 @@
#define SIZE 8
#define WIDTH 2
MarkerItem::MarkerItem(QGraphicsItem *parent) : QGraphicsItem(parent)
{
@ -21,7 +22,7 @@ void MarkerItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option
Q_UNUSED(widget);
painter->setRenderHint(QPainter::Antialiasing, false);
painter->setPen(Qt::red);
painter->setPen(QPen(Qt::red, WIDTH));
painter->drawLine(-SIZE/2, 0, SIZE/2, 0);
painter->drawLine(0, -SIZE/2, 0, SIZE/2);