Skip to content

Commit

Permalink
QwtNullPaintDevice_PaintEngine: fix calls to QPaintEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Jul 24, 2024
1 parent bbdd2a3 commit 49d2938
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qwt/null_paintdevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def drawLines(self, lines, lineCount=None):
if device is None:
return
if device.mode() != QwtNullPaintDevice.NormalMode and QT_API.startswith("pyqt"):
QPaintEngine.drawLines(lines, lineCount)
QPaintEngine.drawLines(self, lines, lineCount)
return
device.drawLines(lines, lineCount)

Expand All @@ -68,7 +68,7 @@ def drawEllipse(self, rect):
if device is None:
return
if device.mode() != QwtNullPaintDevice.NormalMode:
QPaintEngine.drawEllipse(rect)
QPaintEngine.drawEllipse(self, rect)
return
device.drawEllipse(rect)

Expand All @@ -85,7 +85,7 @@ def drawPoints(self, points, pointCount=None):
if device is None:
return
if device.mode() != QwtNullPaintDevice.NormalMode:
QPaintEngine.drawPoints(points, pointCount)
QPaintEngine.drawPoints(self, points, pointCount)
return
device.drawPoints(points, pointCount)

Expand Down Expand Up @@ -123,7 +123,7 @@ def drawTextItem(self, pos, textItem):
if device is None:
return
if device.mode() != QwtNullPaintDevice.NormalMode:
QPaintEngine.drawTextItem(pos, textItem)
QPaintEngine.drawTextItem(self, pos, textItem)
return
device.drawTextItem(pos, textItem)

Expand All @@ -132,7 +132,7 @@ def drawTiledPixmap(self, rect, pixmap, subRect):
if device is None:
return
if device.mode() != QwtNullPaintDevice.NormalMode:
QPaintEngine.drawTiledPixmap(rect, pixmap, subRect)
QPaintEngine.drawTiledPixmap(self, rect, pixmap, subRect)
return
device.drawTiledPixmap(rect, pixmap, subRect)

Expand Down

0 comments on commit 49d2938

Please sign in to comment.