From 354637d34c201b9389b9085889275d6850873d08 Mon Sep 17 00:00:00 2001 From: tassaron Date: Tue, 8 Aug 2017 05:57:19 -0400 Subject: relative stroke px size & no Qt pen on stroke --- src/components/text.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/text.py') diff --git a/src/components/text.py b/src/components/text.py index c50c812..46fb001 100644 --- a/src/components/text.py +++ b/src/components/text.py @@ -53,7 +53,7 @@ class Component(Component): 'textColor': self.page.pushButton_textColor, 'strokeColor': self.page.pushButton_strokeColor, }, relativeWidgets=[ - 'xPosition', 'yPosition', 'fontSize', + 'xPosition', 'yPosition', 'fontSize', 'stroke' ]) self.centerXY() @@ -147,6 +147,7 @@ class Component(Component): path = QtGui.QPainterPath() path.addText(x, y, font, self.title) path = outliner.createStroke(path) + image.setPen(QtCore.Qt.NoPen) image.setBrush(PaintColor(*self.strokeColor)) image.drawPath(path) -- cgit v1.2.3