1
0
Fork 0
forked from len0rd/rockbox

qeditor: add better fallback mecanism for icons

Change-Id: Ib87406c95fc6c579f108b81246350d12de428ba4
This commit is contained in:
Amaury Pouly 2017-08-30 13:34:25 +02:00 committed by Solomon Peachy
parent b200cd7e4a
commit 235cdeca73
2 changed files with 57 additions and 17 deletions

View file

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