Skip to content

Commit 49d2938

Browse files
committed
QwtNullPaintDevice_PaintEngine: fix calls to QPaintEngine
1 parent bbdd2a3 commit 49d2938

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

qwt/null_paintdevice.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def drawLines(self, lines, lineCount=None):
5959
if device is None:
6060
return
6161
if device.mode() != QwtNullPaintDevice.NormalMode and QT_API.startswith("pyqt"):
62-
QPaintEngine.drawLines(lines, lineCount)
62+
QPaintEngine.drawLines(self, lines, lineCount)
6363
return
6464
device.drawLines(lines, lineCount)
6565

@@ -68,7 +68,7 @@ def drawEllipse(self, rect):
6868
if device is None:
6969
return
7070
if device.mode() != QwtNullPaintDevice.NormalMode:
71-
QPaintEngine.drawEllipse(rect)
71+
QPaintEngine.drawEllipse(self, rect)
7272
return
7373
device.drawEllipse(rect)
7474

@@ -85,7 +85,7 @@ def drawPoints(self, points, pointCount=None):
8585
if device is None:
8686
return
8787
if device.mode() != QwtNullPaintDevice.NormalMode:
88-
QPaintEngine.drawPoints(points, pointCount)
88+
QPaintEngine.drawPoints(self, points, pointCount)
8989
return
9090
device.drawPoints(points, pointCount)
9191

@@ -123,7 +123,7 @@ def drawTextItem(self, pos, textItem):
123123
if device is None:
124124
return
125125
if device.mode() != QwtNullPaintDevice.NormalMode:
126-
QPaintEngine.drawTextItem(pos, textItem)
126+
QPaintEngine.drawTextItem(self, pos, textItem)
127127
return
128128
device.drawTextItem(pos, textItem)
129129

@@ -132,7 +132,7 @@ def drawTiledPixmap(self, rect, pixmap, subRect):
132132
if device is None:
133133
return
134134
if device.mode() != QwtNullPaintDevice.NormalMode:
135-
QPaintEngine.drawTiledPixmap(rect, pixmap, subRect)
135+
QPaintEngine.drawTiledPixmap(self, rect, pixmap, subRect)
136136
return
137137
device.drawTiledPixmap(rect, pixmap, subRect)
138138

0 commit comments

Comments
 (0)