[improvement][ui] changing how the type icons are read on the table

This commit is contained in:
Vinícius Moreira
2020-01-10 12:08:52 -03:00
parent bbd5c1b877
commit ba41572ddb

View File

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