Merge pull request #2003 from j9ac9k/fix-py310-drawText-call
Fix Python 3.10 GLGradientLegendItem call to QPainter.drawText
This commit is contained in:
commit
bc542ae1c4
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user