X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBCpuPage.py;h=e42bd2db72391d06eff9288aefadd279b401e157;hb=7615ed0ec58864bc2d5e8de82bde7ee36a998b17;hp=0787bc344b545bbbfe8db2771adcf40fce579508;hpb=191efa49c6a346b6170231ece92d451ffea15248;p=bertos.git diff --git a/wizard/BCpuPage.py b/wizard/BCpuPage.py index 0787bc34..e42bd2db 100644 --- a/wizard/BCpuPage.py +++ b/wizard/BCpuPage.py @@ -28,9 +28,7 @@ class BCpuPage(BWizardPage): infos = bertos_utils.loadCpuInfos(self._projectInfoRetrieve("SOURCES_PATH")) for cpu in infos: item = QListWidgetItem(cpu["CPU_NAME"]) - # The CPU_DESC field in the cpu definition is a list of string, so we need to - # store it as a QStringList in a QVariant - item.setData(Qt.UserRole, QVariant(cpu)) + item.setData(Qt.UserRole, qvariant_converter.convertDict(cpu)) self.pageContent.cpuList.addItem(item) def _connectSignals(self): @@ -55,7 +53,7 @@ class BCpuPage(BWizardPage): def isComplete(self): if self.pageContent.cpuList.currentRow() != -1: - self._projectInfoStore("CPU_INFOS", qvariant_converter.getStringDict(self.pageContent.cpuList.currentItem().data(Qt.UserRole))) + self._projectInfoStore("CPU_INFOS", qvariant_converter.getDict(self.pageContent.cpuList.currentItem().data(Qt.UserRole))) return True else: return False