eric6/Plugins/VcsPlugins/vcsPySvn/SvnUrlSelectionDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
121 labelCombo.clear() 121 labelCombo.clear()
122 labelCombo.clearEditText() 122 labelCombo.clearEditText()
123 labelCombo.addItems(sorted(self.branchesList)) 123 labelCombo.addItems(sorted(self.branchesList))
124 labelCombo.setEnabled(True) 124 labelCombo.setEnabled(True)
125 125
126 @pyqtSlot(str) 126 @pyqtSlot(int)
127 def on_typeCombo1_currentIndexChanged(self, type_): 127 def on_typeCombo1_currentIndexChanged(self, index):
128 """ 128 """
129 Private slot called when the selected type was changed. 129 Private slot called when the selected type was changed.
130 130
131 @param type_ selected type (string) 131 @param index index of the current item
132 @type int
132 """ 133 """
134 type_ = self.typeCombo1.itemText(index)
133 self.__changeLabelCombo(self.labelCombo1, type_) 135 self.__changeLabelCombo(self.labelCombo1, type_)
134 136
135 @pyqtSlot(str) 137 @pyqtSlot(int)
136 def on_typeCombo2_currentIndexChanged(self, type_): 138 def on_typeCombo2_currentIndexChanged(self, index):
137 """ 139 """
138 Private slot called when the selected type was changed. 140 Private slot called when the selected type was changed.
139 141
140 @param type_ selected type (string) 142 @param index index of the current item
143 @type int
141 """ 144 """
145 type_ = self.typeCombo2.itemText(index)
142 self.__changeLabelCombo(self.labelCombo2, type_) 146 self.__changeLabelCombo(self.labelCombo2, type_)
143 147
144 def getURLs(self): 148 def getURLs(self):
145 """ 149 """
146 Public method to get the entered URLs. 150 Public method to get the entered URLs.

eric ide

mercurial