Merge pull request #2003 from j9ac9k/fix-py310-drawText-call

Fix Python 3.10 GLGradientLegendItem call to QPainter.drawText
This commit is contained in:
Ogi Moore 2021-10-06 06:35:12 -07:00 committed by GitHub
commit bc542ae1c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -78,6 +78,6 @@ class GLGradientLegendItem(GLGraphicsItem):
x = 1.1 * self.size[0] + self.pos[0]
y = self.size[1] - labelPosition * self.size[1] + self.pos[1] + 8
##todo: fonts
painter.drawText(x, y, labelText)
painter.drawText(QtCore.QPointF(x, y), labelText)
painter.end()