From: duplo Date: Mon, 24 May 2010 13:33:28 +0000 (+0000) Subject: Fix icons. X-Git-Tag: 2.5.0~109 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=cbb06143e9ae3553f74baf6ee00ed4e755e0cc37;p=bertos.git Fix icons. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3808 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BBoardPage.py b/wizard/BBoardPage.py index 160ff610..69a732e5 100644 --- a/wizard/BBoardPage.py +++ b/wizard/BBoardPage.py @@ -127,7 +127,7 @@ class BBoardPage(BWizardPage): item_name = item_data["info"].get("name", item_data["info"]["filename"]) item_icon = os.path.join(item_data["info"]["path"], const.PREDEFINED_BOARD_ICON_FILE) if not os.path.exists(item_icon): - item_icon = ":/images/default_board_icon.png" + item_icon = const.PREDEFINED_BOARD_DEFAULT_ICON item = QListWidgetItem(QIcon(item_icon), item_name) item.setData(Qt.UserRole, qvariant_converter.convertDict(item_data)) self.pageContent.boardList.addItem(item) diff --git a/wizard/BProjectPresets.py b/wizard/BProjectPresets.py index 18268e67..1934c2da 100644 --- a/wizard/BProjectPresets.py +++ b/wizard/BProjectPresets.py @@ -66,7 +66,7 @@ class BProjectPresetsPage(QWidget): item_name = preset["info"].get("name", preset["info"]["filename"]) item_icon = os.path.join(preset["info"]["path"], const.PREDEFINED_BOARD_ICON_FILE) if not os.path.exists(item_icon): - item_icon = const.PREDEFINED_BOARD_DEFAULT_ICON + item_icon = const.PREDEFINED_BOARD_DEFAULT_PROJECT_ICON item_icon = QIcon(item_icon) item = QListWidgetItem(item_icon, item_name) item.setData(Qt.UserRole, qvariant_converter.convertString(preset["info"]["path"]))