21 |
21 |
22 def __init__(self, parent=None): |
22 def __init__(self, parent=None): |
23 """ |
23 """ |
24 Constructor |
24 Constructor |
25 |
25 |
26 @param parent reference to the parent widget (QWidget) |
26 @param parent reference to the parent widget |
|
27 @type QWidget |
27 """ |
28 """ |
28 super().__init__(parent) |
29 super().__init__(parent) |
29 self.setupUi(self) |
30 self.setupUi(self) |
30 |
31 |
31 self.phaseCombo.addItem("", "") |
32 self.phaseCombo.addItem("", "") |
64 def getData(self): |
65 def getData(self): |
65 """ |
66 """ |
66 Public method to retrieve the entered data. |
67 Public method to retrieve the entered data. |
67 |
68 |
68 @return tuple with list of revisions, phase and a flag indicating |
69 @return tuple with list of revisions, phase and a flag indicating |
69 a forced operation (list of strings, string, boolean) |
70 a forced operation |
|
71 @rtype tuple of (list of str, str, bool) |
70 """ |
72 """ |
71 return ( |
73 return ( |
72 self.revisionsEdit.toPlainText().strip().splitlines(), |
74 self.revisionsEdit.toPlainText().strip().splitlines(), |
73 self.phaseCombo.itemData(self.phaseCombo.currentIndex()), |
75 self.phaseCombo.itemData(self.phaseCombo.currentIndex()), |
74 self.forceCheckBox.isChecked(), |
76 self.forceCheckBox.isChecked(), |