mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 14:24:15 +02:00
Fix pixelated icons for package type on HiDPI
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user