21 #ifndef QCONDITONALDECORATION_H
22 #define QCONDITONALDECORATION_H
24 #include <qabstractmodelitemdecoration.h>
26 #include "qaivlib_global.h"
37 MatchFlagInvalid = -1,
78 QVariant decorate(
const QModelIndex & index,
int role = Qt::DecorationRole)
const;
82 QString iconName(
int index)
const;
84 bool matches(
const QModelIndex & index,
const QVariantMap & properties)
const;
92 void setHighlightRole(
int role);
94 void setDefaultDecoration(
const QString & set,
const QString & name);
98 QVariant value(
int index)
const;
100 bool equal(
const QVariant & left,
const QVariant & right)
const;
101 bool greaterOrEqualThan(
const QVariant & left,
const QVariant & right)
const;
102 bool greaterThan(
const QVariant & left,
const QVariant & right)
const;
103 bool lessOrEqualThan(
const QVariant & left,
const QVariant & right)
const;
104 bool lessThan(
const QVariant & left,
const QVariant & right)
const;
107 #endif // QCONDITONALDECORATION_H
QMap< QString, QVariant > properties() const
Definition: qabstractmodelitemdecoration.cpp:64
The QConditionalDecoration provides a conditional decorarion for model items.
Definition: qconditionaldecoration.h:30
Definition: qconditionaldecoration.h:46
Definition: qconditionaldecoration.h:45
Definition: qconditionaldecoration.h:39
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
MatchFlag
Definition: qconditionaldecoration.h:36
Definition: qconditionaldecoration.h:49
Definition: qconditionaldecoration.h:44
Definition: qconditionaldecoration.h:51
Definition: qconditionaldecoration.h:50
Definition: qconditionaldecoration.h:41
Definition: qconditionaldecoration.h:40
Definition: qconditionaldecoration.h:42
Definition: qconditionaldecoration.h:47
Definition: qconditionaldecoration.h:43
Definition: qconditionaldecoration.h:48
Definition: qconditionaldecoration.h:52