From dc7e1b2fae9a087cd31789797cf8e5bcc3181c1b Mon Sep 17 00:00:00 2001 From: sumit Date: Thu, 11 Jun 2020 10:57:36 +0530 Subject: increase thickness of label line --- src/main/python/shapes/line.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/python/shapes/line.py') diff --git a/src/main/python/shapes/line.py b/src/main/python/shapes/line.py index f890ee5..516f34d 100644 --- a/src/main/python/shapes/line.py +++ b/src/main/python/shapes/line.py @@ -136,14 +136,18 @@ class LineLabel(QGraphicsTextItem): self.setParentItem(parent) self.line = QGraphicsLineItem() self.line.setParentItem(self) + self.line.setPen(QPen(Qt.black, 2, Qt.SolidLine)) self.line.setFlag(QGraphicsItem.ItemStacksBehindParent) self.resetPos() def paint(self, painter, option, widget): painter.save() + painter.setPen(QPen(Qt.black, 2, Qt.SolidLine)) painter.setBrush(QBrush(Qt.white)) + painter.drawEllipse(self.boundingRect()) painter.restore() + super(LineLabel, self).paint(painter, option, widget) def updateLabel(self): -- cgit