mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
26 lines
557 B
C
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
|