Change the signal connected to the completeChanged signal
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Dec 2008 14:24:30 +0000 (14:24 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Dec 2008 14:24:30 +0000 (14:24 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2109 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BVersionPage.py

index a5a9bd5ee58597eef58559d4a6bd709812fa126a..c9212332de0a3cb0c8026690c1afab748834e4f6 100644 (file)
@@ -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