From: duplo Date: Fri, 19 Dec 2008 14:24:30 +0000 (+0000) Subject: Change the signal connected to the completeChanged signal X-Git-Tag: 2.1.0~573 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=c584581268b0e96f3a4276ccf645bd8af07096f2;p=bertos.git Change the signal connected to the completeChanged signal git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2109 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BVersionPage.py b/wizard/BVersionPage.py index a5a9bd5e..c9212332 100644 --- a/wizard/BVersionPage.py +++ b/wizard/BVersionPage.py @@ -23,14 +23,14 @@ class BVersionPage(BWizardPage): self.setTitle(self.tr("Select the BeRTOS version needed")) def _connectSignals(self): - self.connect(self.pageContent.versionList, SIGNAL("itemClicked(QListWidgetItem *)"), self.itemClicked) + self.connect(self.pageContent.versionList, SIGNAL("itemSelectionChanged()"), 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 self.connect(self.pageContent.updateButton, SIGNAL("clicked()"), self.updateClicked) def _setupUi(self): - pass + self.pageContent.versionList.setCurrentRow(-1) def _storeVersion(self, directory): versions = self._settingsRetrieve("versions").toList() @@ -81,6 +81,6 @@ class BVersionPage(BWizardPage): def updateClicked(self): print "fake update checking" - def itemClicked(self, item): + def rowChanged(self): self.emit(SIGNAL("completeChanged()")) \ No newline at end of file