KItemModels
ksortfilterproxymodel.cpp
37 connect(this, &KSortFilterProxyModel::modelReset, this, &KSortFilterProxyModel::rowCountChanged);
38 connect(this, &KSortFilterProxyModel::rowsInserted, this, &KSortFilterProxyModel::rowCountChanged);
39 connect(this, &KSortFilterProxyModel::rowsRemoved, this, &KSortFilterProxyModel::rowCountChanged);
41 connect(this, &KSortFilterProxyModel::sortRoleChanged, this, &KSortFilterProxyModel::syncSortRoleProperties);
42 connect(this, &KSortFilterProxyModel::filterRoleChanged, this, &KSortFilterProxyModel::syncFilterRoleProperties);
96 // NOTE: some models actually fill their roleNames() only when they get some actual data, this works around the bad behavior
110bool KSortFilterProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
129bool KSortFilterProxyModel::filterAcceptsColumn(int source_column, const QModelIndex &source_parent) const
void modelReset()
void rowsInserted(const QModelIndex &parent, int first, int last)
void rowsRemoved(const QModelIndex &parent, int first, int last)
virtual QHash< int, QByteArray > roleNames() const const override
sourceModel
void clear()
const_iterator constBegin() const const
const_iterator constEnd() const const
qsizetype count() const const
Key key(const T &value) const const
void reserve(qsizetype size)
T value(const Key &key) const const
QJSValue toScriptValue(const T &value)
QJSValue call(const QJSValueList &args) const const
bool isCallable() const const
bool isError() const const
bool isNull() const const
bool strictlyEquals(const QJSValue &other) const const
bool toBool() const const
QString toString() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
T qobject_cast(QObject *object)
virtual bool filterAcceptsColumn(int source_column, const QModelIndex &source_parent) const const
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const const
void setFilterRole(int role)
void filterRoleChanged(int filterRole)
void invalidateFilter()
void setFilterFixedString(const QString &pattern)
virtual void setSourceModel(QAbstractItemModel *sourceModel) override
virtual void sort(int column, Qt::SortOrder order) override
void setSortRole(int role)
void sortRoleChanged(int sortRole)
QString fromUtf8(QByteArrayView str)
bool isEmpty() const const
DisplayRole
AscendingOrder
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:34 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:34 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.