Changeset View
Changeset View
Standalone View
Standalone View
src/kiconengine.h
Show All 34 Lines | |||||
35 | * rendered icons. | 35 | * rendered icons. | ||
36 | * | 36 | * | ||
37 | * Icon themes specifying a KDE-Extensions string list setting, will limit | 37 | * Icon themes specifying a KDE-Extensions string list setting, will limit | ||
38 | * themselves to checking these extensions exclusively, in the order specified | 38 | * themselves to checking these extensions exclusively, in the order specified | ||
39 | * in the setting. | 39 | * in the setting. | ||
40 | * | 40 | * | ||
41 | * @author Hamish Rodda <rodda@kde.org> | 41 | * @author Hamish Rodda <rodda@kde.org> | ||
42 | */ | 42 | */ | ||
43 | class KICONTHEMES_EXPORT KIconEngine : public QIconEngine // exported for kdelibs4support's KIcon and plasma integration | 43 | class KICONTHEMES_EXPORT KIconEngine : public QIconEngine // exported for kdelibs4support's KIcon | ||
44 | { | 44 | { | ||
45 | public: | 45 | public: | ||
46 | /** | 46 | /** | ||
47 | * Constructs an icon engine for a KDE named icon. | 47 | * Constructs an icon engine for a KDE named icon. | ||
48 | * | 48 | * | ||
49 | * @param iconName the name of the icon to load | 49 | * @param iconName the name of the icon to load | ||
50 | * @param iconLoader The KDE icon loader that this engine is to use. | 50 | * @param iconLoader The KDE icon loader that this engine is to use. | ||
51 | * @param overlays Add one or more overlays to the icon. See KIconLoader::Overlays. | 51 | * @param overlays Add one or more overlays to the icon. See KIconLoader::Overlays. | ||
Show All 27 Lines | |||||
79 | QIconEngine *clone() const override; | 79 | QIconEngine *clone() const override; | ||
80 | bool read(QDataStream &in) override; | 80 | bool read(QDataStream &in) override; | ||
81 | bool write(QDataStream &out) const override; | 81 | bool write(QDataStream &out) const override; | ||
82 | 82 | | |||
83 | void virtual_hook(int id, void *data) override; | 83 | void virtual_hook(int id, void *data) override; | ||
84 | 84 | | |||
85 | private: | 85 | private: | ||
86 | //TODO KF6: move those into the d-pointer | 86 | //TODO KF6: move those into the d-pointer | ||
87 | QPixmap createPixmap(const QSize &size, qreal scale, QIcon::Mode mode, QIcon::State state); | ||||
87 | QString mIconName; | 88 | QString mIconName; | ||
88 | QStringList mOverlays; | 89 | QStringList mOverlays; | ||
89 | QPointer<KIconLoader> mIconLoader; | 90 | QPointer<KIconLoader> mIconLoader; | ||
90 | }; | 91 | }; | ||
91 | 92 | | |||
92 | inline KIconEngine::~KIconEngine() | 93 | inline KIconEngine::~KIconEngine() | ||
93 | { | 94 | { | ||
94 | } | 95 | } | ||
95 | 96 | | |||
96 | #endif | 97 | #endif |