1 Star 0 Fork 0

houmingzhang/CovAnalysisTool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
images.h 901 Bytes
一键复制 编辑 原始数据 按行查看 历史
Administrator 提交于 2021-10-05 19:06 +08:00 . 协相关分析工具
#ifndef IMAGES_H
#define IMAGES_H
#include <QPixmap>
#include <QString>
#include <QIcon>
/* Warning: don't use this until global->preferences is created! */
class Images
{
public:
static QPixmap icon(QString name, int size=-1, bool png = true);
static QPixmap flippedIcon(QString name, int size=-1, bool png = true);
static QPixmap resize(QPixmap *p, int size=20);
static QPixmap flip(QPixmap *p);
//! Returns the filename of the icon
static QString file(const QString & icon_name);
static QIcon multiIcon(QString name, QString fallback_icon);
private:
//! Return the filename for the icon
static QString filename(const QString & name, bool png);
//! Try to load an icon. \a icon_name is the filename of the
//! icon without path. Return a null pixmap if loads fails.
static QPixmap loadIcon(const QString & icon_name);
};
#endif // IMAGES_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dtrylzhm/cov-analysis-tool.git
git@gitee.com:dtrylzhm/cov-analysis-tool.git
dtrylzhm
cov-analysis-tool
CovAnalysisTool
master

搜索帮助