Make the icon cache a class variable

This commit is contained in:
Chocobo1
2020-05-20 22:53:42 +08:00
parent 35a3265657
commit 00eb61543d
2 changed files with 9 additions and 7 deletions

View File

@@ -31,6 +31,7 @@
#include <QColor>
#include <QHash>
#include <QIcon>
#include <QObject>
#include <QString>
@@ -60,6 +61,7 @@ private:
static UIThemeManager *m_instance;
QHash<QString, QColor> m_colors;
mutable QHash<QString, QIcon> m_iconCache;
const bool m_useCustomTheme;
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS))
bool m_useSystemTheme;