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

View File

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