From: duplo Date: Thu, 14 Oct 2010 08:18:37 +0000 (+0000) Subject: Add signal connections for the 'hex' fields. X-Git-Tag: 2.6.0~5^2~93 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=17771c9646f5387f044971131adff063b2b73110;p=bertos.git Add signal connections for the 'hex' fields. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4427 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index b03fca66..5bee0724 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -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): """