diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2017-08-30 13:34:25 +0200 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-11-04 13:14:42 +0000 |
commit | 235cdeca73d6403e15a172534d6662ff2e3986cf (patch) | |
tree | 164e36c65199648b100c1d9a3dbb8b65e1e71786 /utils/regtools/qeditor/utils.h | |
parent | b200cd7e4a63eb887962778212130d72a6e8856a (diff) | |
download | rockbox-235cdeca73d6403e15a172534d6662ff2e3986cf.tar.gz rockbox-235cdeca73d6403e15a172534d6662ff2e3986cf.zip |
qeditor: add better fallback mecanism for icons
Change-Id: Ib87406c95fc6c579f108b81246350d12de428ba4
Diffstat (limited to 'utils/regtools/qeditor/utils.h')
-rw-r--r-- | utils/regtools/qeditor/utils.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/regtools/qeditor/utils.h b/utils/regtools/qeditor/utils.h index b9755cf3c3..655e3ae96f 100644 --- a/utils/regtools/qeditor/utils.h +++ b/utils/regtools/qeditor/utils.h @@ -732,11 +732,12 @@ public: QIcon GetIcon(IconType it); protected: - void Render(IconType type); + QIcon GetFallbackIcon(IconType it); static YIconManager *m_singleton; // single instance - QIcon m_icon[MaxIcon]; /* list add icon */ + QIcon m_icon[MaxIcon]; /* cache icons */ QString m_icon_name[MaxIcon]; /* icon name from theme */ + QStyle::StandardPixmap m_icon_fallback[MaxIcon]; /* icon from style */ }; class Misc |