diff --git a/src/markeritem.cpp b/src/markeritem.cpp index 0317c649..cc43fb9e 100644 --- a/src/markeritem.cpp +++ b/src/markeritem.cpp @@ -2,7 +2,8 @@ #include "markeritem.h" -#define SIZE 8 +#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);