33 @pyqtSlot() |
33 @pyqtSlot() |
34 def on_subrepositories_itemSelectionChanged(self): |
34 def on_subrepositories_itemSelectionChanged(self): |
35 """ |
35 """ |
36 Private slot handling the selection of entries. |
36 Private slot handling the selection of entries. |
37 """ |
37 """ |
38 self.removeButton.setEnabled(len(self.subrepositories.selectedItems()) > 0) |
38 self.removeButton.setEnabled( |
|
39 len(self.subrepositories.selectedItems()) > 0) |
39 |
40 |
40 @pyqtSlot() |
41 @pyqtSlot() |
41 def on_removeButton_clicked(self): |
42 def on_removeButton_clicked(self): |
42 """ |
43 """ |
43 Private slot handling the removal of the selected entries. |
44 Private slot handling the removal of the selected entries. |
51 def getData(self): |
52 def getData(self): |
52 """ |
53 """ |
53 Public method to retrieve the data. |
54 Public method to retrieve the data. |
54 |
55 |
55 @return tuple giving the remaining sub-repositories, the removed ones |
56 @return tuple giving the remaining sub-repositories, the removed ones |
56 and a flag indicating to delete the removed ones from disc (list of strings, |
57 and a flag indicating to delete the removed ones from disc (list |
57 list of strings, boolean) |
58 of strings, list of strings, boolean) |
58 """ |
59 """ |
59 return ( |
60 return ( |
60 [self.subrepositories.item(row).text() |
61 [self.subrepositories.item(row).text() |
61 for row in range(self.subrepositories.count())], |
62 for row in range(self.subrepositories.count())], |
62 self.__removed, |
63 self.__removed, |