From: duplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537> Date: Mon, 24 May 2010 15:17:19 +0000 (+0000) Subject: Add description of the category under the tab. X-Git-Tag: 2.5.0~103 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=df1535af3500598a753336ef497013675542c7b4;p=bertos.git Add description of the category under the tab. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3814 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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 @@ <rect> <x>0</x> <y>0</y> - <width>400</width> - <height>300</height> + <width>423</width> + <height>428</height> </rect> </property> <property name="windowTitle"> <string>Form</string> </property> - <layout class="QHBoxLayout" name="horizontalLayout" stretch="2,3"> + <layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1"> <item> - <widget class="QListWidget" name="presetList"> - <property name="minimumSize"> - <size> - <width>150</width> - <height>0</height> - </size> + <widget class="QLabel" name="categoryDescription"> + <property name="text"> + <string/> </property> </widget> </item> <item> - <layout class="QVBoxLayout" name="verticalLayout"> + <layout class="QHBoxLayout" name="horizontalLayout" stretch="2,3"> <item> - <widget class="QLabel" name="imageLabel"> - <property name="text"> - <string/> - </property> - </widget> - </item> - <item> - <spacer name="verticalSpacer"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> + <widget class="QListWidget" name="presetList"> + <property name="minimumSize"> <size> - <width>20</width> - <height>40</height> + <width>150</width> + <height>0</height> </size> </property> - </spacer> + </widget> </item> <item> - <widget class="QLabel" name="descriptionLabel"> - <property name="text"> - <string/> - </property> - </widget> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QLabel" name="imageLabel"> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="descriptionLabel"> + <property name="text"> + <string/> + </property> + </widget> + </item> + </layout> </item> </layout> </item>