From e4d777bacef086122d6c5e71c8e8fb36ac9f07da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 29 Oct 2016 10:49:28 +0200 Subject: [PATCH] Increased marker size(width) --- src/markeritem.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);