From df1535af3500598a753336ef497013675542c7b4 Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 24 May 2010 15:17:19 +0000 Subject: [PATCH] Add description of the category under the tab. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3814 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BProjectPresets.py | 1 + wizard/ui/preset_page.ui | 71 ++++++++++++++++++++++----------------- 2 files changed, 42 insertions(+), 30 deletions(-) diff --git a/wizard/BProjectPresets.py b/wizard/BProjectPresets.py index 7bdd5d9d..240fb9ac 100644 --- a/wizard/BProjectPresets.py +++ b/wizard/BProjectPresets.py @@ -62,6 +62,7 @@ class BProjectPresetsPage(QWidget): def setupUi(self): self.pageContent.presetList.clear() + self.pageContent.categoryDescription.setText(self.preset_data["info"].get("description", "")) for preset in sorted(self.preset_data["children"].values(), _cmp): item_name = preset["info"].get("name", preset["info"]["filename"]) item_icon = os.path.join(preset["info"]["path"], const.PREDEFINED_BOARD_ICON_FILE) diff --git a/wizard/ui/preset_page.ui b/wizard/ui/preset_page.ui index a7c6c507..e860d093 100644 --- a/wizard/ui/preset_page.ui +++ b/wizard/ui/preset_page.ui @@ -6,52 +6,63 @@ 0 0 - 400 - 300 + 423 + 428 Form - + - - - - 150 - 0 - + + + - + - - - - - - - - - - Qt::Vertical - - + + - 20 - 40 + 150 + 0 - + - - - - - + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + -- 2.25.1