mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
A convenience method to load icons
This commit is contained in:
parent
079f89b6c7
commit
0476d5bdf1
@ -46,11 +46,11 @@ except AttributeError:
|
||||
NO_URL_FORMATTING = getattr(QUrl, 'None')
|
||||
|
||||
|
||||
def load_icon(name):
|
||||
def load_qicon(name):
|
||||
return QIcon(I(name))
|
||||
|
||||
|
||||
QIcon.ic = load_icon
|
||||
QIcon.ic = load_qicon
|
||||
|
||||
|
||||
# Setup gprefs {{{
|
||||
|
Loading…
x
Reference in New Issue
Block a user