21 #ifndef QVALUEFILTER_H
22 #define QVALUEFILTER_H
24 #include <qabstractfilter.h>
25 #include <qaivlib_global.h>
54 QVariant
data(
int role = Qt::DisplayRole)
const;
56 bool matches(
const QVariant & value,
int type)
const;
60 void setEditorData(QWidget * editor,
const QModelIndex & index);
64 void setModelData(QWidget* editor, QAbstractItemModel * model,
const QModelIndex & index);
68 void updateEditorGeometry(QWidget* editor,
const QStyleOptionViewItem & option,
const QModelIndex & index);
73 #endif // QVALUEFILTER_H
virtual QVariant data(int role=Qt::DisplayRole) const =0
The QValueFilter class implements a value type aware filter.
Definition: qvaluefilter.h:31
The QAbstractFilter class provides a base class for filter definitions used with a QAdvancedTableView...
Definition: qabstractfilter.h:41
virtual QWidget * createEditor(QFilterViewItemDelegate *delegate, QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const =0
virtual void setEditorData(QWidget *editor, const QModelIndex &index)=0
virtual bool matches(const QVariant &value, int type=-1) const =0
The QFilterViewItemDelegate class provides display and editing facilities for filter from a filter mo...
Definition: qfilterviewitemdelegate.h:30