31 Q_PROPERTY(
bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged FINAL)
32 Q_PROPERTY(
bool inverted READ isInverted WRITE setInverted NOTIFY invertedChanged FINAL)
33 Q_PROPERTY(
int column READ column WRITE setColumn NOTIFY columnChanged FINAL)
34 QML_NAMED_ELEMENT(FilterBase)
36 QML_ADDED_IN_VERSION(6, 10)
39 explicit QQmlFilterBase(QQmlFilterBasePrivate *privObj, QObject *parent =
nullptr);
40 virtual ~QQmlFilterBase() =
default;
43 void setEnabled(
const bool bEnable);
45 bool isInverted()
const;
46 void setInverted(
const bool bInvert);
49 void setColumn(
const int column);
51 virtual bool filterAcceptsRowInternal(
int,
const QModelIndex&,
const QQmlSortFilterProxyModel *)
const {
return true; }
52 virtual bool filterAcceptsColumnInternal(
int,
const QModelIndex&,
const QQmlSortFilterProxyModel *)
const {
return true; }
53 virtual void update(
const QQmlSortFilterProxyModel *) { };
56 void invalidateModel();
57 void invalidateCache(QQmlFilterBase *filter);
58 void enabledChanged();
59 void invertedChanged();
63 void invalidate(
bool updateCache =
false);
66 Q_DECLARE_PRIVATE(QQmlFilterBase)