update pixmap cache

This commit is contained in:
RickyRister 2025-02-16 22:12:10 -08:00
parent e123ed5913
commit 00fc59f572
2 changed files with 28 additions and 0 deletions

View file

@ -106,6 +106,19 @@ public:
}
};
class ExpandIconPixmapGenerator
{
private:
static QMap<QString, QPixmap> pmCache;
public:
static QPixmap generatePixmap(int height, bool expanded);
static void clear()
{
pmCache.clear();
}
};
QPixmap loadColorAdjustedPixmap(const QString &name);
#endif