From b4b0eab096e537b234e5360e0d80f1e11d33709c Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 16 Dec 2008 09:34:10 +0000 Subject: [PATCH] Add the isComplete implementation for the second page git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2035 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BVersionPage.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.25.1