Add signal connections for the 'hex' fields.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 14 Oct 2010 08:18:37 +0000 (08:18 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 14 Oct 2010 08:18:37 +0000 (08:18 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4427 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BModulePage.py

index b03fca6657428197f03949833662834ef9f77259..5bee07241ac296482621c655e327a5495ff48640 100644 (file)
@@ -218,6 +218,8 @@ class BModulePage(BWizardPage):
                 configurations[configuration][property]["value"] = "1"
             else:
                 configurations[configuration][property]["value"] = "0"
+        elif configurations[configuration][property]["informations"]["type"] == "hex":
+            configurations[configuration][property]["value"] = unicode(self.pageContent.propertyTable.cellWidget(index, 1).text())
         self.setProjectInfo("CONFIGURATIONS", configurations)
         if self.moduleItem(self.currentModule()).checkState(0) == Qt.Checked:
             self.dependencyCheck(self.moduleItem(self.currentModule()))
@@ -604,6 +606,8 @@ class QControlGroup(QObject):
             self.connect(control, SIGNAL("currentIndexChanged(int)"), lambda: self.stateChanged(id))
         elif type(control) == QDoubleSpinBox:
             self.connect(control, SIGNAL("valueChanged(double)"), lambda: self.stateChanged(id))
+        elif type(control) == QLineEdit:
+            self.connect(control, SIGNAL("textChanged(QString)"), lambda: self.stateChanged(id))
     
     def clear(self):
         """