From: duplo Date: Mon, 31 May 2010 09:47:27 +0000 (+0000) Subject: Change the signal from itemSelectionChanged to currentItemChanged. X-Git-Tag: 2.5.0~33 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=3f3f2c46a3cadf8383ae18a5f22a41a5748298e5;p=bertos.git Change the signal from itemSelectionChanged to currentItemChanged. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3884 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BCpuPage.py b/wizard/BCpuPage.py index 2b3a257a..9ef2da0d 100644 --- a/wizard/BCpuPage.py +++ b/wizard/BCpuPage.py @@ -103,7 +103,7 @@ class BCpuPage(BWizardPage): """ Overload of the BWizardPage connectSignals method. """ - self.connect(self.pageContent.cpuList, SIGNAL("itemSelectionChanged()"), self.rowChanged) + self.connect(self.pageContent.cpuList, SIGNAL("currentItemChanged(QListWidgetItem *, QListWidgetItem*)"), self.rowChanged) self.connect(self.pageContent.frequencySpinBox, SIGNAL("editingFinished()"), self.freqChanged) def reloadData(self): diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index b07c1562..ad6fee50 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -80,7 +80,6 @@ class BModulePage(BWizardPage): self.connect(self.pageContent.moduleTree, SIGNAL("itemPressed(QTreeWidgetItem*, int)"), self.fillPropertyTable) self.connect(self.pageContent.moduleTree, SIGNAL("itemPressed(QTreeWidgetItem*, int)"), self.moduleClicked) self.connect(self.pageContent.moduleTree, SIGNAL("itemChanged(QTreeWidgetItem*, int)"), self.dependencyCheck) - # self.connect(self.pageContent.propertyTable, SIGNAL("itemSelectionChanged()"), self.showPropertyDescription) def reloadData(self): """ diff --git a/wizard/BProjectPresets.py b/wizard/BProjectPresets.py index 0ae1d8a3..ba4d6d7d 100644 --- a/wizard/BProjectPresets.py +++ b/wizard/BProjectPresets.py @@ -80,8 +80,8 @@ class BProjectPresetsPage(QWidget): self.updateUi() def connectSignals(self): - self.connect(self.pageContent.presetList, SIGNAL("itemSelectionChanged()"), self.updateUi) - self.connect(self.pageContent.presetList, SIGNAL("itemSelectionChanged()"), self, SIGNAL("completeChanged()")) + self.connect(self.pageContent.presetList, SIGNAL("currentItemChanged(QListWidgetItem *, QListWidgetItem*)"), self.updateUi) + self.connect(self.pageContent.presetList, SIGNAL("currentItemChanged(QListWidgetItem *, QListWidgetItem*)"), self, SIGNAL("completeChanged()")) def updateUi(self): if self.selected: diff --git a/wizard/BToolchainPage.py b/wizard/BToolchainPage.py index 43677e6c..90603631 100644 --- a/wizard/BToolchainPage.py +++ b/wizard/BToolchainPage.py @@ -97,7 +97,7 @@ class BToolchainPage(BWizardPage): """ Connects the signals with the related slots. """ - self.connect(self.pageContent.toolchainList, SIGNAL("itemSelectionChanged()"), self.selectionChanged) + self.connect(self.pageContent.toolchainList, SIGNAL("currentItemChanged(QListWidgetItem *, QListWidgetItem*)"), self.selectionChanged) self.connect(self.pageContent.addButton, SIGNAL("clicked()"), self.addToolchain) self.connect(self.pageContent.removeButton, SIGNAL("clicked()"), self.removeToolchain) self.connect(self.pageContent.searchButton, SIGNAL("clicked()"), self.searchToolchain) diff --git a/wizard/BVersionPage.py b/wizard/BVersionPage.py index 1f7e61bf..c65d34d0 100644 --- a/wizard/BVersionPage.py +++ b/wizard/BVersionPage.py @@ -78,7 +78,7 @@ class BVersionPage(BWizardPage): """ Overload of the BWizardPage connectSignals method. """ - self.connect(self.pageContent.versionList, SIGNAL("itemSelectionChanged()"), self.rowChanged) + self.connect(self.pageContent.versionList, SIGNAL("currentItemChanged(QListWidgetItem *, QListWidgetItem*)"), self.rowChanged) self.connect(self.pageContent.addButton, SIGNAL("clicked()"), self.addVersion) self.connect(self.pageContent.removeButton, SIGNAL("clicked()"), self.removeVersion) # Fake signal connection for the update button