From ba41572ddbebf42985ef401b3540c942bd43f924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Fri, 10 Jan 2020 12:08:52 -0300 Subject: [PATCH] [improvement][ui] changing how the type icons are read on the table --- bauh/view/qt/apps_table.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bauh/view/qt/apps_table.py b/bauh/view/qt/apps_table.py index f257e718..7a3b4935 100644 --- a/bauh/view/qt/apps_table.py +++ b/bauh/view/qt/apps_table.py @@ -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(16, 16)) self.cache_type_icon[pkg.model.get_type()] = pixmap item = QLabel()