@@ -59,7 +59,7 @@ def drawLines(self, lines, lineCount=None):
59
59
if device is None :
60
60
return
61
61
if device .mode () != QwtNullPaintDevice .NormalMode and QT_API .startswith ("pyqt" ):
62
- QPaintEngine .drawLines (lines , lineCount )
62
+ QPaintEngine .drawLines (self , lines , lineCount )
63
63
return
64
64
device .drawLines (lines , lineCount )
65
65
@@ -68,7 +68,7 @@ def drawEllipse(self, rect):
68
68
if device is None :
69
69
return
70
70
if device .mode () != QwtNullPaintDevice .NormalMode :
71
- QPaintEngine .drawEllipse (rect )
71
+ QPaintEngine .drawEllipse (self , rect )
72
72
return
73
73
device .drawEllipse (rect )
74
74
@@ -85,7 +85,7 @@ def drawPoints(self, points, pointCount=None):
85
85
if device is None :
86
86
return
87
87
if device .mode () != QwtNullPaintDevice .NormalMode :
88
- QPaintEngine .drawPoints (points , pointCount )
88
+ QPaintEngine .drawPoints (self , points , pointCount )
89
89
return
90
90
device .drawPoints (points , pointCount )
91
91
@@ -123,7 +123,7 @@ def drawTextItem(self, pos, textItem):
123
123
if device is None :
124
124
return
125
125
if device .mode () != QwtNullPaintDevice .NormalMode :
126
- QPaintEngine .drawTextItem (pos , textItem )
126
+ QPaintEngine .drawTextItem (self , pos , textItem )
127
127
return
128
128
device .drawTextItem (pos , textItem )
129
129
@@ -132,7 +132,7 @@ def drawTiledPixmap(self, rect, pixmap, subRect):
132
132
if device is None :
133
133
return
134
134
if device .mode () != QwtNullPaintDevice .NormalMode :
135
- QPaintEngine .drawTiledPixmap (rect , pixmap , subRect )
135
+ QPaintEngine .drawTiledPixmap (self , rect , pixmap , subRect )
136
136
return
137
137
device .drawTiledPixmap (rect , pixmap , subRect )
138
138
0 commit comments