(size: QSize)
| 109 | this.scalePixmap(this.size()); |
| 110 | } |
| 111 | scalePixmap(size: QSize) { |
| 112 | if (this.originalPixmap) { |
| 113 | return super.setPixmap( |
| 114 | this.originalPixmap.scaled( |
| 115 | size.width(), |
| 116 | size.height(), |
| 117 | this.aspectRatioMode, |
| 118 | this.transformationMode |
| 119 | ) |
| 120 | ); |
| 121 | } |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | async function getLoadedPixmap(imageUrlOrPath: string): Promise<QPixmap> { |
no outgoing calls
no test coverage detected