projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove a not needed old statement
[bertos.git]
/
wizard
/
BCpuPage.py
diff --git
a/wizard/BCpuPage.py
b/wizard/BCpuPage.py
index 0787bc344b545bbbfe8db2771adcf40fce579508..2d616d53fa900d767255c1ea71b4de36338de4a3 100644
(file)
--- 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"])
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):
self.pageContent.cpuList.addItem(item)
def _connectSignals(self):
@@
-42,6
+40,7
@@
class BCpuPage(BWizardPage):
self.pageContent.cpuList.setCurrentItem(elements[0])
def _setupUi(self):
self.pageContent.cpuList.setCurrentItem(elements[0])
def _setupUi(self):
+ self.pageContent.cpuList.setSortingEnabled(True)
self.pageContent.descriptionLabel.setVisible(False)
self.pageContent.descriptionLabel.setText("")
self.pageContent.descriptionLabel.setVisible(False)
self.pageContent.descriptionLabel.setText("")
@@
-55,7
+54,7
@@
class BCpuPage(BWizardPage):
def isComplete(self):
if self.pageContent.cpuList.currentRow() != -1:
def isComplete(self):
if self.pageContent.cpuList.currentRow() != -1:
- self._projectInfoStore("CPU_INFOS", qvariant_converter.get
String
Dict(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
return True
else:
return False