549 Private method to update the Commit button status. |
549 Private method to update the Commit button status. |
550 """ |
550 """ |
551 commitable = len(self.__getCommitableItems()) |
551 commitable = len(self.__getCommitableItems()) |
552 self.commitButton.setEnabled(commitable) |
552 self.commitButton.setEnabled(commitable) |
553 |
553 |
554 @pyqtSlot(str) |
554 @pyqtSlot(int) |
555 def on_statusFilterCombo_activated(self, txt): |
555 def on_statusFilterCombo_activated(self, index): |
556 """ |
556 """ |
557 Private slot to react to the selection of a status filter. |
557 Private slot to react to the selection of a status filter. |
558 |
558 |
559 @param txt selected status filter (string) |
559 @param index index of the selected entry |
560 """ |
560 @type int |
|
561 """ |
|
562 txt = self.statusFilterCombo.itemText(index) |
561 if txt == "<{0}>".format(self.tr("all")): |
563 if txt == "<{0}>".format(self.tr("all")): |
562 for topIndex in range(self.statusList.topLevelItemCount()): |
564 for topIndex in range(self.statusList.topLevelItemCount()): |
563 topItem = self.statusList.topLevelItem(topIndex) |
565 topItem = self.statusList.topLevelItem(topIndex) |
564 topItem.setHidden(False) |
566 topItem.setHidden(False) |
565 else: |
567 else: |