21 #ifndef QABSTRACTITEMMODELDECORATION_H
22 #define QABSTRACTITEMMODELDECORATION_H
24 class QAbstractItemModelDecorationPrivate;
26 #include "qaivlib_global.h"
41 virtual QVariant decorate(
const QModelIndex & index,
int role = Qt::DecorationRole)
const = 0;
45 QIcon defaultIcon()
const;
49 QVariant property(
const QString & key,
const QVariant & defaultValue = QVariant())
const;
53 QMap<QString,QVariant> properties()
const;
58 bool restoreState(
const QByteArray & state);
63 QByteArray saveState()
const;
67 void setProperty(
const QString & name,
const QVariant & value);
69 void setProperties(
const QVariantMap & properties);
71 QAbstractItemModelDecorationPrivate* d;
74 #endif // QABSTRACTITEMMODELDECORATION_H
The QDecoration class is a base class for item model decorations.
Definition: qabstractmodelitemdecoration.h:29