Removed vertical lines for single byte annotation items
This commit is contained in:
@@ -70,6 +70,8 @@ void AnnotationItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* op
|
|||||||
);
|
);
|
||||||
|
|
||||||
painter->setPen(lineColor);
|
painter->setPen(lineColor);
|
||||||
|
|
||||||
|
if (this->size > 1) {
|
||||||
painter->drawLine(QLine(
|
painter->drawLine(QLine(
|
||||||
ByteItem::WIDTH / 2,
|
ByteItem::WIDTH / 2,
|
||||||
verticalLineYStart,
|
verticalLineYStart,
|
||||||
@@ -90,6 +92,7 @@ void AnnotationItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* op
|
|||||||
(ByteItem::WIDTH / 2) + (this->width - ByteItem::WIDTH),
|
(ByteItem::WIDTH / 2) + (this->width - ByteItem::WIDTH),
|
||||||
verticalLineYEnd
|
verticalLineYEnd
|
||||||
));
|
));
|
||||||
|
}
|
||||||
|
|
||||||
painter->drawLine(QLine(
|
painter->drawLine(QLine(
|
||||||
this->width / 2,
|
this->width / 2,
|
||||||
|
|||||||
Reference in New Issue
Block a user