Show counts for each category in the Tag Browser

This commit is contained in:
Kovid Goyal 2010-05-03 11:49:55 -06:00
parent 97c0a0e18c
commit 8f93da127f

View File

@ -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: