21 #ifndef QSELECTIONLISTFILTER_H
22 #define QSELECTIONLISTFILTER_H
24 #include <qabstractfilter.h>
25 #include <qaivlib_global.h>
50 QVariant
data(
int role = Qt::DisplayRole)
const;
54 QSelectionListFilter::DataSource dataSource()
const;
56 bool matches(
const QVariant & value,
int type)
const;
60 void setDataSource(QSelectionListFilter::DataSource source);
64 void setEditorData(QWidget * editor,
const QModelIndex & index);
68 void setModelData(QWidget* editor, QAbstractItemModel * model,
const QModelIndex & index);
70 void setValues(
const QVariantList & values);
74 void updateEditorGeometry(QWidget* editor,
const QStyleOptionViewItem & option,
const QModelIndex & index);
77 #endif // QSELECTIONLISTFILTER_H
virtual QVariant data(int role=Qt::DisplayRole) const =0
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
The QSelectionListFilter class implements the filter with a fixed selection list. ...
Definition: qselectionlistfilter.h:32
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