(self, oldRect, newRect, painter)
| 127 | (height - (self.Image.height() - 2 - self.ContentArea.height())))) |
| 128 | |
| 129 | def DrawScaledPart(self, oldRect, newRect, painter): |
| 130 | if (newRect.width() and newRect.height()): |
| 131 | # print("DrawScaledPart newRect.width:%d newRect.height:%d" % (newRect.width() , newRect.height())) |
| 132 | img = self.Image.copy(oldRect) |
| 133 | img = img.scaled(newRect.width(), newRect.height()) |
| 134 | painter.drawImage(newRect.x(), newRect.y(), img, |
| 135 | 0, 0, newRect.width(), newRect.height()) |
| 136 | |
| 137 | def DrawConstPart(self, oldRect, newRect, painter): |
| 138 | # print("DrawConstPart oldRect:{oldRect} newRect:{newRect}".format(oldRect = oldRect, newRect = newRect)) |
no test coverage detected