21 #ifndef QUNIQUEVALUESPROXYMODEL_H
22 #define QUNIQUEVALUESPROXYMODEL_H
24 #include <QSortFilterProxyModel>
26 #include <qaivlib_global.h>
28 class QUniqueValuesProxyModelPrivate;
37 Q_PROPERTY(
bool emptyItemsAllowed READ emptyItemsAllowed WRITE setEmptyItemsAllowed)
44 Q_PROPERTY(
int modelColumn READ modelColumn WRITE setModelColumn)
57 QVariant data(const QModelIndex &index,
int role) const;
59 bool emptyItemsAllowed() const;
64 bool filterAcceptsRow(
int source_row, const QModelIndex & source_parent) const;
66 virtual
bool insertRows(
int row,
int count, const QModelIndex & parent = QModelIndex());
71 int modelColumn() const;
75 void setEmptyItemsAllowed(
bool on);
80 void setModelColumn(
int colum);
84 void setSourceModel(QAbstractItemModel* sourceModel);
86 void progressChanged(
int progress);
88 bool isDuplicate(
int row) const;
90 void sourceModelDataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight);
92 QUniqueValuesProxyModelPrivate* d;
95 #endif // QUNQIUEVALUESPROXYMODEL_H
The QUniqueValuesProxyModel provides a filter model remove duplicate values from a source model...
Definition: quniquevaluesproxymodel.h:34