From bb6aa7089011682ef03f82f7dd50c4347e2f2c92 Mon Sep 17 00:00:00 2001 From: "dries.k" Date: Sun, 28 Aug 2022 16:11:18 +0200 Subject: [PATCH] scale with SmoothTransformation --- gotify_tray/gui/widgets/ImagePopup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gotify_tray/gui/widgets/ImagePopup.py b/gotify_tray/gui/widgets/ImagePopup.py index 35c2d01..63fdd32 100644 --- a/gotify_tray/gui/widgets/ImagePopup.py +++ b/gotify_tray/gui/widgets/ImagePopup.py @@ -24,7 +24,8 @@ class ImagePopup(QtWidgets.QLabel): pixmap = QtGui.QPixmap(filename).scaled( settings.value("ImagePopup/w", type=int), settings.value("ImagePopup/h", type=int), - QtCore.Qt.AspectRatioMode.KeepAspectRatio, + aspectRatioMode=QtCore.Qt.AspectRatioMode.KeepAspectRatio, + transformMode=QtCore.Qt.TransformationMode.SmoothTransformation ) self.setPixmap(pixmap)