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)
<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>