|
| 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 QList< std::pair< int, QList< int > > > | proxy_intervals_for_source_items_to_add (const QList< int > &, const QList< int > &, const QModelIndex &, Direction) const |
virtual void | sort () |
|
virtual const QAbstractProxyModel * | proxyModel () const =0 |
virtual void | beginInsertRows (const QModelIndex &, int, int) |
virtual void | beginInsertColumns (const QModelIndex &, int, int) |
virtual void | endInsertRows () |
virtual void | endInsertColumns () |
virtual void | beginRemoveRows (const QModelIndex &, int, int) |
virtual void | beginRemoveColumns (const QModelIndex &, int, int) |
virtual void | endRemoveRows () |
virtual void | endRemoveColumns () |
virtual void | beginResetModel () |
virtual void | endResetModel () |
virtual QModelIndex | createIndex (int, int, IndexMap::const_iterator) const |
virtual void | changePersistentIndexList (const QModelIndexList &, const QModelIndexList &) |
virtual bool | filterAcceptsRowInternal (int, const QModelIndex &) const |
virtual bool | filterAcceptsRow (int, const QModelIndex &) const |
virtual bool | filterAcceptsColumnInternal (int, const QModelIndex &) const |
virtual bool | filterAcceptsColumn (int, const QModelIndex &) const |
virtual void | sort_source_rows (QList< int > &, const QModelIndex &) const |
virtual bool | lessThan (const QModelIndex &, const QModelIndex &) const |
QList< std::pair< int, int > > QSortFilterProxyModelHelper::proxy_intervals_for_source_items |
( |
const QList< int > & | source_to_proxy, |
|
|
const QList< int > & | source_items ) const |
|
virtual |
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 329 of file qsortfilterproxymodelhelper.cpp.
void QSortFilterProxyModelHelper::source_items_inserted |
( |
const QModelIndex & | source_parent, |
|
|
int | start, |
|
|
int | end, |
|
|
Direction | direction ) |
|
virtual |
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 407 of file qsortfilterproxymodelhelper.cpp.