Expand the first level of the tree
[bertos.git] / wizard / BCreationPage.py
index 2ba4adc887872533f48c4e8e4a06373a66520a14..2c4cb9a36d6dee85a0fe8a09ea388093aada13a6 100644 (file)
@@ -51,12 +51,12 @@ class BCreationPage(BWizardPage):
         toolchain_title = QTreeWidgetItem(QStringList([self.tr("Toolchain")]))
         toolchain_info = self.projectInfo("TOOLCHAIN")
         if "target" in toolchain_info:
-            toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([self.tr("target: " + toolchain_info["target"])]))
+            toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([self.tr("target: " + toolchain_info["target"].strip())]))
         version = ""
         if "version" in toolchain_info:
-            version += "version: " + "GCC " + toolchain_info["version"] + " "
+            version += "version: " + "GCC " + toolchain_info["version"].strip() + " "
         if "build" in toolchain_info:
-            version += "(" + toolchain_info["build"] + ")"
+            version += "(" + toolchain_info["build"].strip() + ")"
         if "version" in toolchain_info:
             toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([version]))
         toolchain_path = QTreeWidgetItem(toolchain_title, QStringList([self.tr("path: " + os.path.normpath(toolchain_info["path"]))]))
@@ -82,5 +82,7 @@ class BCreationPage(BWizardPage):
             category_item.addChildren(value)
         top_level.append(module_title)
         self.pageContent.summaryTree.insertTopLevelItems(0, top_level)
+        for item in top_level:
+            self.pageContent.summaryTree.expandItem(item)
     
     ####
\ No newline at end of file