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 e329dbc866d279557cee07037aa8d92fb0a0415d..2d616d53fa900d767255c1ea71b4de36338de4a3 100644
(file)
--- a/
wizard/BCpuPage.py
+++ b/
wizard/BCpuPage.py
@@
-12,10
+12,7
@@
from BWizardPage import *
import bertos_utils
from BWizardPage import *
import bertos_utils
-if PYQT_VERSION_STR > "4.4.3":
- import qvariant_converter_new as qvariant_converter
-else:
- import qvariant_converter_old as qvariant_converter
+import qvariant_converter
class BCpuPage(BWizardPage):
class BCpuPage(BWizardPage):
@@
-43,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("")
@@
-56,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