119 labelCombo.clear() |
119 labelCombo.clear() |
120 labelCombo.clearEditText() |
120 labelCombo.clearEditText() |
121 labelCombo.addItems(sorted(self.branchesList)) |
121 labelCombo.addItems(sorted(self.branchesList)) |
122 labelCombo.setEnabled(True) |
122 labelCombo.setEnabled(True) |
123 |
123 |
124 @pyqtSlot(str) |
124 @pyqtSlot(int) |
125 def on_typeCombo1_currentIndexChanged(self, type_): |
125 def on_typeCombo1_currentIndexChanged(self, index): |
126 """ |
126 """ |
127 Private slot called when the selected type was changed. |
127 Private slot called when the selected type was changed. |
128 |
128 |
129 @param type_ selected type (string) |
129 @param index index of the current item |
|
130 @type int |
130 """ |
131 """ |
|
132 type_ = self.typeCombo1.itemText(index) |
131 self.__changeLabelCombo(self.labelCombo1, type_) |
133 self.__changeLabelCombo(self.labelCombo1, type_) |
132 |
134 |
133 @pyqtSlot(str) |
135 @pyqtSlot(int) |
134 def on_typeCombo2_currentIndexChanged(self, type_): |
136 def on_typeCombo2_currentIndexChanged(self, index): |
135 """ |
137 """ |
136 Private slot called when the selected type was changed. |
138 Private slot called when the selected type was changed. |
137 |
139 |
138 @param type_ selected type (string) |
140 @param index index of the current item |
|
141 @type int |
139 """ |
142 """ |
|
143 type_ = self.typeCombo2.itemText(index) |
140 self.__changeLabelCombo(self.labelCombo2, type_) |
144 self.__changeLabelCombo(self.labelCombo2, type_) |
141 |
145 |
142 def getURLs(self): |
146 def getURLs(self): |
143 """ |
147 """ |
144 Public method to get the entered URLs. |
148 Public method to get the entered URLs. |