diff options
author | sumit | 2020-06-11 10:57:36 +0530 |
---|---|---|
committer | sumit | 2020-06-11 10:57:36 +0530 |
commit | dc7e1b2fae9a087cd31789797cf8e5bcc3181c1b (patch) | |
tree | 83a45f9f758efca649f98c98405eb074db542faf /src/main/python | |
parent | 0b964f46aed8e72d1e617990356fc218b25a461e (diff) | |
download | Chemical-PFD-dc7e1b2fae9a087cd31789797cf8e5bcc3181c1b.tar.gz Chemical-PFD-dc7e1b2fae9a087cd31789797cf8e5bcc3181c1b.tar.bz2 Chemical-PFD-dc7e1b2fae9a087cd31789797cf8e5bcc3181c1b.zip |
increase thickness of label line
Diffstat (limited to 'src/main/python')
-rw-r--r-- | src/main/python/shapes/line.py | 4 |
1 files changed, 4 insertions, 0 deletions
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): |