X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBVersionPage.py;h=f5e9099d5a1cd53609700a4e489242d0f965b77e;hb=a37178ed9c5c48e1e18cd64dcb03927c078ff4de;hp=a98beca17d5c3930d00fc0144123d6593c737d87;hpb=56400a4809150530f3619d844335a8c7ce1a1028;p=bertos.git diff --git a/wizard/BVersionPage.py b/wizard/BVersionPage.py index a98beca1..f5e9099d 100644 --- a/wizard/BVersionPage.py +++ b/wizard/BVersionPage.py @@ -58,20 +58,25 @@ class BVersionPage(BWizardPage): for directory in versions: self._insertListElement(directory.toString()) + def isComplete(self): + return self.pageContent.versionList.currentRow() != -1 + def addVersion(self): directory = QFileDialog.getExistingDirectory(self, self.tr("Choose a directory"), "", QFileDialog.ShowDirsOnly | QFileDialog.DontResolveSymlinks) if not directory.isEmpty(): self._storeVersion(directory) self.pageContent.versionList.clear() self._fillVersionList() + self.emit(SIGNAL("completeChanged()")) def removeVersion(self): item = self.pageContent.versionList.takeItem(self.pageContent.versionList.currentRow()) self._deleteVersion(item.data(Qt.UserRole).toString()) + self.emit(SIGNAL("completeChanged()")) def updateClicked(self): print "fake update checking" def itemClicked(self, item): - print "clicked", repr(item) + self.emit(SIGNAL("completeChanged()")) \ No newline at end of file