dde-dock/util/themeappicon.h
石博文 e31ebda8db add icon
Change-Id: I5e6cfb0b57219982d7f0061acbfb485bd949a2e9
2016-08-02 09:28:06 +08:00

26 lines
557 B
C++

#ifndef THEMEAPPICON_H
#define THEMEAPPICON_H
#include <QObject>
class ThemeAppIcon : public QObject
{
Q_OBJECT
public:
explicit ThemeAppIcon(QObject *parent = 0);
~ThemeAppIcon();
void gtkInit();
static QPixmap getIconPixmap(QString iconPath, int width=64, int height=64);
static QString getThemeIconPath(QString iconName, int size=64);
static QPixmap getIcon(const QString iconName, const int size);
static QPixmap loadSvg(const QString &fileName, const int size);
signals:
public slots:
};
#endif // THEMEAPPICON_H