eric6/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py

changeset 8151
8c1445825e7b
parent 8143
2c730d5fd177
child 8218
7c09585bd960
equal deleted inserted replaced
8150:fc1ae39af8c9 8151:8c1445825e7b
416 else: 416 else:
417 self.__selectedName = "" 417 self.__selectedName = ""
418 418
419 self.start(self.args) 419 self.start(self.args)
420 420
421 @pyqtSlot(str) 421 @pyqtSlot(int)
422 def on_statusFilterCombo_activated(self, txt): 422 def on_statusFilterCombo_activated(self, index):
423 """ 423 """
424 Private slot to react to the selection of a status filter. 424 Private slot to react to the selection of a status filter.
425 425
426 @param txt selected status filter (string) 426 @param index index of the selected entry
427 """ 427 @type int
428 """
429 txt = self.statusFilterCombo.itemText(index)
428 if txt == "<{0}>".format(self.tr("all")): 430 if txt == "<{0}>".format(self.tr("all")):
429 for topIndex in range(self.statusList.topLevelItemCount()): 431 for topIndex in range(self.statusList.topLevelItemCount()):
430 topItem = self.statusList.topLevelItem(topIndex) 432 topItem = self.statusList.topLevelItem(topIndex)
431 topItem.setHidden(False) 433 topItem.setHidden(False)
432 else: 434 else:

eric ide

mercurial