80 D_DECL_DEPRECATED
enum IconAttibute {
83 using IconAttribute = DDciIcon::IconAttibute;
86 DontFallbackMode = 0x01,
87 RegardPaddingsAsSize = 0x02
89 Q_DECLARE_FLAGS(IconMatchedFlags, IconMatchedFlag)
90 Q_FLAGS(IconMatchedFlags);
93 explicit DDciIcon(
const DCORE_NAMESPACE::DDciFile *dciFile);
94 explicit DDciIcon(
const QString &fileName);
95 explicit DDciIcon(
const QByteArray &data);
104 DDciIconMatchResult matchIcon(
int size, Theme theme, Mode mode, IconMatchedFlags flags = None)
const;
106 int actualSize(DDciIconMatchResult result)
const;
107 int actualSize(
int size, Theme theme, Mode mode = Normal)
const;
109 QList<int> availableSizes(Theme theme, Mode mode = Normal)
const;
110 bool isSupportedAttribute(DDciIconMatchResult result, IconAttribute attr)
const;
111 static bool isSupportedAttribute(
const DDciIconImage &image, IconAttribute attr);
113 QPixmap pixmap(qreal devicePixelRatio,
int iconSize, Theme theme, Mode mode = Normal,
115 QPixmap pixmap(qreal devicePixelRatio,
int iconSize, DDciIconMatchResult result,
118 void paint(QPainter *painter,
const QRect &rect, qreal devicePixelRatio, Theme theme, Mode mode = Normal,
120 void paint(QPainter *painter,
const QRect &rect, qreal devicePixelRatio, DDciIconMatchResult result,
123 DDciIconImage image(DDciIconMatchResult result,
int size, qreal devicePixelRatio)
const;
125 static DDciIcon fromTheme(
const QString &name);
130 QSharedDataPointer<DDciIconPrivate> d;
131#ifndef QT_NO_DATASTREAM
132 friend QDataStream &operator<<(QDataStream &,
const DDciIcon &);
133 friend QDataStream &operator>>(QDataStream &,
DDciIcon &);