mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Show counts for each category in the Tag Browser
This commit is contained in:
parent
97c0a0e18c
commit
8f93da127f
@ -169,7 +169,7 @@ class TagTreeItem(object):
|
|||||||
|
|
||||||
def category_data(self, role):
|
def category_data(self, role):
|
||||||
if role == Qt.DisplayRole:
|
if role == Qt.DisplayRole:
|
||||||
return self.name
|
return QVariant(self.py_name + ' [%d]'%len(self.children))
|
||||||
if role == Qt.DecorationRole:
|
if role == Qt.DecorationRole:
|
||||||
return self.icon
|
return self.icon
|
||||||
if role == Qt.FontRole:
|
if role == Qt.FontRole:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user