21 #ifndef QCONDITIONALDECORATIONPROXYMODEL_H
22 #define QCONDITIONALDECORATIONPROXYMODEL_H
26 #include <QSortFilterProxyModel>
29 #include <qaivlib_global.h>
33 class QConditionalDecorationProxyModelPrivate;
105 Q_PROPERTY(QSize iconSize READ iconSize WRITE setIconSize)
111 Q_PROPERTY(
int iconSpacing READ iconSpacing WRITE setIconSpacing)
114 ConditionalDecorationRole = Qt::UserRole + 421,
132 void addIcon(
const QString & set,
const QString & name,
const QString & resource);
146 void addIconSet(
const QString & name,
const QVariantMap icons);
150 virtual QVariant data(
const QModelIndex & index,
int role)
const;
155 QIcon icon(
const QString & set,
const QString & name)
const;
160 QSize iconSize()
const;
164 int iconSpacing()
const;
168 QMap<QString, QVariant> iconSets()
const;
172 bool restoreState(
const QByteArray & state);
176 QByteArray stateState()
const;
180 virtual bool setData(
const QModelIndex & index,
const QVariant & value,
int role);
185 void setIconSize(
const QSize & size);
189 void setIconSpacing(
int spacing);
191 QConditionalDecorationProxyModelPrivate* d;
194 #endif // QCONDITIONALDECORATIONPROXYMODEL_H
The QConditionalDecorationProxyModel class implements a proxy model for conditional decorations...
Definition: qconditionaldecorationproxymodel.h:97
The QDecoration class is a base class for item model decorations.
Definition: qabstractmodelitemdecoration.h:29