Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlSortFilterProxyModelPrivate Class Reference

#include <qqmlsortfilterproxymodel_p_p.h>

Inheritance diagram for QQmlSortFilterProxyModelPrivate:
Collaboration diagram for QQmlSortFilterProxyModelPrivate:

Public Member Functions

void init ()
bool containRoleForRecursiveFilter (const QList< int > &roles) const
bool recursiveParentAcceptsRow (const QModelIndex &source_parent) const
bool recursiveChildAcceptsRow (int source_row, const QModelIndex &source_parent) const
QList< std::pair< int, QList< int > > > proxy_intervals_for_source_items_to_add (const QList< int > &proxy_to_source, const QList< int > &source_items, const QModelIndex &source_parent, QSortFilterProxyModelHelper::Direction direction) const override
bool needsReorder (const QList< int > &source_rows, const QModelIndex &source_parent) const
bool updatePrimaryColumn ()
int findPrimarySortColumn () const
void changePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to) override
void beginInsertRows (const QModelIndex &parent, int first, int last) override
void beginInsertColumns (const QModelIndex &parent, int first, int last) override
void endInsertRows () override
void endInsertColumns () override
void beginRemoveRows (const QModelIndex &parent, int first, int last) override
void beginRemoveColumns (const QModelIndex &parent, int first, int last) override
void endRemoveRows () override
void endRemoveColumns () override
void beginResetModel () override
void endResetModel () override
void _q_sourceDataChanged (const QModelIndex &source_top_left, const QModelIndex &source_bottom_right, const QList< int > &roles)
void _q_sourceHeaderDataChanged (Qt::Orientation orientation, int start, int end)
void _q_sourceAboutToBeReset ()
void _q_sourceReset ()
void _q_clearMapping ()
void _q_sourceLayoutAboutToBeChanged (const QList< QPersistentModelIndex > &sourceParents, QAbstractItemModel::LayoutChangeHint hint)
void _q_sourceLayoutChanged (const QList< QPersistentModelIndex > &sourceParents, QAbstractItemModel::LayoutChangeHint hint)
void _q_sourceRowsAboutToBeInserted (const QModelIndex &source_parent, int start, int end)
void _q_sourceRowsInserted (const QModelIndex &source_parent, int start, int end)
void _q_sourceRowsAboutToBeRemoved (const QModelIndex &source_parent, int start, int end)
void _q_sourceRowsRemoved (const QModelIndex &source_parent, int start, int end)
void _q_sourceRowsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest)
void _q_sourceRowsMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest)
void _q_sourceColumnsAboutToBeInserted (const QModelIndex &source_parent, int start, int end)
void _q_sourceColumnsInserted (const QModelIndex &source_parent, int start, int end)
void _q_sourceColumnsAboutToBeRemoved (const QModelIndex &source_parent, int start, int end)
void _q_sourceColumnsRemoved (const QModelIndex &source_parent, int start, int end)
void _q_sourceColumnsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest)
void _q_sourceColumnsMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destParent, int dest)
const QAbstractProxyModelproxyModel () const override
QModelIndex createIndex (int row, int column, QHash< QtPrivate::QModelIndexWrapper, QSortFilterProxyModelHelper::Mapping * >::const_iterator it) const override
bool filterAcceptsRowInternal (int sourceRow, const QModelIndex &sourceIndex) const override
bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override
bool filterAcceptsColumnInternal (int sourceColumn, const QModelIndex &sourceIndex) const override
bool filterAcceptsColumn (int source_column, const QModelIndex &source_parent) const override
void sort_source_rows (QList< int > &source_rows, const QModelIndex &source_parent) const override
bool lessThan (const QModelIndex &source_left, const QModelIndex &source_right) const override
Public Member Functions inherited from QAbstractProxyModelPrivate
 QAbstractProxyModelPrivate ()
void setModelForwarder (QAbstractItemModel *sourceModel)
void modelChangedForwarder ()
QAbstractItemModelgetModelForwarder () const
 Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QAbstractProxyModelPrivate, QAbstractItemModel *, model, &QAbstractProxyModelPrivate::setModelForwarder, &QAbstractProxyModelPrivate::modelChangedForwarder, &QAbstractProxyModelPrivate::getModelForwarder, nullptr) virtual void _q_sourceModelDestroyed()
void _q_sourceModelRowsAboutToBeInserted (const QModelIndex &parent, int first, int last)
void _q_sourceModelRowsInserted (const QModelIndex &parent, int first, int last)
void _q_sourceModelRowsRemoved (const QModelIndex &parent, int first, int last)
void _q_sourceModelColumnsAboutToBeInserted (const QModelIndex &parent, int first, int last)
void _q_sourceModelColumnsInserted (const QModelIndex &parent, int first, int last)
void _q_sourceModelColumnsRemoved (const QModelIndex &parent, int first, int last)
void mapDropCoordinatesToSource (int row, int column, const QModelIndex &parent, int *source_row, int *source_column, QModelIndex *source_parent) const
void scheduleHeaderUpdate (Qt::Orientation orientation)
void emitHeaderDataChanged ()
Public Member Functions inherited from QAbstractItemModelPrivate
 QAbstractItemModelPrivate ()
 ~QAbstractItemModelPrivate ()
void removePersistentIndexData (QPersistentModelIndexData *data)
void movePersistentIndexes (const QList< QPersistentModelIndexData * > &indexes, int change, const QModelIndex &parent, Qt::Orientation orientation)
void rowsAboutToBeInserted (const QModelIndex &parent, int first, int last)
void rowsInserted (const QModelIndex &parent, int first, int last)
void rowsAboutToBeRemoved (const QModelIndex &parent, int first, int last)
void rowsRemoved (const QModelIndex &parent, int first, int last)
void columnsAboutToBeInserted (const QModelIndex &parent, int first, int last)
void columnsInserted (const QModelIndex &parent, int first, int last)
void columnsAboutToBeRemoved (const QModelIndex &parent, int first, int last)
void columnsRemoved (const QModelIndex &parent, int first, int last)
void itemsAboutToBeMoved (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation)
void itemsMoved (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation)
bool allowMove (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation)
 Returns whether a move operation is valid.
virtual void executePendingOperations () const
QModelIndex createIndex (int row, int column, void *data=nullptr) const
QModelIndex createIndex (int row, int column, int id) const
bool indexValid (const QModelIndex &index) const
void invalidatePersistentIndexes ()
void invalidatePersistentIndex (const QModelIndex &index)
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
void setParent_helper (QObject *)
void moveToThread_helper ()
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
QObjectList receiverList (const char *signal) const
void ensureConnectionData ()
void addConnection (int signal, Connection *c)
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
bool maybeSignalConnected (uint signalIndex) const
bool isDeclarativeSignalConnected (uint signalIdx) const
void connectNotify (const QMetaMethod &signal)
void disconnectNotify (const QMetaMethod &signal)
void reinitBindingStorageAfterThreadMove ()
virtual std::string flagsForDumping () const
virtual void writeToDebugStream (QDebug &) const
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
Public Member Functions inherited from QObjectData
 QObjectData ()=default
virtual ~QObjectData ()=0
const QMetaObjectdynamicMetaObject () const
Public Member Functions inherited from QSortFilterProxyModelHelper
 QSortFilterProxyModelHelper ()
virtual ~QSortFilterProxyModelHelper ()
IndexMap::const_iterator index_to_iterator (const QModelIndex &proxy_index) const
IndexMap::const_iterator create_mapping (const QModelIndex &source_parent) const
IndexMap::const_iterator create_mapping_recursive (const QModelIndex &source_parent) const
bool can_create_mapping (const QModelIndex &source_parent) const
void remove_from_mapping (const QModelIndex &source_parent)
void clearSourceIndexMapping ()
QModelIndex source_to_proxy (const QModelIndex &source_index) const
void build_source_to_proxy_mapping (QList< int > &proxy_to_source, QList< int > &source_to_proxy, int start=0) const
QModelIndex proxy_to_source (const QModelIndex &proxy_index) const
void updateChildrenMapping (const QModelIndex &source_parent, Mapping *parent_mapping, Direction direction, int start, int end, int delta_item_count, bool remove)
void proxy_item_range (const QList< int > &source_to_proxy, const QList< int > &source_items, int &proxy_low, int &proxy_high) const
QModelIndexPairList store_persistent_indexes () const
void update_persistent_indexes (const QModelIndexPairList &source_indexes)
virtual void filter_changed (Direction dir=Direction::Both, const QModelIndex &source_parent=QModelIndex())
virtual QSet< int > handle_filter_changed (QList< int > &source_to_proxy, QList< int > &proxy_to_source, const QModelIndex &source_parent, Direction direction)
virtual void insert_source_items (QList< int > &source_to_proxy, QList< int > &proxy_to_source, const QList< int > &source_items, const QModelIndex &source_parent, Direction direction, bool emit_signal=true)
virtual void source_items_inserted (const QModelIndex &source_parent, int start, int end, Direction direction)
virtual void source_items_about_to_be_removed (const QModelIndex &source_parent, int start, int end, Direction direction)
virtual void source_items_removed (const QModelIndex &source_parent, int start, int end, Direction direction)
virtual void remove_source_items (QList< int > &source_to_proxy, QList< int > &proxy_to_source, const QList< int > &source_items, const QModelIndex &source_parent, Direction direction, bool emit_signal=true)
virtual void remove_proxy_interval (QList< int > &source_to_proxy, QList< int > &proxy_to_source, int proxy_start, int proxy_end, const QModelIndex &proxy_parent, Direction direction, bool emit_signal=true)
virtual QList< std::pair< int, int > > proxy_intervals_for_source_items (const QList< int > &source_to_proxy, const QList< int > &source_items) const
virtual void sort ()

Public Attributes

QModelIndex m_lastTopSource
QRowsRemoval m_itemsBeingRemoved
bool m_completeInsert = false
QModelIndexPairList m_savedPersistentIndexes
QList< QPersistentModelIndexm_savedLayoutChangeParents
std::array< QMetaObject::Connection, 18 > m_sourceConnections
bool m_componentCompleted = false
QQmlFilterCompositorm_filters
QQmlSorterCompositorm_sorters
bool m_dynamicSortFilter = true
bool m_recursiveFiltering = false
bool m_autoAcceptChildRows = false
int m_primarySortColumn = -1
int m_proxySortColumn = -1
Qt::SortOrder m_sortOrder = Qt::AscendingOrder
QVariant m_sourceModel
Public Attributes inherited from QAbstractProxyModelPrivate
unsigned int sourceHadZeroRows: 1
unsigned int sourceHadZeroColumns: 1
unsigned int updateVerticalHeader: 1
unsigned int updateHorizontalHeader: 1
Public Attributes inherited from QAbstractItemModelPrivate
QStack< Changechanges
struct QAbstractItemModelPrivate::Persistent persistent
bool resetting = false
Public Attributes inherited from QObjectPrivate
ExtraDataextraData
QAtomicPointer< QThreadDatathreadData
QAtomicPointer< ConnectionDataconnections
union { 
   QObject *   currentChildBeingDeleted 
   QAbstractDeclarativeData *   declarativeData 
}; 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
Public Attributes inherited from QObjectData
QObjectq_ptr
QObjectparent
QObjectList children
uint isWidget: 1
uint blockSig: 1
uint wasDeleted: 1
uint isDeletingChildren: 1
uint sendChildEvents: 1
uint receiveChildEvents: 1
uint isWindow: 1
uint deleteLaterCalled: 1
uint isQuickItem: 1
uint willBeWidget: 1
uint wasWidget: 1
uint receiveParentEvents: 1
uint unused: 20
QAtomicInt postedEvents
QDynamicMetaObjectDatametaObject
QBindingStorage bindingStorage
Public Attributes inherited from QSortFilterProxyModelHelper
IndexMap source_index_mapping

Additional Inherited Members

Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
Public Types inherited from QSortFilterProxyModelHelper
enum  Direction { Rows = 0x01 , Columns = 0x02 , Both = Rows | Columns }
using IndexMap = QHash<QtPrivate::QModelIndexWrapper, Mapping *>
Static Public Member Functions inherited from QAbstractItemModelPrivate
static const QAbstractItemModelPrivateget (const QAbstractItemModel *model)
static QAbstractItemModelstaticEmptyModel ()
static bool variantLessThan (const QVariant &v1, const QVariant &v2)
static const QHash< int, QByteArray > & defaultRoleNames ()
static bool isVariantLessThan (const QVariant &left, const QVariant &right, Qt::CaseSensitivity cs=Qt::CaseSensitive, bool isLocaleAware=false)
Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
static QObjectPrivateget (QObject *o)
static const QObjectPrivateget (const QObject *o)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static bool disconnect (const QObject *sender, int signal_index, void **slot)
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
Static Public Member Functions inherited from QSortFilterProxyModelHelper
static void setProperties (QVariant *target, const QQmlSortFilterProxyModel *proxyModel, const QModelIndex &sourceIndex)
static QSet< int > qListToSet (const QList< int > &vector)
Protected Member Functions inherited from QSortFilterProxyModelHelper
virtual QModelIndex createIndex (int, int, IndexMap::const_iterator) const

Detailed Description

Definition at line 26 of file qqmlsortfilterproxymodel_p_p.h.

Member Function Documentation

◆ _q_clearMapping()

void QQmlSortFilterProxyModelPrivate::_q_clearMapping ( )

Definition at line 838 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceAboutToBeReset()

void QQmlSortFilterProxyModelPrivate::_q_sourceAboutToBeReset ( )

Definition at line 1246 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceColumnsAboutToBeInserted()

void QQmlSortFilterProxyModelPrivate::_q_sourceColumnsAboutToBeInserted ( const QModelIndex & source_parent,
int start,
int end )

Definition at line 1434 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceColumnsAboutToBeMoved()

void QQmlSortFilterProxyModelPrivate::_q_sourceColumnsAboutToBeMoved ( const QModelIndex & sourceParent,
int sourceStart,
int sourceEnd,
const QModelIndex & destParent,
int dest )

Definition at line 1494 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceColumnsAboutToBeRemoved()

void QQmlSortFilterProxyModelPrivate::_q_sourceColumnsAboutToBeRemoved ( const QModelIndex & source_parent,
int start,
int end )

Definition at line 1466 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceColumnsInserted()

void QQmlSortFilterProxyModelPrivate::_q_sourceColumnsInserted ( const QModelIndex & source_parent,
int start,
int end )

Definition at line 1446 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceColumnsMoved()

void QQmlSortFilterProxyModelPrivate::_q_sourceColumnsMoved ( const QModelIndex & sourceParent,
int sourceStart,
int sourceEnd,
const QModelIndex & destParent,
int dest )

Definition at line 1504 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceColumnsRemoved()

void QQmlSortFilterProxyModelPrivate::_q_sourceColumnsRemoved ( const QModelIndex & source_parent,
int start,
int end )

Definition at line 1473 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceDataChanged()

void QQmlSortFilterProxyModelPrivate::_q_sourceDataChanged ( const QModelIndex & source_top_left,
const QModelIndex & source_bottom_right,
const QList< int > & roles )

Definition at line 1056 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceHeaderDataChanged()

void QQmlSortFilterProxyModelPrivate::_q_sourceHeaderDataChanged ( Qt::Orientation orientation,
int start,
int end )

Definition at line 1204 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceLayoutAboutToBeChanged()

void QQmlSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged ( const QList< QPersistentModelIndex > & sourceParents,
QAbstractItemModel::LayoutChangeHint hint )

Definition at line 1263 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceLayoutChanged()

void QQmlSortFilterProxyModelPrivate::_q_sourceLayoutChanged ( const QList< QPersistentModelIndex > & sourceParents,
QAbstractItemModel::LayoutChangeHint hint )

Definition at line 1292 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceReset()

void QQmlSortFilterProxyModelPrivate::_q_sourceReset ( )

Definition at line 1252 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceRowsAboutToBeInserted()

void QQmlSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeInserted ( const QModelIndex & source_parent,
int start,
int end )

Definition at line 1314 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceRowsAboutToBeMoved()

void QQmlSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeMoved ( const QModelIndex & sourceParent,
int sourceStart,
int sourceEnd,
const QModelIndex & destParent,
int dest )

Definition at line 1409 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceRowsAboutToBeRemoved()

void QQmlSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeRemoved ( const QModelIndex & source_parent,
int start,
int end )

Definition at line 1373 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceRowsInserted()

void QQmlSortFilterProxyModelPrivate::_q_sourceRowsInserted ( const QModelIndex & source_parent,
int start,
int end )

Definition at line 1347 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceRowsMoved()

void QQmlSortFilterProxyModelPrivate::_q_sourceRowsMoved ( const QModelIndex & sourceParent,
int sourceStart,
int sourceEnd,
const QModelIndex & destParent,
int dest )

Definition at line 1424 of file qqmlsortfilterproxymodel.cpp.

◆ _q_sourceRowsRemoved()

void QQmlSortFilterProxyModelPrivate::_q_sourceRowsRemoved ( const QModelIndex & source_parent,
int start,
int end )

Definition at line 1381 of file qqmlsortfilterproxymodel.cpp.

◆ beginInsertColumns()

void QQmlSortFilterProxyModelPrivate::beginInsertColumns ( const QModelIndex & parent,
int first,
int last )
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1590 of file qqmlsortfilterproxymodel.cpp.

◆ beginInsertRows()

void QQmlSortFilterProxyModelPrivate::beginInsertRows ( const QModelIndex & parent,
int first,
int last )
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1582 of file qqmlsortfilterproxymodel.cpp.

◆ beginRemoveColumns()

void QQmlSortFilterProxyModelPrivate::beginRemoveColumns ( const QModelIndex & parent,
int first,
int last )
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1622 of file qqmlsortfilterproxymodel.cpp.

◆ beginRemoveRows()

void QQmlSortFilterProxyModelPrivate::beginRemoveRows ( const QModelIndex & parent,
int first,
int last )
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1614 of file qqmlsortfilterproxymodel.cpp.

◆ beginResetModel()

void QQmlSortFilterProxyModelPrivate::beginResetModel ( )
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1646 of file qqmlsortfilterproxymodel.cpp.

◆ changePersistentIndexList()

void QQmlSortFilterProxyModelPrivate::changePersistentIndexList ( const QModelIndexList & from,
const QModelIndexList & to )
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1574 of file qqmlsortfilterproxymodel.cpp.

◆ containRoleForRecursiveFilter()

bool QQmlSortFilterProxyModelPrivate::containRoleForRecursiveFilter ( const QList< int > & roles) const

Definition at line 1517 of file qqmlsortfilterproxymodel.cpp.

◆ createIndex()

QModelIndex QQmlSortFilterProxyModelPrivate::createIndex ( int row,
int column,
QHash< QtPrivate::QModelIndexWrapper, QSortFilterProxyModelHelper::Mapping * >::const_iterator it ) const
override

Definition at line 1566 of file qqmlsortfilterproxymodel.cpp.

◆ endInsertColumns()

void QQmlSortFilterProxyModelPrivate::endInsertColumns ( )
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1606 of file qqmlsortfilterproxymodel.cpp.

◆ endInsertRows()

void QQmlSortFilterProxyModelPrivate::endInsertRows ( )
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1598 of file qqmlsortfilterproxymodel.cpp.

◆ endRemoveColumns()

void QQmlSortFilterProxyModelPrivate::endRemoveColumns ( )
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1638 of file qqmlsortfilterproxymodel.cpp.

◆ endRemoveRows()

void QQmlSortFilterProxyModelPrivate::endRemoveRows ( )
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1630 of file qqmlsortfilterproxymodel.cpp.

◆ endResetModel()

void QQmlSortFilterProxyModelPrivate::endResetModel ( )
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1654 of file qqmlsortfilterproxymodel.cpp.

◆ filterAcceptsColumn()

bool QQmlSortFilterProxyModelPrivate::filterAcceptsColumn ( int source_column,
const QModelIndex & source_parent ) const
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1669 of file qqmlsortfilterproxymodel.cpp.

◆ filterAcceptsColumnInternal()

bool QQmlSortFilterProxyModelPrivate::filterAcceptsColumnInternal ( int row,
const QModelIndex & sourceIndex ) const
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1557 of file qqmlsortfilterproxymodel.cpp.

◆ filterAcceptsRow()

bool QQmlSortFilterProxyModelPrivate::filterAcceptsRow ( int source_row,
const QModelIndex & source_parent ) const
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1662 of file qqmlsortfilterproxymodel.cpp.

◆ filterAcceptsRowInternal()

bool QQmlSortFilterProxyModelPrivate::filterAcceptsRowInternal ( int row,
const QModelIndex & sourceIndex ) const
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1545 of file qqmlsortfilterproxymodel.cpp.

◆ findPrimarySortColumn()

int QQmlSortFilterProxyModelPrivate::findPrimarySortColumn ( ) const

Find the primary sort column without creating a full mapping and without updating anything.

Definition at line 909 of file qqmlsortfilterproxymodel.cpp.

◆ init()

void QQmlSortFilterProxyModelPrivate::init ( )

Definition at line 827 of file qqmlsortfilterproxymodel.cpp.

◆ lessThan()

bool QQmlSortFilterProxyModelPrivate::lessThan ( const QModelIndex & source_left,
const QModelIndex & source_right ) const
overridevirtual

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 1676 of file qqmlsortfilterproxymodel.cpp.

◆ needsReorder()

bool QQmlSortFilterProxyModelPrivate::needsReorder ( const QList< int > & source_rows,
const QModelIndex & source_parent ) const

Definition at line 1028 of file qqmlsortfilterproxymodel.cpp.

◆ proxy_intervals_for_source_items_to_add()

QList< std::pair< int, QList< int > > > QQmlSortFilterProxyModelPrivate::proxy_intervals_for_source_items_to_add ( const QList< int > & proxy_to_source,
const QList< int > & source_items,
const QModelIndex & source_parent,
QSortFilterProxyModelHelper::Direction direction ) const
overridevirtual

Given proxy-to-source mapping proxy_to_source and a set of unmapped source items source_items, determines the proxy item intervals at which the subsets of source items should be inserted (but does not actually add them to the mapping).

The result is a vector of pairs, each pair representing a tuple (start, items), where items is a vector containing the (sorted) source items that should be inserted at that proxy model location.

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 964 of file qqmlsortfilterproxymodel.cpp.

◆ proxyModel()

const QAbstractProxyModel * QQmlSortFilterProxyModelPrivate::proxyModel ( ) const
inlineoverridevirtual

Implements QSortFilterProxyModelHelper.

Definition at line 98 of file qqmlsortfilterproxymodel_p_p.h.

◆ recursiveChildAcceptsRow()

bool QQmlSortFilterProxyModelPrivate::recursiveChildAcceptsRow ( int source_row,
const QModelIndex & source_parent ) const

Definition at line 863 of file qqmlsortfilterproxymodel.cpp.

◆ recursiveParentAcceptsRow()

bool QQmlSortFilterProxyModelPrivate::recursiveParentAcceptsRow ( const QModelIndex & source_parent) const

Definition at line 851 of file qqmlsortfilterproxymodel.cpp.

◆ sort_source_rows()

void QQmlSortFilterProxyModelPrivate::sort_source_rows ( QList< int > & source_rows,
const QModelIndex & source_parent ) const
overridevirtual

Sorts the given source_rows according to current sort column and order.

Reimplemented from QSortFilterProxyModelHelper.

Definition at line 934 of file qqmlsortfilterproxymodel.cpp.

◆ updatePrimaryColumn()

bool QQmlSortFilterProxyModelPrivate::updatePrimaryColumn ( )

Update the primary sort column according to the m_proxySortColumn return true if the column was changed

Definition at line 883 of file qqmlsortfilterproxymodel.cpp.

Member Data Documentation

◆ m_autoAcceptChildRows

bool QQmlSortFilterProxyModelPrivate::m_autoAcceptChildRows = false

Definition at line 122 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_completeInsert

bool QQmlSortFilterProxyModelPrivate::m_completeInsert = false

Definition at line 111 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_componentCompleted

bool QQmlSortFilterProxyModelPrivate::m_componentCompleted = false

Definition at line 115 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_dynamicSortFilter

bool QQmlSortFilterProxyModelPrivate::m_dynamicSortFilter = true

Definition at line 120 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_filters

QQmlFilterCompositor* QQmlSortFilterProxyModelPrivate::m_filters

Definition at line 118 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_itemsBeingRemoved

QRowsRemoval QQmlSortFilterProxyModelPrivate::m_itemsBeingRemoved

Definition at line 110 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_lastTopSource

QModelIndex QQmlSortFilterProxyModelPrivate::m_lastTopSource

Definition at line 109 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_primarySortColumn

int QQmlSortFilterProxyModelPrivate::m_primarySortColumn = -1

Definition at line 123 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_proxySortColumn

int QQmlSortFilterProxyModelPrivate::m_proxySortColumn = -1

Definition at line 124 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_recursiveFiltering

bool QQmlSortFilterProxyModelPrivate::m_recursiveFiltering = false

Definition at line 121 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_savedLayoutChangeParents

QList<QPersistentModelIndex> QQmlSortFilterProxyModelPrivate::m_savedLayoutChangeParents

Definition at line 113 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_savedPersistentIndexes

QModelIndexPairList QQmlSortFilterProxyModelPrivate::m_savedPersistentIndexes

Definition at line 112 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_sorters

QQmlSorterCompositor* QQmlSortFilterProxyModelPrivate::m_sorters

Definition at line 119 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_sortOrder

Qt::SortOrder QQmlSortFilterProxyModelPrivate::m_sortOrder = Qt::AscendingOrder

Definition at line 125 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_sourceConnections

std::array<QMetaObject::Connection, 18> QQmlSortFilterProxyModelPrivate::m_sourceConnections

Definition at line 114 of file qqmlsortfilterproxymodel_p_p.h.

◆ m_sourceModel

QVariant QQmlSortFilterProxyModelPrivate::m_sourceModel

Definition at line 126 of file qqmlsortfilterproxymodel_p_p.h.


The documentation for this class was generated from the following files: