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.
 All Classes Functions Variables Enumerations Enumerator Properties Groups Pages
Public Member Functions | List of all members
QAbstractItemModelDecoration Class Referenceabstract

The QDecoration class is a base class for item model decorations. More...

#include <qabstractmodelitemdecoration.h>

Inheritance diagram for QAbstractItemModelDecoration:

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)

Detailed Description

The QDecoration class is a base class for item model decorations.

Constructor & Destructor Documentation

QAbstractItemModelDecoration::QAbstractItemModelDecoration ( )

Constructs an empty QAbstractItemModelDecoration.

QAbstractItemModelDecoration::~QAbstractItemModelDecoration ( )

Destroys the QAbstractItemModelDecoration.

Member Function Documentation

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.

See also
QByteArray QAbstractItemModelDecoration::saveState ( ) const

Saves the decoration's state and properties.

See also
void QAbstractItemModelDecoration::setProperty ( const QString &  name,
const QVariant &  value 

Sets the filter definition's property specified by key to the given value.

The documentation for this class was generated from the following files: