📄 iconcache.h
字号:
#ifndef __ICONCACHE_H__#define __ICONCACHE_H__#include <QString>class QStringList;class QPixmap;class QIcon;namespace gui {/** Class responsible for loading and caching icons<br> There can be multiple instances of this class at once, but all of them share common cache. Cache is destroyed once last instance of IconCache is deleted \brief Class caching loaded icons*/class IconCache {public: IconCache(const QString &pathSettings=QString("icon"), const QString &styleSettings=QString("icon/theme/current")); ~IconCache(); QPixmap* getIcon(const QString &name); QIcon* getIconSet(const QString &name); void readSettings(); void setPath(const QStringList &iconPaths); void setTheme(const QString &iconTheme); void flush(); void reload();private: QString getIconFile(const QString &name);};} // namespace gui#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -