Fix incorrect function argument

This commit is contained in:
BasioMeusPuga
2018-04-02 01:06:53 +05:30
parent 8c51cc047e
commit 366859ebe0
3 changed files with 4 additions and 3 deletions

View File

@@ -51,7 +51,8 @@ class LibraryDelegate(QtWidgets.QStyledItemDelegate):
if not file_exists:
painter.setOpacity(.7)
QtWidgets.QStyledItemDelegate.paint(self, painter, option, index)
read_icon = pie_chart.pixmapper(-1, None, None, 36)
read_icon = pie_chart.pixmapper(
-1, None, self.parent.settings['consider_read_at'], 36)
x_draw = option.rect.bottomRight().x() - 30
y_draw = option.rect.bottomRight().y() - 35
painter.drawPixmap(x_draw, y_draw, read_icon)