From 9b2ec1209e25a6c8cbd072061d81a7cb3ea9262a Mon Sep 17 00:00:00 2001 From: Zzaphkiel <1278228162@qq.com> Date: Mon, 7 Aug 2023 14:48:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/champion_icon_widget.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/champion_icon_widget.py b/app/components/champion_icon_widget.py index 11ca44fd..76befd6c 100644 --- a/app/components/champion_icon_widget.py +++ b/app/components/champion_icon_widget.py @@ -26,7 +26,8 @@ def paintEvent(self, event) -> None: self.height() + self.overscaled, Qt.AspectRatioMode.KeepAspectRatio, Qt.TransformationMode.SmoothTransformation) - image.scroll(-self.overscaled / 2, -self.overscaled / 2, image.rect()) + image.scroll(-self.overscaled // 2, - + self.overscaled // 2, image.rect()) path = QPainterPath() path.addEllipse(0, 0, self.width(), self.height()) @@ -37,4 +38,4 @@ def paintEvent(self, event) -> None: QPen(QColor(120, 90, 40), self.borderWidth, Qt.SolidLine)) painter.drawEllipse(0, 0, self.width(), self.height()) - return super().paintEvent(event) \ No newline at end of file + return super().paintEvent(event)