69 "%n item(s)", "", |
69 "%n item(s)", "", |
70 self.rowCount(index.sibling(index.row(), 0))) |
70 self.rowCount(index.sibling(index.row(), 0))) |
71 |
71 |
72 elif role == Qt.DecorationRole: |
72 elif role == Qt.DecorationRole: |
73 if index.column() == 0 and not index.parent().isValid(): |
73 if index.column() == 0 and not index.parent().isValid(): |
74 return UI.PixmapCache.getIcon("history.png") |
74 return UI.PixmapCache.getIcon("history") |
75 |
75 |
76 elif role == HistoryModel.DateRole: |
76 elif role == HistoryModel.DateRole: |
77 if index.column() == 0 and index.internalId() == 0: |
77 if index.column() == 0 and index.internalId() == 0: |
78 offset = self.__sourceDateRow(index.row()) |
78 offset = self.__sourceDateRow(index.row()) |
79 idx = self.sourceModel().index(offset, 0) |
79 idx = self.sourceModel().index(offset, 0) |