834 an additional entry with key "sum", that stores the sum of |
834 an additional entry with key "sum", that stores the sum of |
835 all selected entries fulfilling the filter criteria. |
835 all selected entries fulfilling the filter criteria. |
836 """ |
836 """ |
837 if filterList is None: |
837 if filterList is None: |
838 filterList = self.selectedItemsFilter |
838 filterList = self.selectedItemsFilter |
839 categories = {} |
839 categories = {"sum": 0} |
840 categories["sum"] = 0 |
|
841 for typ in filterList: |
840 for typ in filterList: |
842 categories[str(typ)] = 0 |
841 categories[str(typ)] = 0 |
843 |
842 |
844 indexes = self.selectedIndexes() |
843 indexes = self.selectedIndexes() |
845 for index in indexes: |
844 for index in indexes: |