Fix pixelated icons for package type on HiDPI

This commit is contained in:
Denis Surkes
2020-01-09 13:10:37 -05:00
parent 3b8d2d5a76
commit 816aea2786
2 changed files with 3 additions and 3 deletions

View File

@@ -289,8 +289,7 @@ class AppsTable(QTableWidget):
pixmap = self.cache_type_icon.get(pkg.model.get_type())
if not pixmap:
pixmap = QPixmap(pkg.model.get_type_icon_path())
pixmap = pixmap.scaled(16, 16, Qt.KeepAspectRatio, Qt.SmoothTransformation)
pixmap = QIcon(pkg.model.get_type_icon_path()).pixmap(QSize(14,14))
self.cache_type_icon[pkg.model.get_type()] = pixmap
item = QLabel()