yhkylin-backup-tools/kybackup/component/imageutil.h

18 lines
524 B
C++
Executable File

#ifndef IMAGEUTIL_H
#define IMAGEUTIL_H
#include <QPixmap>
#include <QSvgRenderer>
#include <QIcon>
class ImageUtil
{
public:
static const QPixmap loadSvg(const QString &path, const QString &color, int size = 16);
static const QPixmap loadSvgTheme(const QString &theme, const QString &color, int size = 16);
static const QPixmap loadPixmap(QIcon &icon, const QString &color, int size = 16);
static QPixmap drawSymbolicColoredPixmap(const QPixmap &source, const QString &cgColor);
};
#endif // IMAGEUTIL_H