KItemModels
ksortfilterproxymodel.h
33 * The string for the filter, only rows with their filterRole matching filterString will be displayed
35 Q_PROPERTY(QString filterString READ filterString WRITE setFilterString NOTIFY filterStringChanged)
41 * whether the row is accepted (true) or filtered out (false). It overrides the default implementation
43 * ignored. Attempts to write a non-callable to this property are silently ignored, but you can set
48 * return sourceModel.data(sourceModel.index(source_row, 0, source_parent), Qt.DisplayRole) == "...";
52 Q_PROPERTY(QJSValue filterRowCallback READ filterRowCallback WRITE setFilterRowCallback NOTIFY filterRowCallbackChanged)
60 Q_PROPERTY(QJSValue filterColumnCallback READ filterColumnCallback WRITE setFilterColumnCallback NOTIFY filterColumnCallbackChanged)
66 Q_PROPERTY(QString filterRoleName READ filterRoleName WRITE setFilterRoleName NOTIFY filterRoleNameChanged)
69 * The role of the sourceModel that will be used for sorting. if empty the order will be left unaltered
72 Q_PROPERTY(QString sortRoleName READ sortRoleName WRITE setSortRoleName NOTIFY sortRoleNameChanged)
QJSValue filterRowCallback
A JavaScript callable that can be used to perform advanced filters on a given row.
Definition ksortfilterproxymodel.h:52
QString sortRoleName
The role of the sourceModel that will be used for sorting.
Definition ksortfilterproxymodel.h:72
Qt::SortOrder sortOrder
One of Qt.AscendingOrder or Qt.DescendingOrder.
Definition ksortfilterproxymodel.h:77
QString filterRoleName
The role of the sourceModel on which the filter will be applied.
Definition ksortfilterproxymodel.h:66
int sortColumn
Specify which column should be used for sorting The default value is -1.
Definition ksortfilterproxymodel.h:84
QJSValue filterColumnCallback
A JavaScript callable that can be used to perform advanced filters on a given column.
Definition ksortfilterproxymodel.h:60
QML_ELEMENTQString filterString
The string for the filter, only rows with their filterRole matching filterString will be displayed.
Definition ksortfilterproxymodel.h:35
QAbstractItemModel(QObject *parent)
sourceModel
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QSortFilterProxyModel(QObject *parent)
virtual QModelIndex parent(const QModelIndex &child) const const override
virtual int rowCount(const QModelIndex &parent) const const override
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:04:43 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:04:43 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.