Add a fake validation to load the preset data once when the user press the next button.
[bertos.git] / wizard / BBoardPage.py
index 6d7fc89b4d0347261ded550efb51f19b52f07202..fd6fc9292e7a51afe8fe83fe9ec97fe813eb021a 100644 (file)
@@ -41,8 +41,6 @@ from PyQt4.QtGui import *
 from BWizardPage import BWizardPage
 
 from BCpuPage import BCpuPage
-from BOutputPage import BOutputPage
-from BRoutePage import BRoutePage
 
 import const
 import qvariant_converter
@@ -118,13 +116,9 @@ class BBoardPage(BWizardPage):
             info_dict = qvariant_converter.getDict(self.selected.data(Qt.UserRole))
             info_dict = qvariant_converter.getStringDict(info_dict["info"])
             description = info_dict.get("description", "")
-            image = os.path.join(info_dict["path"], ".image.png")
-            if os.path.exists(image):
-                self.pageContent.imageLabel.setPixmap(QPixmap(image))
-                self.pageContent.imageLabel.setVisible(True)
-            else:
-                self.pageContent.imageLabel.setVisible(False)
-            self.pageContent.descriptionLabel.setText(description)
+            path = unicode(QUrl.fromLocalFile(info_dict["path"]).toString())
+            description = description.replace("$path", path)
+            self.pageContent.descriptionArea.setHtml(description)
 
     def customButtonClicked(self):
         self.setProjectInfo("PROJECT_FROM_PRESET", False)