mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Simple QIcon.ic implementation
Can be used for new code so that it works in master and qt6 branches
This commit is contained in:
parent
b4fb003820
commit
cff77aab39
@ -44,6 +44,13 @@ except AttributeError:
|
|||||||
NO_URL_FORMATTING = getattr(QUrl, 'None')
|
NO_URL_FORMATTING = getattr(QUrl, 'None')
|
||||||
|
|
||||||
|
|
||||||
|
def load_icon(name):
|
||||||
|
return QIcon(I(name))
|
||||||
|
|
||||||
|
|
||||||
|
QIcon.ic = load_icon
|
||||||
|
|
||||||
|
|
||||||
# Setup gprefs {{{
|
# Setup gprefs {{{
|
||||||
gprefs = JSONConfig('gui')
|
gprefs = JSONConfig('gui')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user