QtBase - 2016-12-13 07:58:44 +0000

Function Tree

Path:<top>::QSortFilterProxyModelPrivate
FunctionCondition %eLOC - Effective Lines of Codeā–¾McCabe - Cyclomatic Complexity
_q_sourceDataChanged
Name: QSortFilterProxyModelPrivate::_q_sourceDataChanged
Prototype: void QSortFilterProxyModelPrivate::_q_sourceDataChanged(const QModelIndex &source_top_left, const QModelIndex &source_bottom_right, const QVector<int> &roles)
Coverage:  75.385% (49/65)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1158-1266
 75.385% (49/65)
7219
source_items_inserted
Name: QSortFilterProxyModelPrivate::source_items_inserted
Prototype: void QSortFilterProxyModelPrivate::source_items_inserted( const QModelIndex &source_parent, int start, int end, Qt::Orientation orient)
Coverage:  74.286% (52/70)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 740-833
 74.286% (52/70)
5718
proxy_intervals_for_source_items_to_add
Name: QSortFilterProxyModelPrivate::proxy_intervals_for_source_items_to_add
Prototype: QVector<QPair<int, QVector<int > > > QSortFilterProxyModelPrivate::proxy_intervals_for_source_items_to_add( const QVector<int> &proxy_to_source, const QVector<int> &source_items, const QModelIndex &source_parent, Qt::Orientation orient) const
Coverage:  98.113% (52/53)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 613-677
 98.113% (52/53)
4213
create_mapping
Name: QSortFilterProxyModelPrivate::create_mapping
Prototype: IndexMap::const_iterator QSortFilterProxyModelPrivate::create_mapping( const QModelIndex &source_parent) const
Coverage:  94.737% (18/19)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 328-372
 94.737% (18/19)
307
updateChildrenMapping
Name: QSortFilterProxyModelPrivate::updateChildrenMapping
Prototype: void QSortFilterProxyModelPrivate::updateChildrenMapping(const QModelIndex &source_parent, Mapping *parent_mapping, Qt::Orientation orient, int start, int end, int delta_item_count, bool remove)
Coverage: 100.000% (23/23)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 926-978
100.000% (23/23)
296
source_items_removed
Name: QSortFilterProxyModelPrivate::source_items_removed
Prototype: void QSortFilterProxyModelPrivate::source_items_removed( const QModelIndex &source_parent, int start, int end, Qt::Orientation orient)
Coverage:  72.000% (18/25)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 874-919
 72.000% (18/25)
277
_q_sourceHeaderDataChanged
Name: QSortFilterProxyModelPrivate::_q_sourceHeaderDataChanged
Prototype: void QSortFilterProxyModelPrivate::_q_sourceHeaderDataChanged(Qt::Orientation orientation, int start, int end)
Coverage:  88.889% (16/18)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1268-1308
 88.889% (16/18)
256
handle_filter_changed
Name: QSortFilterProxyModelPrivate::handle_filter_changed
Prototype: QSet<int> QSortFilterProxyModelPrivate::handle_filter_changed( QVector<int> &source_to_proxy, QVector<int> &proxy_to_source, const QModelIndex &source_parent, Qt::Orientation orient)
Coverage:  92.857% (26/28)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1117-1156
 92.857% (26/28)
248
insert_source_items
Name: QSortFilterProxyModelPrivate::insert_source_items
Prototype: void QSortFilterProxyModelPrivate::insert_source_items( QVector<int> &source_to_proxy, QVector<int> &proxy_to_source, const QVector<int> &source_items, const QModelIndex &source_parent, Qt::Orientation orient, bool emit_signal)
Coverage:  91.667% (22/24)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 687-726
 91.667% (22/24)
238
_q_sourceLayoutChanged
Name: QSortFilterProxyModelPrivate::_q_sourceLayoutChanged
Prototype: void QSortFilterProxyModelPrivate::_q_sourceLayoutChanged(const QList<QPersistentModelIndex> &sourceParents, QAbstractItemModel::LayoutChangeHint hint)
Coverage:  83.333% (15/18)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1357-1391
 83.333% (15/18)
206
filter_changed
Name: QSortFilterProxyModelPrivate::filter_changed
Prototype: void QSortFilterProxyModelPrivate::filter_changed(const QModelIndex &source_parent)
Coverage:  93.333% (14/15)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1075-1111
 93.333% (14/15)
195
_q_sourceLayoutAboutToBeChanged
Name: QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged
Prototype: void QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged(const QList<QPersistentModelIndex> &sourceParents, QAbstractItemModel::LayoutChangeHint hint)
Coverage: 100.000% (16/16)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1328-1355
100.000% (16/16)
176
source_to_proxy
Name: QSortFilterProxyModelPrivate::source_to_proxy
Prototype: QModelIndex QSortFilterProxyModelPrivate::source_to_proxy(const QModelIndex &source_index) const
Coverage:  64.706% (11/17)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 392-411
 64.706% (11/17)
165
source_items_about_to_be_removed
Name: QSortFilterProxyModelPrivate::source_items_about_to_be_removed
Prototype: void QSortFilterProxyModelPrivate::source_items_about_to_be_removed( const QModelIndex &source_parent, int start, int end, Qt::Orientation orient)
Coverage:  85.714% (18/21)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 841-867
 85.714% (18/21)
165
proxy_intervals_for_source_items
Name: QSortFilterProxyModelPrivate::proxy_intervals_for_source_items
Prototype: QVector<QPair<int, int > > QSortFilterProxyModelPrivate::proxy_intervals_for_source_items( const QVector<int> &source_to_proxy, const QVector<int> &source_items) const
Coverage: 100.000% (12/12)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 513-537
100.000% (12/12)
164
update_persistent_indexes
Name: QSortFilterProxyModelPrivate::update_persistent_indexes
Prototype: void QSortFilterProxyModelPrivate::update_persistent_indexes( const QModelIndexPairList &source_indexes)
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1036-1053
100.000% (4/4)
132
proxy_to_source
Name: QSortFilterProxyModelPrivate::proxy_to_source
Prototype: QModelIndex QSortFilterProxyModelPrivate::proxy_to_source(const QModelIndex &proxy_index) const
Coverage:  58.333% (7/12)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 374-390
 58.333% (7/12)
134
_q_sourceRowsMoved
Name: QSortFilterProxyModelPrivate::_q_sourceRowsMoved
Prototype: void QSortFilterProxyModelPrivate::_q_sourceRowsMoved( const QModelIndex &sourceParent, int , int , const QModelIndex &destParent, int )
Coverage:  55.556% (5/9)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1449-1473
 55.556% (5/9)
133
_q_sourceColumnsMoved
Name: QSortFilterProxyModelPrivate::_q_sourceColumnsMoved
Prototype: void QSortFilterProxyModelPrivate::_q_sourceColumnsMoved( const QModelIndex &sourceParent, int , int , const QModelIndex &destParent, int )
Coverage:  0.000% (0/9)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1549-1570
  0.000% (0/9)
133
remove_source_items
Name: QSortFilterProxyModelPrivate::remove_source_items
Prototype: void QSortFilterProxyModelPrivate::remove_source_items( QVector<int> &source_to_proxy, QVector<int> &proxy_to_source, const QVector<int> &source_items, const QModelIndex &source_parent, Qt::Orientation orient, bool emit_signal)
Coverage:  77.778% (7/9)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 547-567
 77.778% (7/9)
123
sort
Name: QSortFilterProxyModelPrivate::sort
Prototype: void QSortFilterProxyModelPrivate::sort()
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 437-451
100.000% (4/4)
112
remove_proxy_interval
Name: QSortFilterProxyModelPrivate::remove_proxy_interval
Prototype: void QSortFilterProxyModelPrivate::remove_proxy_interval( QVector<int> &source_to_proxy, QVector<int> &proxy_to_source, int proxy_start, int proxy_end, const QModelIndex &proxy_parent, Qt::Orientation orient, bool emit_signal)
Coverage: 100.000% (13/13)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 576-599
100.000% (13/13)
115
can_create_mapping
Name: QSortFilterProxyModelPrivate::can_create_mapping
Prototype: bool QSortFilterProxyModelPrivate::can_create_mapping(const QModelIndex &source_parent) const
Coverage:  91.667% (11/12)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 413-430
 91.667% (11/12)
104
_q_sourceRowsAboutToBeMoved
Name: QSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeMoved
Prototype: void QSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeMoved( const QModelIndex &sourceParent, int , int , const QModelIndex &destParent, int )
Coverage:  57.143% (4/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1427-1447
 57.143% (4/7)
103
_q_sourceColumnsInserted
Name: QSortFilterProxyModelPrivate::_q_sourceColumnsInserted
Prototype: void QSortFilterProxyModelPrivate::_q_sourceColumnsInserted( const QModelIndex &source_parent, int start, int end)
Coverage:  93.333% (14/15)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1486-1504
 93.333% (14/15)
105
_q_sourceColumnsAboutToBeMoved
Name: QSortFilterProxyModelPrivate::_q_sourceColumnsAboutToBeMoved
Prototype: void QSortFilterProxyModelPrivate::_q_sourceColumnsAboutToBeMoved( const QModelIndex &sourceParent, int , int , const QModelIndex &destParent, int )
Coverage:  0.000% (0/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1531-1547
  0.000% (0/7)
103
proxy_item_range
Name: QSortFilterProxyModelPrivate::proxy_item_range
Prototype: void QSortFilterProxyModelPrivate::proxy_item_range( const QVector<int> &source_to_proxy, const QVector<int> &source_items, int &proxy_low, int &proxy_high) const
Coverage:  80.000% (8/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 983-997
 80.000% (8/10)
94
index_to_iterator
Name: QSortFilterProxyModelPrivate::index_to_iterator
Prototype: inline QHash<QModelIndex, Mapping *>::const_iterator index_to_iterator( const QModelIndex &proxy_index) const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 183-195
100.000% (1/1)
91
_q_sourceColumnsRemoved
Name: QSortFilterProxyModelPrivate::_q_sourceColumnsRemoved
Prototype: void QSortFilterProxyModelPrivate::_q_sourceColumnsRemoved( const QModelIndex &source_parent, int start, int end)
Coverage: 100.000% (10/10)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1513-1529
100.000% (10/10)
94
update_source_sort_column
Name: QSortFilterProxyModelPrivate::update_source_sort_column
Prototype: bool QSortFilterProxyModelPrivate::update_source_sort_column()
Coverage: 100.000% (8/8)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 459-477
100.000% (8/8)
83
store_persistent_indexes
Name: QSortFilterProxyModelPrivate::store_persistent_indexes
Prototype: QModelIndexPairList QSortFilterProxyModelPrivate::store_persistent_indexes() const
Coverage: 100.000% (2/2)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1017-1028
100.000% (2/2)
82
sort_source_rows
Name: QSortFilterProxyModelPrivate::sort_source_rows
Prototype: void QSortFilterProxyModelPrivate::sort_source_rows( QVector<int> &source_rows, const QModelIndex &source_parent) const
Coverage: 100.000% (7/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 485-500
100.000% (7/7)
83
_q_sourceReset
Name: QSortFilterProxyModelPrivate::_q_sourceReset
Prototype: void QSortFilterProxyModelPrivate::_q_sourceReset()
Coverage:  75.000% (3/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1316-1326
 75.000% (3/4)
72
_q_clearMapping
Name: QSortFilterProxyModelPrivate::_q_clearMapping
Prototype: void QSortFilterProxyModelPrivate::_q_clearMapping()
Coverage: 100.000% (6/6)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 311-326
100.000% (6/6)
72
remove_from_mapping
Name: QSortFilterProxyModelPrivate::remove_from_mapping
Prototype: void QSortFilterProxyModelPrivate::remove_from_mapping(const QModelIndex &source_parent)
Coverage:  85.714% (6/7)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 302-309
 85.714% (6/7)
43
build_source_to_proxy_mapping
Name: QSortFilterProxyModelPrivate::build_source_to_proxy_mapping
Prototype: void QSortFilterProxyModelPrivate::build_source_to_proxy_mapping( const QVector<int> &proxy_to_source, QVector<int> &source_to_proxy) const
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1002-1009
100.000% (4/4)
42
_q_sourceRowsAboutToBeInserted
Name: QSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeInserted
Prototype: void QSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeInserted( const QModelIndex &source_parent, int start, int end)
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1393-1402
100.000% (4/4)
42
_q_sourceColumnsAboutToBeInserted
Name: QSortFilterProxyModelPrivate::_q_sourceColumnsAboutToBeInserted
Prototype: void QSortFilterProxyModelPrivate::_q_sourceColumnsAboutToBeInserted( const QModelIndex &source_parent, int start, int end)
Coverage: 100.000% (4/4)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1475-1484
100.000% (4/4)
42
filter_about_to_be_changed
Name: QSortFilterProxyModelPrivate::filter_about_to_be_changed
Prototype: void QSortFilterProxyModelPrivate::filter_about_to_be_changed(const QModelIndex &source_parent)
Coverage: 100.000% (6/6)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1061-1066
100.000% (6/6)
32
_q_sourceRowsInserted
Name: QSortFilterProxyModelPrivate::_q_sourceRowsInserted
Prototype: void QSortFilterProxyModelPrivate::_q_sourceRowsInserted( const QModelIndex &source_parent, int start, int end)
Coverage:  33.333% (2/6)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1404-1410
 33.333% (2/6)
32
_q_sourceRowsAboutToBeRemoved
Name: QSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeRemoved
Prototype: void QSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeRemoved( const QModelIndex &source_parent, int start, int end)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1412-1418
100.000% (1/1)
31
_q_sourceModelDestroyed
Name: QSortFilterProxyModelPrivate::_q_sourceModelDestroyed
Prototype: void QSortFilterProxyModelPrivate::_q_sourceModelDestroyed()
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 295-300
100.000% (1/1)
31
_q_sourceRowsRemoved
Name: QSortFilterProxyModelPrivate::_q_sourceRowsRemoved
Prototype: void QSortFilterProxyModelPrivate::_q_sourceRowsRemoved( const QModelIndex &source_parent, int start, int end)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1420-1425
100.000% (1/1)
21
_q_sourceColumnsAboutToBeRemoved
Name: QSortFilterProxyModelPrivate::_q_sourceColumnsAboutToBeRemoved
Prototype: void QSortFilterProxyModelPrivate::_q_sourceColumnsAboutToBeRemoved( const QModelIndex &source_parent, int start, int end)
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1506-1511
100.000% (1/1)
21
_q_sourceAboutToBeReset
Name: QSortFilterProxyModelPrivate::_q_sourceAboutToBeReset
Prototype: void QSortFilterProxyModelPrivate::_q_sourceAboutToBeReset()
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 1310-1314
100.000% (1/1)
21
create_index
Name: QSortFilterProxyModelPrivate::create_index
Prototype: inline QModelIndex create_index(int row, int column, QHash<QModelIndex, Mapping*>::const_iterator it) const
Coverage: 100.000% (1/1)
Absolute File Name: /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp
Lines: 197-201
100.000% (1/1)
11

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9