Simple QIcon.ic implementation

Can be used for new code so that it works in master and qt6 branches
This commit is contained in:
Kovid Goyal 2022-01-14 14:22:25 +05:30
parent b4fb003820
commit cff77aab39
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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')