This commit is contained in:
Kovid Goyal 2021-12-24 20:59:06 +05:30
parent 97934eb1b6
commit eb162a4821
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -142,7 +142,8 @@ class ColumnIcon: # {{{
if (os.path.exists(d)):
bm = QPixmap(d)
scaled, nw, nh = fit_image(bm.width(), bm.height(), bm.width(), dim)
bm = bm.scaled(int(nw), int(nh), aspectRatioMode=Qt.AspectRatioMode.IgnoreAspectRatio, transformMode=Qt.TransformationMode.SmoothTransformation)
bm = bm.scaled(int(nw), int(nh), aspectRatioMode=Qt.AspectRatioMode.IgnoreAspectRatio,
transformMode=Qt.TransformationMode.SmoothTransformation)
bm.setDevicePixelRatio(self.dpr)
icon_bitmaps.append(bm)
total_width += bm.width()