mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
292eaa393a
commit
3ccdb1e8e7
@ -93,11 +93,8 @@ class TagDelegate(QStyledItemDelegate): # {{{
|
|||||||
r = style.subElementRect(style.SE_ItemViewItemFocusRect, option,
|
r = style.subElementRect(style.SE_ItemViewItemFocusRect, option,
|
||||||
widget)
|
widget)
|
||||||
painter.drawLine(r.bottomLeft(), r.bottomRight())
|
painter.drawLine(r.bottomLeft(), r.bottomRight())
|
||||||
if item.type != TagTreeItem.TAG:
|
if item.type == TagTreeItem.TAG and item.tag.state == 0 and config['show_avg_rating']:
|
||||||
return
|
self.draw_average_rating(item, style, painter, option, widget)
|
||||||
if item.tag.state == 0:
|
|
||||||
if config['show_avg_rating']:
|
|
||||||
self.draw_average_rating(item, style, painter, option, widget)
|
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user