QAdvanced Item View
0.4
The QAIV (Qt Advanced Item Views) library provides GUI and utility classes extending the capabilities of the Qt item views.
|
The QDecoration class is a base class for item model decorations. More...
#include <qabstractmodelitemdecoration.h>
Public Member Functions | |
QAbstractItemModelDecoration () | |
~QAbstractItemModelDecoration () | |
virtual QVariant | decorate (const QModelIndex &index, int role=Qt::DecorationRole) const =0 |
QIcon | defaultIcon () const |
QVariant | property (const QString &key, const QVariant &defaultValue=QVariant()) const |
QMap< QString, QVariant > | properties () const |
bool | restoreState (const QByteArray &state) |
QByteArray | saveState () const |
void | setProperty (const QString &name, const QVariant &value) |
void | setProperties (const QVariantMap &properties) |
The QDecoration class is a base class for item model decorations.
QAbstractItemModelDecoration::QAbstractItemModelDecoration | ( | ) |
Constructs an empty QAbstractItemModelDecoration.
QAbstractItemModelDecoration::~QAbstractItemModelDecoration | ( | ) |
Destroys the QAbstractItemModelDecoration.
QMap< QString, QVariant > QAbstractItemModelDecoration::properties | ( | ) | const |
Returns the filter's properties.
QVariant QAbstractItemModelDecoration::property | ( | const QString & | key, |
const QVariant & | defaultValue = QVariant() |
||
) | const |
Returns the value of the property specified by the given key
.
bool QAbstractItemModelDecoration::restoreState | ( | const QByteArray & | state | ) |
Restore the decoration's state and properties to the state
specified.
QByteArray QAbstractItemModelDecoration::saveState | ( | ) | const |
Saves the decoration's state and properties.
void QAbstractItemModelDecoration::setProperty | ( | const QString & | name, |
const QVariant & | value | ||
) |
Sets the filter definition's property specified by key
to the given value
.