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
QSortFilterProxyModelPrivate Class Reference
Inheritance diagram for QSortFilterProxyModelPrivate:
Collaboration diagram for QSortFilterProxyModelPrivate:

Classes

struct  Mapping

Public Types

using Direction = QSortFilterProxyModel::Direction
using Directions = QSortFilterProxyModel::Directions
using Direction = QSortFilterProxyModel::Direction
using Directions = QSortFilterProxyModel::Directions
Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>

Public Member Functions

void setSortCaseSensitivityForwarder (Qt::CaseSensitivity cs)
void sortCaseSensitivityChangedForwarder (Qt::CaseSensitivity cs)
void setSortRoleForwarder (int role)
void sortRoleChangedForwarder (int role)
void setSortLocaleAwareForwarder (bool on)
void sortLocaleAwareChangedForwarder (bool on)
void setFilterKeyColumnForwarder (int column)
void setFilterRoleForwarder (int role)
void filterRoleChangedForwarder (int role)
void setRecursiveFilteringEnabledForwarder (bool recursive)
void recursiveFilteringEnabledChangedForwarder (bool recursive)
void setAutoAcceptChildRowsForwarder (bool accept)
void autoAcceptChildRowsChangedForwarder (bool accept)
void setDynamicSortFilterForwarder (bool enable)
void setFilterCaseSensitivityForwarder (Qt::CaseSensitivity cs)
void filterCaseSensitivityChangedForwarder (Qt::CaseSensitivity cs)
void setFilterRegularExpressionForwarder (const QRegularExpression &re)
 Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSortFilterProxyModelPrivate, Qt::CaseSensitivity, sort_casesensitivity, &QSortFilterProxyModelPrivate::setSortCaseSensitivityForwarder, &QSortFilterProxyModelPrivate::sortCaseSensitivityChangedForwarder, Qt::CaseSensitive) Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QSortFilterProxyModelPrivate
Qt::DisplayRole Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSortFilterProxyModelPrivate, int, filter_column, &QSortFilterProxyModelPrivate::setFilterKeyColumnForwarder, 0) Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QSortFilterProxyModelPrivate
Qt::DisplayRole Qt::DisplayRole Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSortFilterProxyModelPrivate, bool, sort_localeaware, &QSortFilterProxyModelPrivate::setSortLocaleAwareForwarder, &QSortFilterProxyModelPrivate::sortLocaleAwareChangedForwarder, false) Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QSortFilterProxyModelPrivate
Qt::DisplayRole Qt::DisplayRole false Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSortFilterProxyModelPrivate, bool, accept_children, &QSortFilterProxyModelPrivate::setAutoAcceptChildRowsForwarder, &QSortFilterProxyModelPrivate::autoAcceptChildRowsChangedForwarder, false) Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QSortFilterProxyModelPrivate
Qt::DisplayRole Qt::DisplayRole false true Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSortFilterProxyModelPrivate, Qt::CaseSensitivity, filter_casesensitive, &QSortFilterProxyModelPrivate::setFilterCaseSensitivityForwarder, &QSortFilterProxyModelPrivate::filterCaseSensitivityChangedForwarder, Qt::CaseSensitive) Q_OBJECT_COMPAT_PROPERTY(QSortFilterProxyModelPrivate
QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator create_mapping (const QModelIndex &source_parent) const
QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator create_mapping_recursive (const QModelIndex &source_parent) const
QModelIndex proxy_to_source (const QModelIndex &proxyIndex) const
QModelIndex source_to_proxy (const QModelIndex &sourceIndex) const
bool can_create_mapping (const QModelIndex &source_parent) const
void remove_from_mapping (const QModelIndex &source_parent)
void set_filter_pattern (const QString &pattern)
QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator index_to_iterator (const QModelIndex &proxy_index) const
QModelIndex create_index (int row, int column, QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator it) const
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_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)
void _q_clearMapping ()
void sort ()
bool update_source_sort_column ()
int find_source_sort_column () const
void sort_source_rows (QList< int > &source_rows, 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, Direction direction) const
QList< std::pair< int, int > > proxy_intervals_for_source_items (const QList< int > &source_to_proxy, const QList< int > &source_items) const
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)
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)
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)
void source_items_inserted (const QModelIndex &source_parent, int start, int end, Direction direction)
void source_items_about_to_be_removed (const QModelIndex &source_parent, int start, int end, Direction direction)
void source_items_removed (const QModelIndex &source_parent, int start, int end, Direction direction)
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)
void filter_about_to_be_changed (const QModelIndex &source_parent=QModelIndex())
void filter_changed (Directions directions, const QModelIndex &source_parent=QModelIndex())
QSet< inthandle_filter_changed (QList< int > &source_to_proxy, QList< int > &proxy_to_source, const QModelIndex &source_parent, Direction direction)
void updateChildrenMapping (const QModelIndex &source_parent, Mapping *parent_mapping, Direction direction, int start, int end, int delta_item_count, bool remove)
void _q_sourceModelDestroyed () override
bool needsReorder (const QList< int > &source_rows, const QModelIndex &source_parent) const
bool filterAcceptsRowInternal (int source_row, const QModelIndex &source_parent) const
bool recursiveChildAcceptsRow (int source_row, const QModelIndex &source_parent) const
bool recursiveParentAcceptsRow (const QModelIndex &source_parent) const
void setSortCaseSensitivityForwarder (Qt::CaseSensitivity cs)
void sortCaseSensitivityChangedForwarder (Qt::CaseSensitivity cs)
void setSortRoleForwarder (int role)
void sortRoleChangedForwarder (int role)
void setSortLocaleAwareForwarder (bool on)
void sortLocaleAwareChangedForwarder (bool on)
void setFilterKeyColumnForwarder (int column)
void setFilterRoleForwarder (int role)
void filterRoleChangedForwarder (int role)
void setRecursiveFilteringEnabledForwarder (bool recursive)
void recursiveFilteringEnabledChangedForwarder (bool recursive)
void setAutoAcceptChildRowsForwarder (bool accept)
void autoAcceptChildRowsChangedForwarder (bool accept)
void setDynamicSortFilterForwarder (bool enable)
void setFilterCaseSensitivityForwarder (Qt::CaseSensitivity cs)
void filterCaseSensitivityChangedForwarder (Qt::CaseSensitivity cs)
void setFilterRegularExpressionForwarder (const QRegularExpression &re)
 Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSortFilterProxyModelPrivate, Qt::CaseSensitivity, sort_casesensitivity, &QSortFilterProxyModelPrivate::setSortCaseSensitivityForwarder, &QSortFilterProxyModelPrivate::sortCaseSensitivityChangedForwarder, Qt::CaseSensitive) Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QSortFilterProxyModelPrivate
Qt::DisplayRole Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSortFilterProxyModelPrivate, int, filter_column, &QSortFilterProxyModelPrivate::setFilterKeyColumnForwarder, 0) Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QSortFilterProxyModelPrivate
Qt::DisplayRole Qt::DisplayRole Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSortFilterProxyModelPrivate, bool, sort_localeaware, &QSortFilterProxyModelPrivate::setSortLocaleAwareForwarder, &QSortFilterProxyModelPrivate::sortLocaleAwareChangedForwarder, false) Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QSortFilterProxyModelPrivate
Qt::DisplayRole Qt::DisplayRole false Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSortFilterProxyModelPrivate, bool, accept_children, &QSortFilterProxyModelPrivate::setAutoAcceptChildRowsForwarder, &QSortFilterProxyModelPrivate::autoAcceptChildRowsChangedForwarder, false) Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QSortFilterProxyModelPrivate
Qt::DisplayRole Qt::DisplayRole false true Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSortFilterProxyModelPrivate, Qt::CaseSensitivity, filter_casesensitive, &QSortFilterProxyModelPrivate::setFilterCaseSensitivityForwarder, &QSortFilterProxyModelPrivate::filterCaseSensitivityChangedForwarder, Qt::CaseSensitive) Q_OBJECT_COMPAT_PROPERTY(QSortFilterProxyModelPrivate
QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator create_mapping (const QModelIndex &source_parent) const
QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator create_mapping_recursive (const QModelIndex &source_parent) const
QModelIndex proxy_to_source (const QModelIndex &proxyIndex) const
QModelIndex source_to_proxy (const QModelIndex &sourceIndex) const
bool can_create_mapping (const QModelIndex &source_parent) const
void remove_from_mapping (const QModelIndex &source_parent)
void set_filter_pattern (const QString &pattern)
QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator index_to_iterator (const QModelIndex &proxy_index) const
QModelIndex create_index (int row, int column, QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator it) const
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_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)
void _q_clearMapping ()
void sort ()
bool update_source_sort_column ()
int find_source_sort_column () const
void sort_source_rows (QList< int > &source_rows, 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, Direction direction) const
QList< std::pair< int, int > > proxy_intervals_for_source_items (const QList< int > &source_to_proxy, const QList< int > &source_items) const
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)
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)
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)
void source_items_inserted (const QModelIndex &source_parent, int start, int end, Direction direction)
void source_items_about_to_be_removed (const QModelIndex &source_parent, int start, int end, Direction direction)
void source_items_removed (const QModelIndex &source_parent, int start, int end, Direction direction)
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)
void filter_about_to_be_changed (const QModelIndex &source_parent=QModelIndex())
void filter_changed (Directions directions, const QModelIndex &source_parent=QModelIndex())
QSet< inthandle_filter_changed (QList< int > &source_to_proxy, QList< int > &proxy_to_source, const QModelIndex &source_parent, Direction direction)
void updateChildrenMapping (const QModelIndex &source_parent, Mapping *parent_mapping, Direction direction, int start, int end, int delta_item_count, bool remove)
void _q_sourceModelDestroyed () override
bool needsReorder (const QList< int > &source_rows, const QModelIndex &source_parent) const
bool filterAcceptsRowInternal (int source_row, const QModelIndex &source_parent) const
bool recursiveChildAcceptsRow (int source_row, const QModelIndex &source_parent) const
bool recursiveParentAcceptsRow (const QModelIndex &source_parent) const
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

Static Public Member Functions

static void build_source_to_proxy_mapping (const QList< int > &proxy_to_source, QList< int > &source_to_proxy, int start=0)
static void build_source_to_proxy_mapping (const QList< int > &proxy_to_source, QList< int > &source_to_proxy, int start=0)
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)

Public Attributes

QHash< QtPrivate::QModelIndexWrapper, Mapping * > source_index_mapping
int source_sort_column = -1
int proxy_sort_column = -1
Qt::SortOrder sort_order = Qt::AscendingOrder
bool complete_insert = false
 int
 sort_role
Qt::DisplayRole int
Qt::DisplayRole filter_role
Qt::DisplayRole Qt::DisplayRole bool
Qt::DisplayRole Qt::DisplayRole filter_recursive
Qt::DisplayRole Qt::DisplayRole false bool
Qt::DisplayRole Qt::DisplayRole false dynamic_sortfilter
Qt::DisplayRole Qt::DisplayRole false true QRegularExpression
Qt::DisplayRole Qt::DisplayRole false true filter_regularexpression
Qt::DisplayRole Qt::DisplayRole false true &QSortFilterProxyModelPrivate::setFilterRegularExpressionForwarder QModelIndex last_top_source
QRowsRemoval itemsBeingRemoved
QModelIndexPairList saved_persistent_indexes
QList< QPersistentModelIndexsaved_layoutChange_parents
std::array< QMetaObject::Connection, 18 > sourceConnections
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

Detailed Description

Definition at line 110 of file qsortfilterproxymodel.cpp.

Member Typedef Documentation

◆ Direction [1/2]

◆ Direction [2/2]

◆ Directions [1/2]

using QSortFilterProxyModelPrivate::Directions = QSortFilterProxyModel::Directions

Definition at line 326 of file qsortfilterproxymodel.cpp.

◆ Directions [2/2]

using QSortFilterProxyModelPrivate::Directions = QSortFilterProxyModel::Directions

Definition at line 326 of file qsortfilterproxymodel.cpp.

Member Function Documentation

◆ _q_clearMapping() [1/2]

void QSortFilterProxyModelPrivate::_q_clearMapping ( )

Definition at line 456 of file qsortfilterproxymodel.cpp.

References find_source_sort_column(), and source_sort_column.

Referenced by _q_sourceReset().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _q_clearMapping() [2/2]

void QSortFilterProxyModelPrivate::_q_clearMapping ( )

◆ _q_sourceAboutToBeReset() [1/2]

void QSortFilterProxyModelPrivate::_q_sourceAboutToBeReset ( )

Definition at line 1584 of file qsortfilterproxymodel.cpp.

◆ _q_sourceAboutToBeReset() [2/2]

void QSortFilterProxyModelPrivate::_q_sourceAboutToBeReset ( )

◆ _q_sourceColumnsAboutToBeInserted() [1/2]

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

Definition at line 1776 of file qsortfilterproxymodel.cpp.

◆ _q_sourceColumnsAboutToBeInserted() [2/2]

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

◆ _q_sourceColumnsAboutToBeMoved() [1/2]

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

Definition at line 1835 of file qsortfilterproxymodel.cpp.

◆ _q_sourceColumnsAboutToBeMoved() [2/2]

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

◆ _q_sourceColumnsAboutToBeRemoved() [1/2]

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

Definition at line 1807 of file qsortfilterproxymodel.cpp.

◆ _q_sourceColumnsAboutToBeRemoved() [2/2]

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

◆ _q_sourceColumnsInserted() [1/2]

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

Definition at line 1787 of file qsortfilterproxymodel.cpp.

References sort(), and source_sort_column.

Here is the call graph for this function:

◆ _q_sourceColumnsInserted() [2/2]

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

◆ _q_sourceColumnsMoved() [1/2]

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

Definition at line 1845 of file qsortfilterproxymodel.cpp.

◆ _q_sourceColumnsMoved() [2/2]

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

◆ _q_sourceColumnsRemoved() [1/2]

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

Definition at line 1814 of file qsortfilterproxymodel.cpp.

References proxy_sort_column, and source_sort_column.

◆ _q_sourceColumnsRemoved() [2/2]

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

◆ _q_sourceDataChanged() [1/2]

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

Definition at line 1398 of file qsortfilterproxymodel.cpp.

◆ _q_sourceDataChanged() [2/2]

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

◆ _q_sourceHeaderDataChanged() [1/2]

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

Definition at line 1542 of file qsortfilterproxymodel.cpp.

◆ _q_sourceHeaderDataChanged() [2/2]

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

◆ _q_sourceLayoutAboutToBeChanged() [1/2]

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

Definition at line 1601 of file qsortfilterproxymodel.cpp.

◆ _q_sourceLayoutAboutToBeChanged() [2/2]

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

◆ _q_sourceLayoutChanged() [1/2]

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

Definition at line 1630 of file qsortfilterproxymodel.cpp.

References find_source_sort_column(), and source_sort_column.

Here is the call graph for this function:

◆ _q_sourceLayoutChanged() [2/2]

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

◆ _q_sourceModelDestroyed() [1/2]

void QSortFilterProxyModelPrivate::_q_sourceModelDestroyed ( )
override

Definition at line 384 of file qsortfilterproxymodel.cpp.

◆ _q_sourceModelDestroyed() [2/2]

void QSortFilterProxyModelPrivate::_q_sourceModelDestroyed ( )
override

◆ _q_sourceReset() [1/2]

void QSortFilterProxyModelPrivate::_q_sourceReset ( )

Definition at line 1590 of file qsortfilterproxymodel.cpp.

References _q_clearMapping(), and sort().

Here is the call graph for this function:

◆ _q_sourceReset() [2/2]

void QSortFilterProxyModelPrivate::_q_sourceReset ( )

◆ _q_sourceRowsAboutToBeInserted() [1/2]

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

Definition at line 1653 of file qsortfilterproxymodel.cpp.

References complete_insert.

◆ _q_sourceRowsAboutToBeInserted() [2/2]

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

◆ _q_sourceRowsAboutToBeMoved() [1/2]

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

Definition at line 1750 of file qsortfilterproxymodel.cpp.

◆ _q_sourceRowsAboutToBeMoved() [2/2]

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

◆ _q_sourceRowsAboutToBeRemoved() [1/2]

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

Definition at line 1714 of file qsortfilterproxymodel.cpp.

◆ _q_sourceRowsAboutToBeRemoved() [2/2]

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

◆ _q_sourceRowsInserted() [1/2]

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

Definition at line 1684 of file qsortfilterproxymodel.cpp.

References complete_insert, and sort().

Here is the call graph for this function:

◆ _q_sourceRowsInserted() [2/2]

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

◆ _q_sourceRowsMoved() [1/2]

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

Definition at line 1766 of file qsortfilterproxymodel.cpp.

◆ _q_sourceRowsMoved() [2/2]

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

◆ _q_sourceRowsRemoved() [1/2]

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

Definition at line 1722 of file qsortfilterproxymodel.cpp.

◆ _q_sourceRowsRemoved() [2/2]

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

◆ autoAcceptChildRowsChangedForwarder() [1/2]

void QSortFilterProxyModelPrivate::autoAcceptChildRowsChangedForwarder ( bool accept)
inline

Definition at line 156 of file qsortfilterproxymodel.cpp.

◆ autoAcceptChildRowsChangedForwarder() [2/2]

void QSortFilterProxyModelPrivate::autoAcceptChildRowsChangedForwarder ( bool accept)
inline

Definition at line 156 of file qsortfilterproxymodel.cpp.

◆ build_source_to_proxy_mapping() [1/2]

void QSortFilterProxyModelPrivate::build_source_to_proxy_mapping ( const QList< int > & proxy_to_source,
QList< int > & source_to_proxy,
int start = 0 )
inlinestatic

Definition at line 1206 of file qsortfilterproxymodel.cpp.

◆ build_source_to_proxy_mapping() [2/2]

void QSortFilterProxyModelPrivate::build_source_to_proxy_mapping ( const QList< int > & proxy_to_source,
QList< int > & source_to_proxy,
int start = 0 )
inlinestatic

◆ can_create_mapping() [1/2]

bool QSortFilterProxyModelPrivate::can_create_mapping ( const QModelIndex & source_parent) const

Definition at line 580 of file qsortfilterproxymodel.cpp.

◆ can_create_mapping() [2/2]

bool QSortFilterProxyModelPrivate::can_create_mapping ( const QModelIndex & source_parent) const

◆ create_index() [1/2]

QModelIndex QSortFilterProxyModelPrivate::create_index ( int row,
int column,
QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator it ) const
inline

Definition at line 277 of file qsortfilterproxymodel.cpp.

◆ create_index() [2/2]

QModelIndex QSortFilterProxyModelPrivate::create_index ( int row,
int column,
QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator it ) const
inline

Definition at line 277 of file qsortfilterproxymodel.cpp.

◆ create_mapping() [1/2]

IndexMap::const_iterator QSortFilterProxyModelPrivate::create_mapping ( const QModelIndex & source_parent) const

Definition at line 470 of file qsortfilterproxymodel.cpp.

◆ create_mapping() [2/2]

QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator QSortFilterProxyModelPrivate::create_mapping ( const QModelIndex & source_parent) const

◆ create_mapping_recursive() [1/2]

IndexMap::const_iterator QSortFilterProxyModelPrivate::create_mapping_recursive ( const QModelIndex & source_parent) const

Definition at line 517 of file qsortfilterproxymodel.cpp.

◆ create_mapping_recursive() [2/2]

QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator QSortFilterProxyModelPrivate::create_mapping_recursive ( const QModelIndex & source_parent) const

◆ filter_about_to_be_changed() [1/2]

void QSortFilterProxyModelPrivate::filter_about_to_be_changed ( const QModelIndex & source_parent = QModelIndex())

Updates the source_index mapping in case it's invalid and we need it because we have a valid filter

Definition at line 1266 of file qsortfilterproxymodel.cpp.

◆ filter_about_to_be_changed() [2/2]

void QSortFilterProxyModelPrivate::filter_about_to_be_changed ( const QModelIndex & source_parent = QModelIndex())

◆ filter_changed() [1/2]

void QSortFilterProxyModelPrivate::filter_changed ( Directions directions,
const QModelIndex & source_parent = QModelIndex() )

Updates the proxy model (adds/removes rows) based on the new filter.

Definition at line 1281 of file qsortfilterproxymodel.cpp.

◆ filter_changed() [2/2]

void QSortFilterProxyModelPrivate::filter_changed ( Directions directions,
const QModelIndex & source_parent = QModelIndex() )

◆ filterAcceptsRowInternal() [1/2]

bool QSortFilterProxyModelPrivate::filterAcceptsRowInternal ( int source_row,
const QModelIndex & source_parent ) const

Definition at line 391 of file qsortfilterproxymodel.cpp.

◆ filterAcceptsRowInternal() [2/2]

bool QSortFilterProxyModelPrivate::filterAcceptsRowInternal ( int source_row,
const QModelIndex & source_parent ) const

◆ filterCaseSensitivityChangedForwarder() [1/2]

void QSortFilterProxyModelPrivate::filterCaseSensitivityChangedForwarder ( Qt::CaseSensitivity cs)
inline

Definition at line 167 of file qsortfilterproxymodel.cpp.

◆ filterCaseSensitivityChangedForwarder() [2/2]

void QSortFilterProxyModelPrivate::filterCaseSensitivityChangedForwarder ( Qt::CaseSensitivity cs)
inline

Definition at line 167 of file qsortfilterproxymodel.cpp.

◆ filterRoleChangedForwarder() [1/2]

void QSortFilterProxyModelPrivate::filterRoleChangedForwarder ( int role)
inline

Definition at line 144 of file qsortfilterproxymodel.cpp.

◆ filterRoleChangedForwarder() [2/2]

void QSortFilterProxyModelPrivate::filterRoleChangedForwarder ( int role)
inline

Definition at line 144 of file qsortfilterproxymodel.cpp.

◆ find_source_sort_column() [1/2]

int QSortFilterProxyModelPrivate::find_source_sort_column ( ) const

Find the source_sort_column without creating a full mapping and without updating anything.

Definition at line 652 of file qsortfilterproxymodel.cpp.

References proxy_sort_column.

Referenced by _q_clearMapping(), and _q_sourceLayoutChanged().

Here is the caller graph for this function:

◆ find_source_sort_column() [2/2]

int QSortFilterProxyModelPrivate::find_source_sort_column ( ) const

◆ handle_filter_changed() [1/2]

QSet< int > QSortFilterProxyModelPrivate::handle_filter_changed ( QList< int > & source_to_proxy,
QList< int > & proxy_to_source,
const QModelIndex & source_parent,
Direction direction )

returns the removed items indexes

Definition at line 1330 of file qsortfilterproxymodel.cpp.

◆ handle_filter_changed() [2/2]

QSet< int > QSortFilterProxyModelPrivate::handle_filter_changed ( QList< int > & source_to_proxy,
QList< int > & proxy_to_source,
const QModelIndex & source_parent,
Direction direction )

◆ index_to_iterator() [1/2]

QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator QSortFilterProxyModelPrivate::index_to_iterator ( const QModelIndex & proxy_index) const
inline

Definition at line 263 of file qsortfilterproxymodel.cpp.

◆ index_to_iterator() [2/2]

QHash< QtPrivate::QModelIndexWrapper, Mapping * >::const_iterator QSortFilterProxyModelPrivate::index_to_iterator ( const QModelIndex & proxy_index) const
inline

Definition at line 263 of file qsortfilterproxymodel.cpp.

◆ insert_source_items() [1/2]

void QSortFilterProxyModelPrivate::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 )

Given source-to-proxy mapping source_to_proxy and proxy-to-source mapping proxy_to_source, inserts the given source_items into this proxy model. The source items are inserted in intervals (based on some sorted order), so that the proper rows/columnsInserted(start, end) signals will be generated.

Definition at line 895 of file qsortfilterproxymodel.cpp.

◆ insert_source_items() [2/2]

void QSortFilterProxyModelPrivate::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 )

◆ needsReorder() [1/2]

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

Definition at line 1371 of file qsortfilterproxymodel.cpp.

References source_sort_column.

◆ needsReorder() [2/2]

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

◆ proxy_intervals_for_source_items() [1/2]

QList< std::pair< int, int > > QSortFilterProxyModelPrivate::proxy_intervals_for_source_items ( const QList< int > & source_to_proxy,
const QList< int > & source_items ) const

Given source-to-proxy mapping source_to_proxy and the set of source items source_items (which are part of that mapping), determines the corresponding proxy item intervals that should be removed from the proxy model.

The result is a vector of pairs, where each pair represents a (start, end) tuple, sorted in ascending order.

Definition at line 707 of file qsortfilterproxymodel.cpp.

◆ proxy_intervals_for_source_items() [2/2]

QList< std::pair< int, int > > QSortFilterProxyModelPrivate::proxy_intervals_for_source_items ( const QList< int > & source_to_proxy,
const QList< int > & source_items ) const

◆ proxy_intervals_for_source_items_to_add() [1/2]

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

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.

Definition at line 822 of file qsortfilterproxymodel.cpp.

◆ proxy_intervals_for_source_items_to_add() [2/2]

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

◆ proxy_item_range() [1/2]

void QSortFilterProxyModelPrivate::proxy_item_range ( const QList< int > & source_to_proxy,
const QList< int > & source_items,
int & proxy_low,
int & proxy_high ) const

Definition at line 1187 of file qsortfilterproxymodel.cpp.

◆ proxy_item_range() [2/2]

void QSortFilterProxyModelPrivate::proxy_item_range ( const QList< int > & source_to_proxy,
const QList< int > & source_items,
int & proxy_low,
int & proxy_high ) const

◆ proxy_to_source() [1/2]

QModelIndex QSortFilterProxyModelPrivate::proxy_to_source ( const QModelIndex & proxyIndex) const

Definition at line 539 of file qsortfilterproxymodel.cpp.

◆ proxy_to_source() [2/2]

QModelIndex QSortFilterProxyModelPrivate::proxy_to_source ( const QModelIndex & proxyIndex) const

◆ Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS() [1/10]

◆ Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS() [2/10]

◆ Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS() [3/10]

◆ Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS() [4/10]

◆ Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS() [5/10]

Qt::DisplayRole QSortFilterProxyModelPrivate::Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS ( QSortFilterProxyModelPrivate ,
int ,
filter_column ,
&QSortFilterProxyModelPrivate::setFilterKeyColumnForwarder ,
0  )

◆ Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS() [6/10]

Qt::DisplayRole QSortFilterProxyModelPrivate::Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS ( QSortFilterProxyModelPrivate ,
int ,
filter_column ,
&QSortFilterProxyModelPrivate::setFilterKeyColumnForwarder ,
0  )

◆ Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS() [7/10]

◆ Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS() [8/10]

◆ Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS() [9/10]

◆ Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS() [10/10]

◆ recursiveChildAcceptsRow() [1/2]

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

Definition at line 425 of file qsortfilterproxymodel.cpp.

◆ recursiveChildAcceptsRow() [2/2]

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

◆ recursiveFilteringEnabledChangedForwarder() [1/2]

void QSortFilterProxyModelPrivate::recursiveFilteringEnabledChangedForwarder ( bool recursive)
inline

Definition at line 150 of file qsortfilterproxymodel.cpp.

◆ recursiveFilteringEnabledChangedForwarder() [2/2]

void QSortFilterProxyModelPrivate::recursiveFilteringEnabledChangedForwarder ( bool recursive)
inline

Definition at line 150 of file qsortfilterproxymodel.cpp.

◆ recursiveParentAcceptsRow() [1/2]

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

Definition at line 409 of file qsortfilterproxymodel.cpp.

◆ recursiveParentAcceptsRow() [2/2]

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

◆ remove_from_mapping() [1/2]

void QSortFilterProxyModelPrivate::remove_from_mapping ( const QModelIndex & source_parent)

Definition at line 447 of file qsortfilterproxymodel.cpp.

◆ remove_from_mapping() [2/2]

void QSortFilterProxyModelPrivate::remove_from_mapping ( const QModelIndex & source_parent)

◆ remove_proxy_interval() [1/2]

void QSortFilterProxyModelPrivate::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 )

Given source-to-proxy mapping source_to_proxy and proxy-to-source mapping proxy_to_source, removes items from proxy_start to proxy_end (inclusive) from this proxy model.

Definition at line 783 of file qsortfilterproxymodel.cpp.

◆ remove_proxy_interval() [2/2]

void QSortFilterProxyModelPrivate::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 )

◆ remove_source_items() [1/2]

void QSortFilterProxyModelPrivate::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 )

Given source-to-proxy mapping source_to_proxy and proxy-to-source mapping proxy_to_source, removes source_items from this proxy model. The corresponding proxy items are removed in intervals, so that the proper rows/columnsRemoved(start, end) signals will be generated.

Definition at line 751 of file qsortfilterproxymodel.cpp.

◆ remove_source_items() [2/2]

void QSortFilterProxyModelPrivate::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 )

◆ set_filter_pattern() [1/2]

void QSortFilterProxyModelPrivate::set_filter_pattern ( const QString & pattern)
inline

Definition at line 251 of file qsortfilterproxymodel.cpp.

◆ set_filter_pattern() [2/2]

void QSortFilterProxyModelPrivate::set_filter_pattern ( const QString & pattern)
inline

Definition at line 251 of file qsortfilterproxymodel.cpp.

◆ setAutoAcceptChildRowsForwarder() [1/2]

void QSortFilterProxyModelPrivate::setAutoAcceptChildRowsForwarder ( bool accept)
inline

Definition at line 155 of file qsortfilterproxymodel.cpp.

◆ setAutoAcceptChildRowsForwarder() [2/2]

void QSortFilterProxyModelPrivate::setAutoAcceptChildRowsForwarder ( bool accept)
inline

Definition at line 155 of file qsortfilterproxymodel.cpp.

◆ setDynamicSortFilterForwarder() [1/2]

void QSortFilterProxyModelPrivate::setDynamicSortFilterForwarder ( bool enable)
inline

Definition at line 161 of file qsortfilterproxymodel.cpp.

◆ setDynamicSortFilterForwarder() [2/2]

void QSortFilterProxyModelPrivate::setDynamicSortFilterForwarder ( bool enable)
inline

Definition at line 161 of file qsortfilterproxymodel.cpp.

◆ setFilterCaseSensitivityForwarder() [1/2]

void QSortFilterProxyModelPrivate::setFilterCaseSensitivityForwarder ( Qt::CaseSensitivity cs)
inline

Definition at line 163 of file qsortfilterproxymodel.cpp.

◆ setFilterCaseSensitivityForwarder() [2/2]

void QSortFilterProxyModelPrivate::setFilterCaseSensitivityForwarder ( Qt::CaseSensitivity cs)
inline

Definition at line 163 of file qsortfilterproxymodel.cpp.

◆ setFilterKeyColumnForwarder() [1/2]

void QSortFilterProxyModelPrivate::setFilterKeyColumnForwarder ( int column)
inline

Definition at line 141 of file qsortfilterproxymodel.cpp.

◆ setFilterKeyColumnForwarder() [2/2]

void QSortFilterProxyModelPrivate::setFilterKeyColumnForwarder ( int column)
inline

Definition at line 141 of file qsortfilterproxymodel.cpp.

◆ setFilterRegularExpressionForwarder() [1/2]

void QSortFilterProxyModelPrivate::setFilterRegularExpressionForwarder ( const QRegularExpression & re)
inline

Definition at line 172 of file qsortfilterproxymodel.cpp.

◆ setFilterRegularExpressionForwarder() [2/2]

void QSortFilterProxyModelPrivate::setFilterRegularExpressionForwarder ( const QRegularExpression & re)
inline

Definition at line 172 of file qsortfilterproxymodel.cpp.

◆ setFilterRoleForwarder() [1/2]

void QSortFilterProxyModelPrivate::setFilterRoleForwarder ( int role)
inline

Definition at line 143 of file qsortfilterproxymodel.cpp.

◆ setFilterRoleForwarder() [2/2]

void QSortFilterProxyModelPrivate::setFilterRoleForwarder ( int role)
inline

Definition at line 143 of file qsortfilterproxymodel.cpp.

◆ setRecursiveFilteringEnabledForwarder() [1/2]

void QSortFilterProxyModelPrivate::setRecursiveFilteringEnabledForwarder ( bool recursive)
inline

Definition at line 146 of file qsortfilterproxymodel.cpp.

◆ setRecursiveFilteringEnabledForwarder() [2/2]

void QSortFilterProxyModelPrivate::setRecursiveFilteringEnabledForwarder ( bool recursive)
inline

Definition at line 146 of file qsortfilterproxymodel.cpp.

◆ setSortCaseSensitivityForwarder() [1/2]

void QSortFilterProxyModelPrivate::setSortCaseSensitivityForwarder ( Qt::CaseSensitivity cs)
inline

Definition at line 126 of file qsortfilterproxymodel.cpp.

◆ setSortCaseSensitivityForwarder() [2/2]

void QSortFilterProxyModelPrivate::setSortCaseSensitivityForwarder ( Qt::CaseSensitivity cs)
inline

Definition at line 126 of file qsortfilterproxymodel.cpp.

◆ setSortLocaleAwareForwarder() [1/2]

void QSortFilterProxyModelPrivate::setSortLocaleAwareForwarder ( bool on)
inline

Definition at line 138 of file qsortfilterproxymodel.cpp.

◆ setSortLocaleAwareForwarder() [2/2]

void QSortFilterProxyModelPrivate::setSortLocaleAwareForwarder ( bool on)
inline

Definition at line 138 of file qsortfilterproxymodel.cpp.

◆ setSortRoleForwarder() [1/2]

void QSortFilterProxyModelPrivate::setSortRoleForwarder ( int role)
inline

Definition at line 135 of file qsortfilterproxymodel.cpp.

◆ setSortRoleForwarder() [2/2]

void QSortFilterProxyModelPrivate::setSortRoleForwarder ( int role)
inline

Definition at line 135 of file qsortfilterproxymodel.cpp.

◆ sort() [1/2]

void QSortFilterProxyModelPrivate::sort ( )

Sorts the existing mappings.

Definition at line 604 of file qsortfilterproxymodel.cpp.

Referenced by _q_sourceColumnsInserted(), _q_sourceReset(), and _q_sourceRowsInserted().

Here is the caller graph for this function:

◆ sort() [2/2]

void QSortFilterProxyModelPrivate::sort ( )

◆ sort_source_rows() [1/2]

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

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

Definition at line 677 of file qsortfilterproxymodel.cpp.

References source_sort_column.

◆ sort_source_rows() [2/2]

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

◆ sortCaseSensitivityChangedForwarder() [1/2]

void QSortFilterProxyModelPrivate::sortCaseSensitivityChangedForwarder ( Qt::CaseSensitivity cs)
inline

Definition at line 130 of file qsortfilterproxymodel.cpp.

◆ sortCaseSensitivityChangedForwarder() [2/2]

void QSortFilterProxyModelPrivate::sortCaseSensitivityChangedForwarder ( Qt::CaseSensitivity cs)
inline

Definition at line 130 of file qsortfilterproxymodel.cpp.

◆ sortLocaleAwareChangedForwarder() [1/2]

void QSortFilterProxyModelPrivate::sortLocaleAwareChangedForwarder ( bool on)
inline

Definition at line 139 of file qsortfilterproxymodel.cpp.

◆ sortLocaleAwareChangedForwarder() [2/2]

void QSortFilterProxyModelPrivate::sortLocaleAwareChangedForwarder ( bool on)
inline

Definition at line 139 of file qsortfilterproxymodel.cpp.

◆ sortRoleChangedForwarder() [1/2]

void QSortFilterProxyModelPrivate::sortRoleChangedForwarder ( int role)
inline

Definition at line 136 of file qsortfilterproxymodel.cpp.

◆ sortRoleChangedForwarder() [2/2]

void QSortFilterProxyModelPrivate::sortRoleChangedForwarder ( int role)
inline

Definition at line 136 of file qsortfilterproxymodel.cpp.

◆ source_items_about_to_be_removed() [1/2]

void QSortFilterProxyModelPrivate::source_items_about_to_be_removed ( const QModelIndex & source_parent,
int start,
int end,
Direction direction )

Handles source model items removal (columnsAboutToBeRemoved(), rowsAboutToBeRemoved()).

Definition at line 1050 of file qsortfilterproxymodel.cpp.

◆ source_items_about_to_be_removed() [2/2]

void QSortFilterProxyModelPrivate::source_items_about_to_be_removed ( const QModelIndex & source_parent,
int start,
int end,
Direction direction )

◆ source_items_inserted() [1/2]

void QSortFilterProxyModelPrivate::source_items_inserted ( const QModelIndex & source_parent,
int start,
int end,
Direction direction )

Handles source model items insertion (columnsInserted(), rowsInserted()). Determines 1) which of the inserted items to also insert into proxy model (filtering), 2) where to insert the items into the proxy model (sorting), then inserts those items. The items are inserted into the proxy model in intervals (based on sorted order), so that the proper rows/columnsInserted(start, end) signals will be generated.

Definition at line 949 of file qsortfilterproxymodel.cpp.

◆ source_items_inserted() [2/2]

void QSortFilterProxyModelPrivate::source_items_inserted ( const QModelIndex & source_parent,
int start,
int end,
Direction direction )

◆ source_items_removed() [1/2]

void QSortFilterProxyModelPrivate::source_items_removed ( const QModelIndex & source_parent,
int start,
int end,
Direction direction )

Handles source model items removal (columnsRemoved(), rowsRemoved()).

Definition at line 1083 of file qsortfilterproxymodel.cpp.

◆ source_items_removed() [2/2]

void QSortFilterProxyModelPrivate::source_items_removed ( const QModelIndex & source_parent,
int start,
int end,
Direction direction )

◆ source_to_proxy() [1/2]

QModelIndex QSortFilterProxyModelPrivate::source_to_proxy ( const QModelIndex & sourceIndex) const

Definition at line 557 of file qsortfilterproxymodel.cpp.

◆ source_to_proxy() [2/2]

QModelIndex QSortFilterProxyModelPrivate::source_to_proxy ( const QModelIndex & sourceIndex) const

◆ store_persistent_indexes() [1/2]

QModelIndexPairList QSortFilterProxyModelPrivate::store_persistent_indexes ( ) const

Maps the persistent proxy indexes to source indexes and returns the list of source indexes.

Definition at line 1222 of file qsortfilterproxymodel.cpp.

◆ store_persistent_indexes() [2/2]

QModelIndexPairList QSortFilterProxyModelPrivate::store_persistent_indexes ( ) const

◆ update_persistent_indexes() [1/2]

void QSortFilterProxyModelPrivate::update_persistent_indexes ( const QModelIndexPairList & source_indexes)

Maps source_indexes to proxy indexes and stores those as persistent indexes.

Definition at line 1241 of file qsortfilterproxymodel.cpp.

◆ update_persistent_indexes() [2/2]

void QSortFilterProxyModelPrivate::update_persistent_indexes ( const QModelIndexPairList & source_indexes)

◆ update_source_sort_column() [1/2]

bool QSortFilterProxyModelPrivate::update_source_sort_column ( )

update the source_sort_column according to the proxy_sort_column return true if the column was changed

Definition at line 626 of file qsortfilterproxymodel.cpp.

References proxy_sort_column, and source_sort_column.

◆ update_source_sort_column() [2/2]

bool QSortFilterProxyModelPrivate::update_source_sort_column ( )

◆ updateChildrenMapping() [1/2]

void QSortFilterProxyModelPrivate::updateChildrenMapping ( const QModelIndex & source_parent,
Mapping * parent_mapping,
Direction direction,
int start,
int end,
int delta_item_count,
bool remove )

updates the mapping of the children when inserting or removing items

Definition at line 1135 of file qsortfilterproxymodel.cpp.

◆ updateChildrenMapping() [2/2]

void QSortFilterProxyModelPrivate::updateChildrenMapping ( const QModelIndex & source_parent,
Mapping * parent_mapping,
Direction direction,
int start,
int end,
int delta_item_count,
bool remove )

Member Data Documentation

◆ bool [1/2]

Qt::DisplayRole Qt::DisplayRole false QSortFilterProxyModelPrivate::bool

Definition at line 207 of file qsortfilterproxymodel.cpp.

◆ bool [2/2]

Qt::DisplayRole Qt::DisplayRole false QSortFilterProxyModelPrivate::bool

Definition at line 216 of file qsortfilterproxymodel.cpp.

◆ complete_insert

bool QSortFilterProxyModelPrivate::complete_insert = false

◆ dynamic_sortfilter

Qt::DisplayRole Qt::DisplayRole false QSortFilterProxyModelPrivate::dynamic_sortfilter

Definition at line 216 of file qsortfilterproxymodel.cpp.

◆ filter_recursive

Qt::DisplayRole Qt::DisplayRole QSortFilterProxyModelPrivate::filter_recursive

Definition at line 207 of file qsortfilterproxymodel.cpp.

◆ filter_regularexpression

Qt::DisplayRole Qt::DisplayRole false true QSortFilterProxyModelPrivate::filter_regularexpression

Definition at line 226 of file qsortfilterproxymodel.cpp.

◆ filter_role

Qt::DisplayRole QSortFilterProxyModelPrivate::filter_role

Definition at line 196 of file qsortfilterproxymodel.cpp.

◆ int [1/2]

Qt::DisplayRole QSortFilterProxyModelPrivate::int

Definition at line 187 of file qsortfilterproxymodel.cpp.

◆ int [2/2]

Qt::DisplayRole QSortFilterProxyModelPrivate::int

Definition at line 196 of file qsortfilterproxymodel.cpp.

◆ itemsBeingRemoved

QRowsRemoval QSortFilterProxyModelPrivate::itemsBeingRemoved

Definition at line 230 of file qsortfilterproxymodel.cpp.

◆ last_top_source

Definition at line 229 of file qsortfilterproxymodel.cpp.

◆ proxy_sort_column

int QSortFilterProxyModelPrivate::proxy_sort_column = -1

◆ QRegularExpression

Qt::DisplayRole Qt::DisplayRole false true QSortFilterProxyModelPrivate::QRegularExpression

Definition at line 225 of file qsortfilterproxymodel.cpp.

◆ saved_layoutChange_parents

QList< QPersistentModelIndex > QSortFilterProxyModelPrivate::saved_layoutChange_parents

Definition at line 233 of file qsortfilterproxymodel.cpp.

◆ saved_persistent_indexes

QModelIndexPairList QSortFilterProxyModelPrivate::saved_persistent_indexes

Definition at line 232 of file qsortfilterproxymodel.cpp.

◆ sort_order

Qt::SortOrder QSortFilterProxyModelPrivate::sort_order = Qt::AscendingOrder

Definition at line 179 of file qsortfilterproxymodel.cpp.

◆ sort_role

QSortFilterProxyModelPrivate::sort_role

Definition at line 187 of file qsortfilterproxymodel.cpp.

◆ source_index_mapping

QHash< QtPrivate::QModelIndexWrapper, Mapping * > QSortFilterProxyModelPrivate::source_index_mapping
mutable

Definition at line 124 of file qsortfilterproxymodel.cpp.

◆ source_sort_column

◆ sourceConnections

std::array< QMetaObject::Connection, 18 > QSortFilterProxyModelPrivate::sourceConnections

Definition at line 235 of file qsortfilterproxymodel.cpp.


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