mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
iconFromRef() compat
This commit is contained in:
parent
de3fe320c0
commit
d2336f3829
1 changed files with 4 additions and 0 deletions
|
@ -497,6 +497,10 @@ class SidebarModel(QAbstractItemModel):
|
|||
# Helpers
|
||||
######################################################################
|
||||
|
||||
def iconFromRef(self, iconRef: str) -> QIcon:
|
||||
print("iconFromRef() deprecated")
|
||||
return theme_manager.icon_from_resources(iconRef)
|
||||
|
||||
def expandWhereNeccessary(self, tree: QTreeView) -> None:
|
||||
for row, child in enumerate(self.root.children):
|
||||
if child.expanded:
|
||||
|
|
Loading…
Reference in a new issue