diff options
| author | tassaron | 2017-08-08 05:57:19 -0400 |
|---|---|---|
| committer | tassaron | 2017-08-08 05:57:19 -0400 |
| commit | 354637d34c201b9389b9085889275d6850873d08 (patch) | |
| tree | ce4c5afdc8fd141903bf207d3085a35d7371272c /src/components/text.py | |
| parent | 060a7dc2d263c0fd0e36e162943b8946df937bbd (diff) | |
relative stroke px size & no Qt pen on stroke
Diffstat (limited to 'src/components/text.py')
| -rw-r--r-- | src/components/text.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
