qitemselectionmodel.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qitemselectionmodel.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7bool QItemSelectionRange::intersects(const QItemSelectionRange &other) const-
8{-
9 return
executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right())));
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
(isValid()
isValid()Description
TRUEevaluated 11720 times by 21 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEnever evaluated
&& other.isValid()
other.isValid()Description
TRUEevaluated 11720 times by 21 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEnever evaluated
executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right())));
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
0-11720
10 && parent() == other.parent()
parent() == other.parent()Description
TRUEevaluated 10020 times by 21 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 1700 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QColumnView
  • tst_QComboBox
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right())));
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
1700-11720
11 && model() == other.model()
model() == other.model()Description
TRUEevaluated 10019 times by 21 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QItemSelectionModel
executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right())));
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
1-11720
12 && ((top() <= other.top()
top() <= other.top()Description
TRUEevaluated 7157 times by 19 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 2862 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
&& bottom() >= other.top()
bottom() >= other.top()Description
TRUEevaluated 4030 times by 13 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 3127 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
)
executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right())));
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
2862-11720
13 || (top() >= other.top()
top() >= other.top()Description
TRUEevaluated 2862 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 3127 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
&& top() <= other.bottom()
top() <= other.bottom()Description
TRUEevaluated 299 times by 6 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
FALSEevaluated 2563 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
))
executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right())));
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
299-11720
14 && ((left() <= other.left()
left() <= other.left()Description
TRUEevaluated 3536 times by 13 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 793 times by 7 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
&& right() >= other.left()
right() >= other.left()Description
TRUEevaluated 2733 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 803 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeWidget
)
executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right())));
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
793-11720
15 || (left() >= other.left()
left() >= other.left()Description
TRUEevaluated 793 times by 7 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 803 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeWidget
&& left() <= other.right()
left() <= other.right()Description
TRUEevaluated 140 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 653 times by 7 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
)));
executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right())));
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
140-11720
16}-
17QItemSelectionRange QItemSelectionRange::intersected(const QItemSelectionRange &other) const-
18{-
19 if (model() == other.model()
model() == other.model()Description
TRUEevaluated 1264 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEnever evaluated
&& parent() == other.parent()
parent() == other.parent()Description
TRUEevaluated 1264 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEnever evaluated
) {
0-1264
20 QModelIndex topLeft = model()->index(qMax(top(), other.top()),-
21 qMax(left(), other.left()),-
22 other.parent());-
23 QModelIndex bottomRight = model()->index(qMin(bottom(), other.bottom()),-
24 qMin(right(), other.right()),-
25 other.parent());-
26 return
executed 1264 times by 11 tests: return QItemSelectionRange(topLeft, bottomRight);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
QItemSelectionRange(topLeft, bottomRight);
executed 1264 times by 11 tests: return QItemSelectionRange(topLeft, bottomRight);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
1264
27 }-
28 return
never executed: return QItemSelectionRange();
QItemSelectionRange();
never executed: return QItemSelectionRange();
0
29}-
30static void rowLengthsFromRange(const QItemSelectionRange &range, QVector<QPair<QPersistentModelIndex, uint> > &result)-
31{-
32 if (range.isValid()
range.isValid()Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEnever evaluated
&& range.model()
range.model()Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEnever evaluated
) {
0-15
33 const QModelIndex topLeft = range.topLeft();-
34 const int bottom = range.bottom();-
35 const uint width = range.width();-
36 const int column = topLeft.column();-
37 for (int row = topLeft.row(); row <= bottom
row <= bottomDescription
TRUEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
; ++row) {
15-23
38-
39-
40-
41 result.push_back(qMakePair(QPersistentModelIndex(topLeft.sibling(row, column)), width));-
42 }
executed 23 times by 2 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
23
43 }
executed 15 times by 2 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
15
44}
executed 15 times by 2 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
15
45-
46template<typename ModelIndexContainer>-
47static void indexesFromRange(const QItemSelectionRange &range, ModelIndexContainer &result)-
48{-
49 if (range.isValid()
range.isValid()Description
TRUEevaluated 1038 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEnever evaluated
&& range.model()
range.model()Description
TRUEevaluated 1038 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEnever evaluated
) {
0-1038
50 const QModelIndex topLeft = range.topLeft();-
51 const int bottom = range.bottom();-
52 const int right = range.right();-
53 for (int row = topLeft.row(); row <= bottom
row <= bottomDescription
TRUEevaluated 2168 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 1038 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
; ++row) {
1038-2168
54 const QModelIndex columnLeader = topLeft.sibling(row, topLeft.column());-
55 for (int column = topLeft.column(); column <= right
column <= rightDescription
TRUEevaluated 5893 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 2168 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
; ++column) {
2168-5893
56 QModelIndex index = columnLeader.sibling(row, column);-
57 Qt::ItemFlags flags = range.model()->flags(index);-
58 if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled))-
59 result.push_back(index);
executed 5880 times by 18 tests: result.push_back(index);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
5880
60 }
executed 5893 times by 18 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
5893
61 }
executed 2168 times by 18 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
2168
62 }
executed 1038 times by 18 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
1038
63}
executed 1038 times by 18 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
1038
64-
65-
66-
67-
68-
69-
70bool QItemSelectionRange::isEmpty() const-
71{-
72 if (!isValid()
!isValid()Description
TRUEnever evaluated
FALSEevaluated 424 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemView
  • tst_QTableView
|| !model()
!model()Description
TRUEnever evaluated
FALSEevaluated 424 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemView
  • tst_QTableView
)
0-424
73 return
never executed: return true;
true;
never executed: return true;
0
74-
75 for (int column = left(); column <= right()
column <= right()Description
TRUEevaluated 424 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemView
  • tst_QTableView
FALSEnever evaluated
; ++column) {
0-424
76 for (int row = top(); row <= bottom()
row <= bottom()Description
TRUEevaluated 424 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemView
  • tst_QTableView
FALSEnever evaluated
; ++row) {
0-424
77 QModelIndex index = model()->index(row, column, parent());-
78 Qt::ItemFlags flags = model()->flags(index);-
79 if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled))-
80 return
executed 424 times by 3 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QItemView
  • tst_QTableView
false;
executed 424 times by 3 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QItemView
  • tst_QTableView
424
81 }
never executed: end of block
0
82 }
never executed: end of block
0
83 return
never executed: return true;
true;
never executed: return true;
0
84}-
85-
86-
87-
88-
89-
90QModelIndexList QItemSelectionRange::indexes() const-
91{-
92 QModelIndexList result;-
93 indexesFromRange(*this, result);-
94 return
never executed: return result;
result;
never executed: return result;
0
95}-
96QItemSelection::QItemSelection(const QModelIndex &topLeft, const QModelIndex &bottomRight)-
97{-
98 select(topLeft, bottomRight);-
99}
executed 4844 times by 30 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • ...
4844
100void QItemSelection::select(const QModelIndex &topLeft, const QModelIndex &bottomRight)-
101{-
102 if (!topLeft.isValid()
!topLeft.isValid()Description
TRUEevaluated 274 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 5300 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
|| !bottomRight.isValid()
!bottomRight.isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 5299 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
)
1-5300
103 return;
executed 275 times by 18 tests: return;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
275
104-
105 if ((
(topLeft.model...Right.model())Description
TRUEnever evaluated
FALSEevaluated 5299 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
topLeft.model() != bottomRight.model())
(topLeft.model...Right.model())Description
TRUEnever evaluated
FALSEevaluated 5299 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
0-5299
106 || topLeft.parent() != bottomRight.parent()
topLeft.parent...Right.parent()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 5298 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
) {
1-5298
107 QMessageLogger(__FILE__, 428, __PRETTY_FUNCTION__).warning("Can't select indexes from different model or with different parents");-
108 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QItemSelectionModel
1
109 }-
110 if (topLeft.row() > bottomRight.row()
topLeft.row() ...tomRight.row()Description
TRUEnever evaluated
FALSEevaluated 5298 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
|| topLeft.column() > bottomRight.column()
topLeft.column...Right.column()Description
TRUEnever evaluated
FALSEevaluated 5298 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
) {
0-5298
111 int top = qMin(topLeft.row(), bottomRight.row());-
112 int bottom = qMax(topLeft.row(), bottomRight.row());-
113 int left = qMin(topLeft.column(), bottomRight.column());-
114 int right = qMax(topLeft.column(), bottomRight.column());-
115 QModelIndex tl = topLeft.sibling(top, left);-
116 QModelIndex br = bottomRight.sibling(bottom, right);-
117 append(QItemSelectionRange(tl, br));-
118 return;
never executed: return;
0
119 }-
120 append(QItemSelectionRange(topLeft, bottomRight));-
121}
executed 5298 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
5298
122-
123-
124-
125-
126-
127-
128bool QItemSelection::contains(const QModelIndex &index) const-
129{-
130 if (index.flags() & Qt::ItemIsSelectable
index.flags() ...emIsSelectableDescription
TRUEevaluated 8400 times by 20 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QCalendarWidget
) {
7-8400
131 QList<QItemSelectionRange>::const_iterator it = begin();-
132 for (; it != end()
it != end()Description
TRUEevaluated 10592 times by 20 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 6835 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
; ++it)
6835-10592
133 if ((*
(*it).contains(index)Description
TRUEevaluated 1565 times by 20 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 9027 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
it).contains(index)
(*it).contains(index)Description
TRUEevaluated 1565 times by 20 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 9027 times by 18 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
)
1565-9027
134 return
executed 1565 times by 20 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
true;
executed 1565 times by 20 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
1565
135 }
executed 6835 times by 18 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
6835
136 return
executed 6842 times by 18 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
false;
executed 6842 times by 18 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
6842
137}-
138-
139-
140-
141-
142-
143QModelIndexList QItemSelection::indexes() const-
144{-
145 QModelIndexList result;-
146 QList<QItemSelectionRange>::const_iterator it = begin();-
147 for (; it != end()
it != end()Description
TRUEevaluated 954 times by 16 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 1153 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
; ++it)
954-1153
148 indexesFromRange(*it, result);
executed 954 times by 16 tests: indexesFromRange(*it, result);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
954
149 return
executed 1153 times by 17 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
result;
executed 1153 times by 17 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
1153
150}-
151-
152static QVector<QPersistentModelIndex> qSelectionPersistentindexes(const QItemSelection &sel)-
153{-
154 QVector<QPersistentModelIndex> result;-
155 QList<QItemSelectionRange>::const_iterator it = sel.constBegin();-
156 for (; it != sel.constEnd()
it != sel.constEnd()Description
TRUEevaluated 84 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEevaluated 5650 times by 16 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
; ++it)
84-5650
157 indexesFromRange(*it, result);
executed 84 times by 8 tests: indexesFromRange(*it, result);
Executed by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
84
158 return
executed 5650 times by 16 tests: return result;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
result;
executed 5650 times by 16 tests: return result;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
5650
159}-
160-
161static QVector<QPair<QPersistentModelIndex, uint> > qSelectionPersistentRowLengths(const QItemSelection &sel)-
162{-
163 QVector<QPair<QPersistentModelIndex, uint> > result;-
164 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(sel)>::type> _container_((sel)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QItemSelectionRange &range = *_container_.i; _container_.control; _container_.control = 0)-
165 rowLengthsFromRange(range, result);
executed 15 times by 2 tests: rowLengthsFromRange(range, result);
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
15
166 return
executed 250 times by 9 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHeaderView
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QTableView
  • tst_QTreeView
result;
executed 250 times by 9 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHeaderView
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QTableView
  • tst_QTreeView
250
167}-
168void QItemSelection::merge(const QItemSelection &other, QItemSelectionModel::SelectionFlags command)-
169{-
170 if (other.isEmpty()
other.isEmpty()Description
TRUEevaluated 227632 times by 42 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
FALSEevaluated 13459 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
||
13459-227632
171 !(command & QItemSelectionModel::Select ||-
172 command & QItemSelectionModel::Deselect ||-
173 command & QItemSelectionModel::Toggle))-
174 return;
executed 227632 times by 42 tests: return;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
227632
175-
176 QItemSelection newSelection = other;-
177-
178 QItemSelection intersections;-
179 QItemSelection::iterator it = newSelection.begin();-
180 while (it != newSelection.end()
it != newSelection.end()Description
TRUEevaluated 13996 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
FALSEevaluated 13459 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
) {
13459-13996
181 if (!(*it).isValid()
!(*it).isValid()Description
TRUEevaluated 227 times by 15 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QMenu
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 13769 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
) {
227-13769
182 it = newSelection.erase(it);-
183 continue;
executed 227 times by 15 tests: continue;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QMenu
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
227
184 }-
185 for (int t = 0; t < count()
t < count()Description
TRUEevaluated 4391 times by 15 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 13769 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
; ++t) {
4391-13769
186 if ((*
(*it).intersects(at(t))Description
TRUEevaluated 887 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 3504 times by 15 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
it).intersects(at(t))
(*it).intersects(at(t))Description
TRUEevaluated 887 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 3504 times by 15 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
)
887-3504
187 intersections.append(at(t).intersected(*it));
executed 887 times by 10 tests: intersections.append(at(t).intersected(*it));
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
887
188 }
executed 4391 times by 15 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
4391
189 ++it;-
190 }
executed 13769 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
13769
191-
192-
193 for (int i = 0; i < intersections.count()
i < intersections.count()Description
TRUEevaluated 887 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 13459 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
; ++i) {
887-13459
194 for (int t = 0; t < count()
t < count()Description
TRUEevaluated 2914 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 887 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
;) {
887-2914
195 if (at(t).intersects(intersections.at(i))
at(t).intersec...ections.at(i))Description
TRUEevaluated 887 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 2027 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
) {
887-2027
196 split(at(t), intersections.at(i), this);-
197 removeAt(t);-
198 }
executed 887 times by 10 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
else {
887
199 ++t;-
200 }
executed 2027 times by 9 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
2027
201 }-
202-
203 for (int n = 0; (command & QItemSelectionModel::Toggle) && n < newSelection.count()
n < newSelection.count()Description
TRUEevaluated 181 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QItemSelectionModel
FALSEevaluated 170 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QItemSelectionModel
;) {
170-181
204 if (newSelection.at(n).intersects(intersections.at(i))
newSelection.a...ections.at(i))Description
TRUEevaluated 170 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QItemSelectionModel
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
) {
11-170
205 split(newSelection.at(n), intersections.at(i), &newSelection);-
206 newSelection.removeAt(n);-
207 }
executed 170 times by 3 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QItemSelectionModel
else {
170
208 ++n;-
209 }
executed 11 times by 2 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
11
210 }-
211 }
executed 887 times by 10 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
887
212-
213 if (!(command & QItemSelectionModel::Deselect)
!(command & QI...del::Deselect)Description
TRUEevaluated 12648 times by 27 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 811 times by 14 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
)
811-12648
214 operator+=(newSelection);
executed 12648 times by 27 tests: operator+=(newSelection);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
12648
215}
executed 13459 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
13459
216void QItemSelection::split(const QItemSelectionRange &range,-
217 const QItemSelectionRange &other, QItemSelection *result)-
218{-
219 if (range.parent() != other.parent()
range.parent()...other.parent()Description
TRUEnever evaluated
FALSEevaluated 1684 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
|| range.model() != other.model()
range.model() != other.model()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 1683 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
)
0-1684
220 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QItemSelectionModel
1
221-
222 QModelIndex parent = other.parent();-
223 int top = range.top();-
224 int left = range.left();-
225 int bottom = range.bottom();-
226 int right = range.right();-
227 int other_top = other.top();-
228 int other_left = other.left();-
229 int other_bottom = other.bottom();-
230 int other_right = other.right();-
231 const QAbstractItemModel *model = range.model();-
232 ((!(model)) ? qt_assert("model",__FILE__,572) : qt_noop());-
233 if (other_top > top
other_top > topDescription
TRUEevaluated 261 times by 6 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
FALSEevaluated 1422 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
) {
261-1422
234 QModelIndex tl = model->index(top, left, parent);-
235 QModelIndex br = model->index(other_top - 1, right, parent);-
236 result->append(QItemSelectionRange(tl, br));-
237 top = other_top;-
238 }
executed 261 times by 6 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
261
239 if (other_bottom < bottom
other_bottom < bottomDescription
TRUEevaluated 260 times by 6 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 1423 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
) {
260-1423
240 QModelIndex tl = model->index(other_bottom + 1, left, parent);-
241 QModelIndex br = model->index(bottom, right, parent);-
242 result->append(QItemSelectionRange(tl, br));-
243 bottom = other_bottom;-
244 }
executed 260 times by 6 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
260
245 if (other_left > left
other_left > leftDescription
TRUEevaluated 178 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 1505 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
) {
178-1505
246 QModelIndex tl = model->index(top, left, parent);-
247 QModelIndex br = model->index(bottom, other_left - 1, parent);-
248 result->append(QItemSelectionRange(tl, br));-
249 left = other_left;-
250 }
executed 178 times by 5 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
178
251 if (other_right < right
other_right < rightDescription
TRUEevaluated 195 times by 6 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 1488 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
) {
195-1488
252 QModelIndex tl = model->index(top, other_right + 1, parent);-
253 QModelIndex br = model->index(bottom, right, parent);-
254 result->append(QItemSelectionRange(tl, br));-
255 right = other_right;-
256 }
executed 195 times by 6 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
195
257}
executed 1683 times by 11 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
1683
258-
259-
260void QItemSelectionModelPrivate::initModel(QAbstractItemModel *m)-
261{-
262 struct Cx {-
263 const char *signal;-
264 const char *slot;-
265 };-
266 static const Cx connections[] = {-
267 { qFlagLocation("2""rowsAboutToBeRemoved(QModelIndex,int,int)" "\0" __FILE__ ":" "607"),-
268 qFlagLocation("1""_q_rowsAboutToBeRemoved(QModelIndex,int,int)" "\0" __FILE__ ":" "608") },-
269 { qFlagLocation("2""columnsAboutToBeRemoved(QModelIndex,int,int)" "\0" __FILE__ ":" "609"),-
270 qFlagLocation("1""_q_columnsAboutToBeRemoved(QModelIndex,int,int)" "\0" __FILE__ ":" "610") },-
271 { qFlagLocation("2""rowsAboutToBeInserted(QModelIndex,int,int)" "\0" __FILE__ ":" "611"),-
272 qFlagLocation("1""_q_rowsAboutToBeInserted(QModelIndex,int,int)" "\0" __FILE__ ":" "612") },-
273 { qFlagLocation("2""columnsAboutToBeInserted(QModelIndex,int,int)" "\0" __FILE__ ":" "613"),-
274 qFlagLocation("1""_q_columnsAboutToBeInserted(QModelIndex,int,int)" "\0" __FILE__ ":" "614") },-
275 { qFlagLocation("2""rowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)" "\0" __FILE__ ":" "615"),-
276 qFlagLocation("1""_q_layoutAboutToBeChanged()" "\0" __FILE__ ":" "616") },-
277 { qFlagLocation("2""columnsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)" "\0" __FILE__ ":" "617"),-
278 qFlagLocation("1""_q_layoutAboutToBeChanged()" "\0" __FILE__ ":" "618") },-
279 { qFlagLocation("2""rowsMoved(QModelIndex,int,int,QModelIndex,int)" "\0" __FILE__ ":" "619"),-
280 qFlagLocation("1""_q_layoutChanged()" "\0" __FILE__ ":" "620") },-
281 { qFlagLocation("2""columnsMoved(QModelIndex,int,int,QModelIndex,int)" "\0" __FILE__ ":" "621"),-
282 qFlagLocation("1""_q_layoutChanged()" "\0" __FILE__ ":" "622") },-
283 { qFlagLocation("2""layoutAboutToBeChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)" "\0" __FILE__ ":" "623"),-
284 qFlagLocation("1""_q_layoutAboutToBeChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)" "\0" __FILE__ ":" "624") },-
285 { qFlagLocation("2""layoutChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)" "\0" __FILE__ ":" "625"),-
286 qFlagLocation("1""_q_layoutChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)" "\0" __FILE__ ":" "626") },-
287 { qFlagLocation("2""modelReset()" "\0" __FILE__ ":" "627"),-
288 qFlagLocation("1""reset()" "\0" __FILE__ ":" "628") },-
289 { 0, 0 }-
290 };-
291-
292 if (model == m
model == mDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 4986 times by 42 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
)
1-4986
293 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QItemSelectionModel
1
294-
295 QItemSelectionModel * const q = q_func();-
296 if (model
modelDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 4985 times by 42 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
) {
1-4985
297 for (const Cx *cx = &connections[0]; cx->signal
cx->signalDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QItemSelectionModel
; cx++)
1-11
298 QObject::disconnect(model, cx->signal, q, cx->slot);
executed 11 times by 1 test: QObject::disconnect(model, cx->signal, q, cx->slot);
Executed by:
  • tst_QItemSelectionModel
11
299 q->reset();-
300 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QItemSelectionModel
1
301 model = m;-
302 if (model
modelDescription
TRUEevaluated 4985 times by 42 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QItemSelectionModel
) {
1-4985
303 for (const Cx *cx = &connections[0]; cx->signal
cx->signalDescription
TRUEevaluated 54835 times by 42 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
FALSEevaluated 4985 times by 42 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
; cx++)
4985-54835
304 QObject::connect(model, cx->signal, q, cx->slot);
executed 54835 times by 42 tests: QObject::connect(model, cx->signal, q, cx->slot);
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
54835
305 }
executed 4985 times by 42 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
4985
306}
executed 4986 times by 42 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
4986
307QItemSelection QItemSelectionModelPrivate::expandSelection(const QItemSelection &selection,-
308 QItemSelectionModel::SelectionFlags command) const-
309{-
310 if (selection.isEmpty()
selection.isEmpty()Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 553 times by 14 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
&& !((command & QItemSelectionModel::Rows) ||
11-553
311 (
(command & QIt...odel::Columns)Description
TRUEnever evaluated
FALSEnever evaluated
command & QItemSelectionModel::Columns)
(command & QIt...odel::Columns)Description
TRUEnever evaluated
FALSEnever evaluated
))
0
312 return
never executed: return selection;
selection;
never executed: return selection;
0
313-
314 QItemSelection expanded;-
315 if (command & QItemSelectionModel::Rows
command & QIte...ionModel::RowsDescription
TRUEevaluated 528 times by 14 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 36 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QTableView
) {
36-528
316 for (int i = 0; i < selection.count()
i < selection.count()Description
TRUEevaluated 522 times by 14 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 528 times by 14 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
; ++i) {
522-528
317 QModelIndex parent = selection.at(i).parent();-
318 int colCount = model->columnCount(parent);-
319 QModelIndex tl = model->index(selection.at(i).top(), 0, parent);-
320 QModelIndex br = model->index(selection.at(i).bottom(), colCount - 1, parent);-
321-
322 expanded.merge(QItemSelection(tl, br), QItemSelectionModel::Select);-
323 }
executed 522 times by 14 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
522
324 }
executed 528 times by 14 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
528
325 if (command & QItemSelectionModel::Columns
command & QIte...Model::ColumnsDescription
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QTableView
FALSEevaluated 528 times by 14 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
) {
36-528
326 for (int i = 0; i < selection.count()
i < selection.count()Description
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QTableView
FALSEevaluated 36 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QTableView
; ++i) {
36
327 QModelIndex parent = selection.at(i).parent();-
328 int rowCount = model->rowCount(parent);-
329 QModelIndex tl = model->index(0, selection.at(i).left(), parent);-
330 QModelIndex br = model->index(rowCount - 1, selection.at(i).right(), parent);-
331-
332 expanded.merge(QItemSelection(tl, br), QItemSelectionModel::Select);-
333 }
executed 36 times by 3 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QTableView
36
334 }
executed 36 times by 3 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QTableView
36
335 return
executed 564 times by 14 tests: return expanded;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
expanded;
executed 564 times by 14 tests: return expanded;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
564
336}-
337-
338-
339-
340-
341void QItemSelectionModelPrivate::_q_rowsAboutToBeRemoved(const QModelIndex &parent,-
342 int start, int end)-
343{-
344 QItemSelectionModel * const q = q_func();-
345 finalize();-
346-
347-
348 if (currentIndex.isValid()
currentIndex.isValid()Description
TRUEevaluated 38 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 3317 times by 23 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
&& parent == currentIndex.parent()
parent == curr...Index.parent()Description
TRUEevaluated 25 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 13 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QSortFilterProxyModel
  • tst_QTreeView
13-3317
349 && currentIndex.row() >= start
currentIndex.row() >= startDescription
TRUEevaluated 16 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 9 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
&& currentIndex.row() <= end
currentIndex.row() <= endDescription
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QTreeView
FALSEevaluated 11 times by 7 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTreeWidget
) {
5-16
350 QModelIndex old = currentIndex;-
351 if (start > 0
start > 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTreeView
FALSEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QTreeView
)
1-4
352 currentIndex = model->index(start - 1, old.column(), parent);
executed 1 time by 1 test: currentIndex = model->index(start - 1, old.column(), parent);
Executed by:
  • tst_QTreeView
1
353 else if (model && end < model->rowCount(parent) - 1
end < model->r...nt(parent) - 1Description
TRUEnever evaluated
FALSEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QTreeView
)
0-4
354 currentIndex = model->index(end + 1, old.column(), parent);
never executed: currentIndex = model->index(end + 1, old.column(), parent);
0
355 else-
356 currentIndex = QModelIndex();
executed 4 times by 3 tests: currentIndex = QModelIndex();
Executed by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QTreeView
4
357 q->currentChanged(currentIndex, old);-
358 q->currentRowChanged(currentIndex, old);-
359 if (currentIndex.column() != old.column()
currentIndex.c...= old.column()Description
TRUEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QTreeView
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTreeView
)
1-4
360 q->currentColumnChanged(currentIndex, old);
executed 4 times by 3 tests: q->currentColumnChanged(currentIndex, old);
Executed by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QTreeView
4
361 }
executed 5 times by 3 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QTreeView
5
362-
363 QItemSelection deselected;-
364 QItemSelection newParts;-
365 QItemSelection::iterator it = ranges.begin();-
366 while (it != ranges.end()
it != ranges.end()Description
TRUEevaluated 60 times by 12 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 3355 times by 24 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
) {
60-3355
367 if (it->topLeft().parent() != parent
it->topLeft()....nt() != parentDescription
TRUEevaluated 15 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
FALSEevaluated 45 times by 12 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
) {
15-45
368 QModelIndex itParent = it->topLeft().parent();-
369 while (itParent.isValid()
itParent.isValid()Description
TRUEevaluated 9 times by 4 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
FALSEevaluated 12 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
&& itParent.parent() != parent
itParent.parent() != parentDescription
TRUEevaluated 6 times by 4 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
FALSEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
)
3-12
370 itParent = itParent.parent();
executed 6 times by 4 tests: itParent = itParent.parent();
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
6
371-
372 if (itParent.isValid()
itParent.isValid()Description
TRUEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
FALSEevaluated 12 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
&& start <= itParent.row()
start <= itParent.row()Description
TRUEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
FALSEnever evaluated
&& itParent.row() <= end
itParent.row() <= endDescription
TRUEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
FALSEnever evaluated
) {
0-12
373 deselected.append(*it);-
374 it = ranges.erase(it);-
375 }
executed 3 times by 3 tests: end of block
Executed by:
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
else {
3
376 ++it;-
377 }
executed 12 times by 5 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
12
378 } else if (start <= it->bottom()
start <= it->bottom()Description
TRUEevaluated 40 times by 12 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 5 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
&& it->bottom() <= end
it->bottom() <= endDescription
TRUEevaluated 22 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 18 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTreeWidget
5-40
379 && start <= it->top()
start <= it->top()Description
TRUEevaluated 20 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
&& it->top() <= end
it->top() <= endDescription
TRUEevaluated 20 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
FALSEnever evaluated
) {
0-20
380 deselected.append(*it);-
381 it = ranges.erase(it);-
382 }
executed 20 times by 8 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
else if (start <= it->top()
start <= it->top()Description
TRUEevaluated 15 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTreeWidget
FALSEevaluated 10 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
&& it->top() <= end
it->top() <= endDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 12 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTreeWidget
) {
3-20
383 deselected.append(QItemSelectionRange(it->topLeft(), model->index(end, it->right(), it->parent())));-
384 *it = QItemSelectionRange(model->index(end + 1, it->left(), it->parent()), it->bottomRight());-
385 ++it;-
386 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QItemSelectionModel
else if (start <= it->bottom()
start <= it->bottom()Description
TRUEevaluated 17 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTreeWidget
FALSEevaluated 5 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
&& it->bottom() <= end
it->bottom() <= endDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 15 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTreeWidget
) {
2-17
387 deselected.append(QItemSelectionRange(model->index(start, it->left(), it->parent()), it->bottomRight()));-
388 *it = QItemSelectionRange(it->topLeft(), model->index(start - 1, it->right(), it->parent()));-
389 ++it;-
390 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QItemSelectionModel
else if (it->top() < start
it->top() < startDescription
TRUEevaluated 8 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
FALSEevaluated 12 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTreeWidget
&& end < it->bottom()
end < it->bottom()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 5 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
) {
2-12
391-
392-
393-
394-
395 const QItemSelectionRange removedRange(model->index(start, it->left(), it->parent()),-
396 model->index(end, it->right(), it->parent()));-
397 deselected.append(removedRange);-
398 QItemSelection::split(*it, removedRange, &newParts);-
399 it = ranges.erase(it);-
400 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QItemSelectionModel
else
3
401 ++
executed 17 times by 9 tests: ++it;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTreeView
  • tst_QTreeWidget
it;
executed 17 times by 9 tests: ++it;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTreeView
  • tst_QTreeWidget
17
402 }-
403 ranges.append(newParts);-
404-
405 if (!deselected.isEmpty()
!deselected.isEmpty()Description
TRUEevaluated 30 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 3325 times by 24 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
)
30-3325
406 q->selectionChanged(QItemSelection(), deselected);
executed 30 times by 8 tests: q->selectionChanged(QItemSelection(), deselected);
Executed by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
30
407}
executed 3355 times by 24 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
3355
408-
409-
410-
411-
412void QItemSelectionModelPrivate::_q_columnsAboutToBeRemoved(const QModelIndex &parent,-
413 int start, int end)-
414{-
415 QItemSelectionModel * const q = q_func();-
416-
417-
418 if (currentIndex.isValid()
currentIndex.isValid()Description
TRUEevaluated 8 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QListView
  • tst_QTableView
FALSEevaluated 272 times by 10 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
&& parent == currentIndex.parent()
parent == curr...Index.parent()Description
TRUEevaluated 8 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QListView
  • tst_QTableView
FALSEnever evaluated
0-272
419 && currentIndex.column() >= start
currentIndex.column() >= startDescription
TRUEevaluated 7 times by 3 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QListView
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTableView
&& currentIndex.column() <= end
currentIndex.column() <= endDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QListView
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
) {
1-7
420 QModelIndex old = currentIndex;-
421 if (start > 0
start > 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QListView
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QListView
)
1
422 currentIndex = model->index(old.row(), start - 1, parent);
executed 1 time by 1 test: currentIndex = model->index(old.row(), start - 1, parent);
Executed by:
  • tst_QListView
1
423 else if (model && end < model->columnCount() - 1
end < model->columnCount() - 1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QListView
FALSEnever evaluated
)
0-1
424 currentIndex = model->index(old.row(), end + 1, parent);
executed 1 time by 1 test: currentIndex = model->index(old.row(), end + 1, parent);
Executed by:
  • tst_QListView
1
425 else-
426 currentIndex = QModelIndex();
never executed: currentIndex = QModelIndex();
0
427 q->currentChanged(currentIndex, old);-
428 if (currentIndex.row() != old.row()
currentIndex.r...) != old.row()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QListView
)
0-2
429 q->currentRowChanged(currentIndex, old);
never executed: q->currentRowChanged(currentIndex, old);
0
430 q->currentColumnChanged(currentIndex, old);-
431 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QListView
2
432-
433-
434 QModelIndex tl = model->index(0, start, parent);-
435 QModelIndex br = model->index(model->rowCount(parent) - 1, end, parent);-
436 q->select(QItemSelection(tl, br), QItemSelectionModel::Deselect);-
437 finalize();-
438}
executed 280 times by 11 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
280
439-
440-
441-
442-
443-
444-
445void QItemSelectionModelPrivate::_q_columnsAboutToBeInserted(const QModelIndex &parent,-
446 int start, int end)-
447{-
448 (void)end;;-
449 finalize();-
450 QList<QItemSelectionRange> split;-
451 QList<QItemSelectionRange>::iterator it = ranges.begin();-
452 for (; it != ranges.end()
it != ranges.end()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAccessibility
FALSEevaluated 842 times by 12 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
; ) {
1-842
453 if ((*
(*it).isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAccessibility
FALSEnever evaluated
it).isValid()
(*it).isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAccessibility
FALSEnever evaluated
&& (*
(*it).parent() == parentDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAccessibility
FALSEnever evaluated
it).parent() == parent
(*it).parent() == parentDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAccessibility
FALSEnever evaluated
0-1
454 && (*
(*it).left() < startDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAccessibility
FALSEnever evaluated
it).left() < start
(*it).left() < startDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAccessibility
FALSEnever evaluated
&& (*
(*it).right() >= startDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAccessibility
it).right() >= start
(*it).right() >= startDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAccessibility
) {
0-1
455 QModelIndex bottomMiddle = model->index((*it).bottom(), start - 1, (*it).parent());-
456 QItemSelectionRange left((*it).topLeft(), bottomMiddle);-
457 QModelIndex topMiddle = model->index((*it).top(), start, (*it).parent());-
458 QItemSelectionRange right(topMiddle, (*it).bottomRight());-
459 it = ranges.erase(it);-
460 split.append(left);-
461 split.append(right);-
462 }
never executed: end of block
else {
0
463 ++it;-
464 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QAccessibility
1
465 }-
466 ranges += split;-
467}
executed 842 times by 12 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
842
468-
469-
470-
471-
472-
473-
474void QItemSelectionModelPrivate::_q_rowsAboutToBeInserted(const QModelIndex &parent,-
475 int start, int end)-
476{-
477 (void)end;;-
478 finalize();-
479 QList<QItemSelectionRange> split;-
480 QList<QItemSelectionRange>::iterator it = ranges.begin();-
481 for (; it != ranges.end()
it != ranges.end()Description
TRUEevaluated 3043 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 200855 times by 31 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QPrinter
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • ...
; ) {
3043-200855
482 if ((*
(*it).isValid()Description
TRUEevaluated 3043 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEnever evaluated
it).isValid()
(*it).isValid()Description
TRUEevaluated 3043 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEnever evaluated
&& (*
(*it).parent() == parentDescription
TRUEevaluated 284 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 2759 times by 7 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
it).parent() == parent
(*it).parent() == parentDescription
TRUEevaluated 284 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 2759 times by 7 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
0-3043
483 && (*
(*it).top() < startDescription
TRUEevaluated 276 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 8 times by 4 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QItemSelectionModel
it).top() < start
(*it).top() < startDescription
TRUEevaluated 276 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 8 times by 4 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QItemSelectionModel
&& (*
(*it).bottom() >= startDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 273 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
it).bottom() >= start
(*it).bottom() >= startDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 273 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
) {
3-276
484 QModelIndex middleRight = model->index(start - 1, (*it).right(), (*it).parent());-
485 QItemSelectionRange top((*it).topLeft(), middleRight);-
486 QModelIndex middleLeft = model->index(start, (*it).left(), (*it).parent());-
487 QItemSelectionRange bottom(middleLeft, (*it).bottomRight());-
488 it = ranges.erase(it);-
489 split.append(top);-
490 split.append(bottom);-
491 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QItemSelectionModel
else {
3
492 ++it;-
493 }
executed 3040 times by 11 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
3040
494 }-
495 ranges += split;-
496}
executed 200855 times by 31 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QPrinter
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • ...
200855
497void QItemSelectionModelPrivate::_q_layoutAboutToBeChanged(const QList<QPersistentModelIndex> &, QAbstractItemModel::LayoutChangeHint hint)-
498{-
499 savedPersistentIndexes.clear();-
500 savedPersistentCurrentIndexes.clear();-
501 savedPersistentRowLengths.clear();-
502 savedPersistentCurrentRowLengths.clear();-
503-
504-
505-
506 if (ranges.isEmpty()
ranges.isEmpty()Description
TRUEevaluated 2915 times by 20 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
FALSEevaluated 35 times by 6 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTreeWidget
&& currentSelection.count() == 1
currentSelection.count() == 1Description
TRUEevaluated 14 times by 6 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableWidget
FALSEevaluated 2901 times by 19 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
) {
14-2915
507 QItemSelectionRange range = currentSelection.first();-
508 QModelIndex parent = range.parent();-
509 tableRowCount = model->rowCount(parent);-
510 tableColCount = model->columnCount(parent);-
511 if (tableRowCount * tableColCount > 1000
tableRowCount ...olCount > 1000Description
TRUEnever evaluated
FALSEevaluated 14 times by 6 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableWidget
0-14
512 && range.top() == 0
range.top() == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
513 && range.left() == 0
range.left() == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
514 && range.bottom() == tableRowCount - 1
range.bottom()...leRowCount - 1Description
TRUEnever evaluated
FALSEnever evaluated
0
515 && range.right() == tableColCount - 1
range.right() ...leColCount - 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
516 tableSelected = true;-
517 tableParent = parent;-
518 return;
never executed: return;
0
519 }-
520 }
executed 14 times by 6 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableWidget
14
521 tableSelected = false;-
522-
523 if (hint == QAbstractItemModel::VerticalSortHint
hint == QAbstr...rticalSortHintDescription
TRUEevaluated 125 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHeaderView
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 2825 times by 16 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
) {
125-2825
524-
525-
526-
527-
528-
529 savedPersistentRowLengths = qSelectionPersistentRowLengths(ranges);-
530 savedPersistentCurrentRowLengths = qSelectionPersistentRowLengths(currentSelection);-
531 }
executed 125 times by 9 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHeaderView
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QTableView
  • tst_QTreeView
else {
125
532 savedPersistentIndexes = qSelectionPersistentindexes(ranges);-
533 savedPersistentCurrentIndexes = qSelectionPersistentindexes(currentSelection);-
534 }
executed 2825 times by 16 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
2825
535}-
536-
537-
538-
539static QItemSelection mergeRowLengths(const QVector<QPair<QPersistentModelIndex, uint> > &rowLengths)-
540{-
541 if (rowLengths.isEmpty()
rowLengths.isEmpty()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
)
8-12
542 return
executed 8 times by 2 tests: return QItemSelection();
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
QItemSelection();
executed 8 times by 2 tests: return QItemSelection();
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
8
543-
544 QItemSelection result;-
545 int i = 0;-
546 while (i < rowLengths.count()
i < rowLengths.count()Description
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
) {
12-13
547 const QPersistentModelIndex &tl = rowLengths.at(i).first;-
548 if (!tl.isValid()
!tl.isValid()Description
TRUEnever evaluated
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
) {
0-13
549 ++i;-
550 continue;
never executed: continue;
0
551 }-
552 QPersistentModelIndex br = tl;-
553 const uint length = rowLengths.at(i).second;-
554 while (++
++i < rowLengths.count()Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
i < rowLengths.count()
++i < rowLengths.count()Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
) {
11-12
555 const QPersistentModelIndex &next = rowLengths.at(i).first;-
556 if (!next.isValid()
!next.isValid()Description
TRUEnever evaluated
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
)
0-11
557 continue;
never executed: continue;
0
558 const uint nextLength = rowLengths.at(i).second;-
559 if ((
(nextLength == length)Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEnever evaluated
nextLength == length)
(nextLength == length)Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEnever evaluated
0-11
560 && (
(next.row() == br.row() + 1)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QItemSelectionModel
next.row() == br.row() + 1)
(next.row() == br.row() + 1)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QItemSelectionModel
1-10
561 && (
(next.parent() == br.parent())Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEnever evaluated
next.parent() == br.parent())
(next.parent() == br.parent())Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEnever evaluated
) {
0-10
562 br = next;-
563 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
else {
10
564 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QItemSelectionModel
1
565 }-
566 }-
567 result.append(QItemSelectionRange(tl, br.sibling(br.row(), length - 1)));-
568 }
executed 13 times by 2 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
13
569 return
executed 12 times by 2 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
result;
executed 12 times by 2 tests: return result;
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
12
570}-
571-
572-
573-
574-
575-
576-
577-
578static QItemSelection mergeIndexes(const QVector<QPersistentModelIndex> &indexes)-
579{-
580 QItemSelection colSpans;-
581-
582 int i = 0;-
583 while (i < indexes.count()
i < indexes.count()Description
TRUEevaluated 102 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEevaluated 78 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
) {
78-102
584 const QPersistentModelIndex &tl = indexes.at(i);-
585 if (!tl.isValid()
!tl.isValid()Description
TRUEnever evaluated
FALSEevaluated 102 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
) {
0-102
586 ++i;-
587 continue;
never executed: continue;
0
588 }-
589 QPersistentModelIndex br = tl;-
590 QModelIndex brParent = br.parent();-
591 int brRow = br.row();-
592 int brColumn = br.column();-
593 while (++
++i < indexes.count()Description
TRUEevaluated 555 times by 7 tests
Evaluated by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEevaluated 46 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
i < indexes.count()
++i < indexes.count()Description
TRUEevaluated 555 times by 7 tests
Evaluated by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEevaluated 46 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
) {
46-555
594 const QPersistentModelIndex &next = indexes.at(i);-
595 if (!next.isValid()
!next.isValid()Description
TRUEnever evaluated
FALSEevaluated 555 times by 7 tests
Evaluated by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
)
0-555
596 continue;
never executed: continue;
0
597 const QModelIndex nextParent = next.parent();-
598 const int nextRow = next.row();-
599 const int nextColumn = next.column();-
600 if ((
(nextParent == brParent)Description
TRUEevaluated 519 times by 7 tests
Evaluated by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QStandardItemModel
nextParent == brParent)
(nextParent == brParent)Description
TRUEevaluated 519 times by 7 tests
Evaluated by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QStandardItemModel
36-519
601 && (
(nextRow == brRow)Description
TRUEevaluated 499 times by 7 tests
Evaluated by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
nextRow == brRow)
(nextRow == brRow)Description
TRUEevaluated 499 times by 7 tests
Evaluated by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
20-499
602 && (
(nextColumn == brColumn + 1)Description
TRUEevaluated 499 times by 7 tests
Evaluated by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEnever evaluated
nextColumn == brColumn + 1)
(nextColumn == brColumn + 1)Description
TRUEevaluated 499 times by 7 tests
Evaluated by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEnever evaluated
) {
0-499
603 br = next;-
604 brParent = nextParent;-
605 brRow = nextRow;-
606 brColumn = nextColumn;-
607 }
executed 499 times by 7 tests: end of block
Executed by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
else {
499
608 break;
executed 56 times by 3 tests: break;
Executed by:
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
56
609 }-
610 }-
611 colSpans.append(QItemSelectionRange(tl, br));-
612 }
executed 102 times by 8 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
102
613-
614 QItemSelection rowSpans;-
615 i = 0;-
616 while (i < colSpans.count()
i < colSpans.count()Description
TRUEevaluated 96 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEevaluated 78 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
) {
78-96
617 QModelIndex tl = colSpans.at(i).topLeft();-
618 QModelIndex br = colSpans.at(i).bottomRight();-
619 QModelIndex prevTl = tl;-
620 while (++
++i < colSpans.count()Description
TRUEevaluated 56 times by 3 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
FALSEevaluated 46 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
i < colSpans.count()
++i < colSpans.count()Description
TRUEevaluated 56 times by 3 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
FALSEevaluated 46 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
) {
46-56
621 QModelIndex nextTl = colSpans.at(i).topLeft();-
622 QModelIndex nextBr = colSpans.at(i).bottomRight();-
623-
624 if (nextTl.parent() != tl.parent()
nextTl.parent() != tl.parent()Description
TRUEevaluated 36 times by 2 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QStandardItemModel
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
)
20-36
625 break;
executed 36 times by 2 tests: break;
Executed by:
  • tst_QFiledialog
  • tst_QStandardItemModel
36
626-
627 if ((
(nextTl.column...evTl.column())Description
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
FALSEnever evaluated
nextTl.column() == prevTl.column())
(nextTl.column...evTl.column())Description
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
FALSEnever evaluated
&& (
(nextBr.column...= br.column())Description
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
FALSEnever evaluated
nextBr.column() == br.column())
(nextBr.column...= br.column())Description
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
FALSEnever evaluated
0-20
628 && (
(nextTl.row() ...vTl.row() + 1)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QStandardItemModel
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
nextTl.row() == prevTl.row() + 1)
(nextTl.row() ...vTl.row() + 1)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QStandardItemModel
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
&& (
(nextBr.row() == br.row() + 1)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QStandardItemModel
FALSEnever evaluated
nextBr.row() == br.row() + 1)
(nextBr.row() == br.row() + 1)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QStandardItemModel
FALSEnever evaluated
) {
0-14
629 br = nextBr;-
630 prevTl = nextTl;-
631 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QStandardItemModel
else {
6
632 break;
executed 14 times by 1 test: break;
Executed by:
  • tst_QItemSelectionModel
14
633 }-
634 }-
635 rowSpans.append(QItemSelectionRange(tl, br));-
636 }
executed 96 times by 8 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
96
637 return
executed 78 times by 8 tests: return rowSpans;
Executed by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
rowSpans;
executed 78 times by 8 tests: return rowSpans;
Executed by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
78
638}-
639static bool qt_PersistentModelIndexLessThan(const QPersistentModelIndex &i1, const QPersistentModelIndex &i2)-
640{-
641 const QModelIndex parent1 = i1.parent();-
642 const QModelIndex parent2 = i2.parent();-
643 return
executed 2151 times by 7 tests: return parent1 == parent2 ? i1 < i2 : parent1 < parent2;
Executed by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
parent1 == parent2
parent1 == parent2Description
TRUEevaluated 1868 times by 7 tests
Evaluated by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEevaluated 283 times by 2 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QStandardItemModel
? i1 < i2 : parent1 < parent2;
executed 2151 times by 7 tests: return parent1 == parent2 ? i1 < i2 : parent1 < parent2;
Executed by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
283-2151
644}-
645-
646-
647-
648-
649-
650-
651void QItemSelectionModelPrivate::_q_layoutChanged(const QList<QPersistentModelIndex> &, QAbstractItemModel::LayoutChangeHint hint)-
652{-
653-
654 if (tableSelected
tableSelectedDescription
TRUEnever evaluated
FALSEevaluated 2951 times by 20 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
&& tableColCount == model->columnCount(tableParent)
tableColCount ...t(tableParent)Description
TRUEnever evaluated
FALSEnever evaluated
0-2951
655 && tableRowCount == model->rowCount(tableParent)
tableRowCount ...t(tableParent)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
656 ranges.clear();-
657 currentSelection.clear();-
658 int bottom = tableRowCount - 1;-
659 int right = tableColCount - 1;-
660 QModelIndex tl = model->index(0, 0, tableParent);-
661 QModelIndex br = model->index(bottom, right, tableParent);-
662 currentSelection << QItemSelectionRange(tl, br);-
663 tableParent = QModelIndex();-
664 tableSelected = false;-
665 return;
never executed: return;
0
666 }-
667-
668 if ((hint != QAbstractItemModel::VerticalSortHint
hint != QAbstr...rticalSortHintDescription
TRUEevaluated 2826 times by 17 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
FALSEevaluated 125 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHeaderView
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QTableView
  • tst_QTreeView
&& savedPersistentCurrentIndexes.isEmpty()
savedPersisten...exes.isEmpty()Description
TRUEevaluated 2810 times by 16 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
FALSEevaluated 16 times by 5 tests
Evaluated by:
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableWidget
&& savedPersistentIndexes.isEmpty()
savedPersisten...exes.isEmpty()Description
TRUEevaluated 2787 times by 16 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
FALSEevaluated 23 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QStandardItemModel
  • tst_QTreeWidget
)
16-2826
669 || (hint == QAbstractItemModel::VerticalSortHint
hint == QAbstr...rticalSortHintDescription
TRUEevaluated 125 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHeaderView
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 39 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
&& savedPersistentRowLengths.isEmpty()
savedPersisten...gths.isEmpty()Description
TRUEevaluated 120 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHeaderView
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
&& savedPersistentCurrentRowLengths.isEmpty()
savedPersisten...gths.isEmpty()Description
TRUEevaluated 115 times by 7 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHeaderView
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
)) {
5-125
670-
671-
672 return;
executed 2902 times by 19 tests: return;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
2902
673 }-
674-
675-
676 ranges.clear();-
677 currentSelection.clear();-
678-
679 if (hint != QAbstractItemModel::VerticalSortHint
hint != QAbstr...rticalSortHintDescription
TRUEevaluated 39 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
) {
10-39
680-
681 std::stable_sort(savedPersistentIndexes.begin(), savedPersistentIndexes.end(),-
682 qt_PersistentModelIndexLessThan);-
683 std::stable_sort(savedPersistentCurrentIndexes.begin(), savedPersistentCurrentIndexes.end(),-
684 qt_PersistentModelIndexLessThan);-
685-
686-
687 ranges = mergeIndexes(savedPersistentIndexes);-
688 currentSelection = mergeIndexes(savedPersistentCurrentIndexes);-
689-
690-
691 savedPersistentIndexes.clear();-
692 savedPersistentCurrentIndexes.clear();-
693 }
executed 39 times by 8 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
else {
39
694-
695 std::stable_sort(savedPersistentRowLengths.begin(), savedPersistentRowLengths.end());-
696 std::stable_sort(savedPersistentCurrentRowLengths.begin(), savedPersistentCurrentRowLengths.end());-
697-
698-
699 ranges = mergeRowLengths(savedPersistentRowLengths);-
700 currentSelection = mergeRowLengths(savedPersistentCurrentRowLengths);-
701-
702-
703 savedPersistentRowLengths.clear();-
704 savedPersistentCurrentRowLengths.clear();-
705 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
10
706}-
707QItemSelectionModel::QItemSelectionModel(QAbstractItemModel *model)-
708 : QObject(*new QItemSelectionModelPrivate, model)-
709{-
710 d_func()->initModel(model);-
711}
executed 92 times by 7 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QColumnView
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTreeView
  • tst_QTreeWidget
92
712-
713-
714-
715-
716QItemSelectionModel::QItemSelectionModel(QAbstractItemModel *model, QObject *parent)-
717 : QObject(*new QItemSelectionModelPrivate, parent)-
718{-
719 d_func()->initModel(model);-
720}
executed 4893 times by 42 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
4893
721-
722-
723-
724-
725QItemSelectionModel::QItemSelectionModel(QItemSelectionModelPrivate &dd, QAbstractItemModel *model)-
726 : QObject(dd, model)-
727{-
728 dd.initModel(model);-
729}
never executed: end of block
0
730-
731-
732-
733-
734QItemSelectionModel::~QItemSelectionModel()-
735{-
736}-
737-
738-
739-
740-
741-
742-
743-
744void QItemSelectionModel::select(const QModelIndex &index, QItemSelectionModel::SelectionFlags command)-
745{-
746 QItemSelection selection(index, index);-
747 select(selection, command);-
748}
executed 3859 times by 27 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
3859
749void QItemSelectionModel::select(const QItemSelection &selection, QItemSelectionModel::SelectionFlags command)-
750{-
751 QItemSelectionModelPrivate * const d = d_func();-
752 if (!d->model
!d->modelDescription
TRUEnever evaluated
FALSEevaluated 7342 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
) {
0-7342
753 QMessageLogger(__FILE__, 1249, __PRETTY_FUNCTION__).warning("QItemSelectionModel: Selecting when no model has been set will result in a no-op.");-
754 return;
never executed: return;
0
755 }-
756 if (command == NoUpdate
command == NoUpdateDescription
TRUEevaluated 38 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTreeWidget
FALSEevaluated 7304 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
)
38-7304
757 return;
executed 38 times by 5 tests: return;
Executed by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTreeWidget
38
758-
759-
760 QItemSelection sel = selection;-
761-
762-
763-
764-
765-
766 QItemSelection::iterator it = d->ranges.begin();-
767 while (it != d->ranges.end()
it != d->ranges.end()Description
TRUEevaluated 1421 times by 15 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 7304 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
) {
1421-7304
768 if (!it->isValid()
!it->isValid()Description
TRUEevaluated 24 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 1397 times by 15 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
)
24-1397
769 it = d->ranges.erase(it);
executed 24 times by 4 tests: it = d->ranges.erase(it);
Executed by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
24
770 else-
771 ++
executed 1397 times by 15 tests: ++it;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
it;
executed 1397 times by 15 tests: ++it;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
1397
772 }-
773-
774 QItemSelection old = d->ranges;-
775 old.merge(d->currentSelection, d->currentCommand);-
776-
777-
778 if (command & Rows || command & Columns)-
779 sel = d->expandSelection(sel, command);
executed 564 times by 14 tests: sel = d->expandSelection(sel, command);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
564
780-
781-
782 if (command & Clear
command & ClearDescription
TRUEevaluated 5291 times by 27 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 2013 times by 26 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • ...
) {
2013-5291
783 d->ranges.clear();-
784 d->currentSelection.clear();-
785 }
executed 5291 times by 27 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
5291
786-
787-
788 if (!(command & Current)
!(command & Current)Description
TRUEevaluated 6527 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
FALSEevaluated 777 times by 12 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
)
777-6527
789 d->finalize();
executed 6527 times by 29 tests: d->finalize();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
6527
790-
791-
792 if (command & Toggle || command & Select || command & Deselect) {-
793 d->currentCommand = command;-
794 d->currentSelection = sel;-
795 }
executed 5805 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
5805
796-
797-
798 QItemSelection newSelection = d->ranges;-
799 newSelection.merge(d->currentSelection, d->currentCommand);-
800 emitSelectionChanged(newSelection, old);-
801}
executed 7304 times by 29 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
7304
802-
803-
804-
805-
806void QItemSelectionModel::clear()-
807{-
808 clearSelection();-
809 clearCurrentIndex();-
810}
executed 12224 times by 43 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
12224
811-
812-
813-
814-
815void QItemSelectionModel::clearCurrentIndex()-
816{-
817 QItemSelectionModelPrivate * const d = d_func();-
818 QModelIndex previous = d->currentIndex;-
819 d->currentIndex = QModelIndex();-
820 if (previous.isValid()
previous.isValid()Description
TRUEevaluated 879 times by 12 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTreeWidget
  • tst_languageChange
FALSEevaluated 11348 times by 43 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
) {
879-11348
821 currentChanged(d->currentIndex, previous);-
822 currentRowChanged(d->currentIndex, previous);-
823 currentColumnChanged(d->currentIndex, previous);-
824 }
executed 879 times by 12 tests: end of block
Executed by:
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTreeWidget
  • tst_languageChange
879
825}
executed 12227 times by 43 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
12227
826-
827-
828-
829-
830void QItemSelectionModel::reset()-
831{-
832 const QSignalBlocker blocker(this);-
833 clear();-
834}
executed 9588 times by 43 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
9588
835-
836-
837-
838-
839-
840void QItemSelectionModel::clearSelection()-
841{-
842 QItemSelectionModelPrivate * const d = d_func();-
843 if (d->ranges.count() == 0
d->ranges.count() == 0Description
TRUEevaluated 12217 times by 43 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
FALSEevaluated 66 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
&& d->currentSelection.count() == 0
d->currentSele...n.count() == 0Description
TRUEevaluated 10836 times by 43 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
FALSEevaluated 1381 times by 22 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
)
66-12217
844 return;
executed 10836 times by 43 tests: return;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
10836
845-
846 select(QItemSelection(), Clear);-
847}
executed 1447 times by 23 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
1447
848void QItemSelectionModel::setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command)-
849{-
850 QItemSelectionModelPrivate * const d = d_func();-
851 if (!d->model
!d->modelDescription
TRUEnever evaluated
FALSEevaluated 4176 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • ...
) {
0-4176
852 QMessageLogger(__FILE__, 1360, __PRETTY_FUNCTION__).warning("QItemSelectionModel: Setting the current index when no model has been set will result in a no-op.");-
853 return;
never executed: return;
0
854 }-
855 if (index == d->currentIndex
index == d->currentIndexDescription
TRUEevaluated 250 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 3926 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • ...
) {
250-3926
856 if (command != NoUpdate
command != NoUpdateDescription
TRUEevaluated 145 times by 15 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 105 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QItemView
  • tst_QListView
  • tst_QTreeView
  • tst_QTreeWidget
)
105-145
857 select(index, command);
executed 145 times by 15 tests: select(index, command);
Executed by:
  • tst_QAbstractItemView
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
145
858 return;
executed 250 times by 17 tests: return;
Executed by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
250
859 }-
860 QPersistentModelIndex previous = d->currentIndex;-
861 d->currentIndex = index;-
862 if (command != NoUpdate
command != NoUpdateDescription
TRUEevaluated 2955 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
FALSEevaluated 971 times by 21 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
)
971-2955
863 select(d->currentIndex, command);
executed 2955 times by 25 tests: select(d->currentIndex, command);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
2955
864 currentChanged(d->currentIndex, previous);-
865 if (d->currentIndex.row() != previous.row()
d->currentInde...previous.row()Description
TRUEevaluated 3298 times by 26 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • ...
FALSEevaluated 628 times by 14 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QColumnView
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
||
628-3298
866 d->currentIndex.parent() != previous.parent()
d->currentInde...vious.parent()Description
TRUEevaluated 51 times by 6 tests
Evaluated by:
  • tst_QColumnView
  • tst_QComboBox
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 577 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
)
51-577
867 currentRowChanged(d->currentIndex, previous);
executed 3349 times by 26 tests: currentRowChanged(d->currentIndex, previous);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • ...
3349
868 if (d->currentIndex.column() != previous.column()
d->currentInde...vious.column()Description
TRUEevaluated 2032 times by 26 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • ...
FALSEevaluated 1894 times by 21 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
||
1894-2032
869 d->currentIndex.parent() != previous.parent()
d->currentInde...vious.parent()Description
TRUEevaluated 83 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QColumnView
  • tst_QComboBox
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QSortFilterProxyModel
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 1811 times by 21 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
)
83-1811
870 currentColumnChanged(d->currentIndex, previous);
executed 2115 times by 26 tests: currentColumnChanged(d->currentIndex, previous);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • ...
2115
871}
executed 3926 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • ...
3926
872-
873-
874-
875-
876-
877QModelIndex QItemSelectionModel::currentIndex() const-
878{-
879 return
executed 38280 times by 42 tests: return static_cast<QModelIndex>(d_func()->currentIndex);
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
static_cast<QModelIndex>(d_func()->currentIndex);
executed 38280 times by 42 tests: return static_cast<QModelIndex>(d_func()->currentIndex);
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
38280
880}-
881-
882-
883-
884-
885bool QItemSelectionModel::isSelected(const QModelIndex &index) const-
886{-
887 const QItemSelectionModelPrivate * const d = d_func();-
888 if (d->model != index.model()
d->model != index.model()Description
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QTreeView
FALSEevaluated 27808 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
|| !index.isValid()
!index.isValid()Description
TRUEnever evaluated
FALSEevaluated 27808 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
)
0-27808
889 return
executed 20 times by 5 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QTreeView
false;
executed 20 times by 5 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QTreeView
20
890-
891 bool selected = false;-
892-
893 QList<QItemSelectionRange>::const_iterator it = d->ranges.begin();-
894 for (; it != d->ranges.end()
it != d->ranges.end()Description
TRUEevaluated 5722 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 27206 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
; ++it) {
5722-27206
895 if ((*
(*it).isValid()Description
TRUEevaluated 5722 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
FALSEnever evaluated
it).isValid()
(*it).isValid()Description
TRUEevaluated 5722 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
FALSEnever evaluated
&& (*
(*it).contains(index)Description
TRUEevaluated 602 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 5120 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QTableView
it).contains(index)
(*it).contains(index)Description
TRUEevaluated 602 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 5120 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QTableView
) {
0-5722
896 selected = true;-
897 break;
executed 602 times by 9 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
602
898 }-
899 }
executed 5120 times by 8 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QTableView
5120
900-
901-
902 if (d->currentSelection.count()
d->currentSelection.count()Description
TRUEevaluated 8631 times by 20 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 19177 times by 21 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
) {
8631-19177
903 if ((d->currentCommand & Deselect) && selected
selectedDescription
TRUEevaluated 213 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 112 times by 3 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
)
112-213
904 selected = !d->currentSelection.contains(index);
executed 213 times by 5 tests: selected = !d->currentSelection.contains(index);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
213
905 else if (d->currentCommand & Toggle
d->currentCommand & ToggleDescription
TRUEevaluated 120 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QItemSelectionModel
FALSEevaluated 8298 times by 20 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
)
120-8298
906 selected ^= d->currentSelection.contains(index);
executed 120 times by 3 tests: selected ^= d->currentSelection.contains(index);
Executed by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QItemSelectionModel
120
907 else if ((d->currentCommand & Select) && !selected
!selectedDescription
TRUEevaluated 8008 times by 20 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 178 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
)
178-8008
908 selected = d->currentSelection.contains(index);
executed 8008 times by 20 tests: selected = d->currentSelection.contains(index);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
8008
909 }
executed 8631 times by 20 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
8631
910-
911 if (selected
selectedDescription
TRUEevaluated 1804 times by 20 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 26004 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
) {
1804-26004
912 Qt::ItemFlags flags = d->model->flags(index);-
913 return
executed 1804 times by 20 tests: return (flags & Qt::ItemIsSelectable);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
(flags & Qt::ItemIsSelectable);
executed 1804 times by 20 tests: return (flags & Qt::ItemIsSelectable);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
1804
914 }-
915-
916 return
executed 26004 times by 23 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
false;
executed 26004 times by 23 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
26004
917}-
918bool QItemSelectionModel::isRowSelected(int row, const QModelIndex &parent) const-
919{-
920 const QItemSelectionModelPrivate * const d = d_func();-
921 if (!d->model
!d->modelDescription
TRUEnever evaluated
FALSEevaluated 1555 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
)
0-1555
922 return
never executed: return false;
false;
never executed: return false;
0
923 if (parent.isValid()
parent.isValid()Description
TRUEevaluated 516 times by 4 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTreeView
FALSEevaluated 1039 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
&& d->model != parent.model()
d->model != parent.model()Description
TRUEnever evaluated
FALSEevaluated 516 times by 4 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTreeView
)
0-1039
924 return
never executed: return false;
false;
never executed: return false;
0
925-
926-
927 if (d->currentCommand & Deselect && d->currentSelection.count()
d->currentSelection.count()Description
TRUEevaluated 62 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemView
  • tst_QTableView
FALSEnever evaluated
) {
0-62
928 for (int i=0; i<d->currentSelection.count()
i<d->currentSelection.count()Description
TRUEevaluated 62 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 44 times by 2 tests
Evaluated by:
  • tst_QItemView
  • tst_QTableView
; ++i) {
44-62
929 if (d->currentSelection.at(i).parent() == parent
d->currentSele...nt() == parentDescription
TRUEevaluated 62 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemView
  • tst_QTableView
FALSEnever evaluated
&&
0-62
930 row >= d->currentSelection.at(i).top()
row >= d->curr...on.at(i).top()Description
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 26 times by 2 tests
Evaluated by:
  • tst_QItemView
  • tst_QTableView
&&
26-36
931 row <= d->currentSelection.at(i).bottom()
row <= d->curr...at(i).bottom()Description
TRUEevaluated 18 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QItemView
)
18
932 return
executed 18 times by 3 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QItemView
  • tst_QTableView
false;
executed 18 times by 3 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QItemView
  • tst_QTableView
18
933 }
executed 44 times by 2 tests: end of block
Executed by:
  • tst_QItemView
  • tst_QTableView
44
934 }
executed 44 times by 2 tests: end of block
Executed by:
  • tst_QItemView
  • tst_QTableView
44
935-
936-
937 if (d->currentCommand & Toggle && d->currentSelection.count()
d->currentSelection.count()Description
TRUEevaluated 94 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QItemSelectionModel
FALSEnever evaluated
) {
0-94
938 for (int i=0; i<d->currentSelection.count()
i<d->currentSelection.count()Description
TRUEevaluated 94 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QItemSelectionModel
FALSEevaluated 22 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QItemSelectionModel
; ++i)
22-94
939 if (d->currentSelection.at(i).top() <= row
d->currentSele...).top() <= rowDescription
TRUEevaluated 84 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QItemSelectionModel
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
&&
10-84
940 d->currentSelection.at(i).bottom() >= row
d->currentSele...ottom() >= rowDescription
TRUEevaluated 74 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFiledialog
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QItemSelectionModel
)
10-74
941 for (int j=0; j<d->ranges.count()
j<d->ranges.count()Description
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_QFiledialog
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemView
; ++j)
2-72
942 if (d->ranges.at(j).top() <= row
d->ranges.at(j).top() <= rowDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_QFiledialog
FALSEnever evaluated
&& d->ranges.at(j).bottom() >= row
d->ranges.at(j...ottom() >= rowDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_QFiledialog
FALSEnever evaluated
0-72
943 && d->currentSelection.at(i).intersected(d->ranges.at(j)).isValid()
d->currentSele...(j)).isValid()Description
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_QFiledialog
FALSEnever evaluated
)
0-72
944 return
executed 72 times by 1 test: return false;
Executed by:
  • tst_QFiledialog
false;
executed 72 times by 1 test: return false;
Executed by:
  • tst_QFiledialog
72
945 }
executed 22 times by 3 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QFiledialog
  • tst_QItemSelectionModel
22
946-
947 QList<QItemSelectionRange>::const_iterator it;-
948 QList<QItemSelectionRange> joined = d->ranges;-
949 if (d->currentSelection.count()
d->currentSelection.count()Description
TRUEevaluated 1218 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 247 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemView
  • tst_QTreeWidget
)
247-1218
950 joined += d->currentSelection;
executed 1218 times by 9 tests: joined += d->currentSelection;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
1218
951 int colCount = d->model->columnCount(parent);-
952 for (int column = 0; column < colCount
column < colCountDescription
TRUEevaluated 1766 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 622 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
; ++column) {
622-1766
953 for (it = joined.constBegin(); it != joined.constEnd()
it != joined.constEnd()Description
TRUEevaluated 3882 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 843 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
; ++it) {
843-3882
954 if ((*
(*it).contains...olumn, parent)Description
TRUEevaluated 933 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 2949 times by 7 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
it).contains(row, column, parent)
(*it).contains...olumn, parent)Description
TRUEevaluated 933 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 2949 times by 7 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
) {
933-2949
955 bool selectable = false;-
956 for (int i = column; !selectable
!selectableDescription
TRUEevaluated 944 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 923 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
&& i <= (*it).right()
i <= (*it).right()Description
TRUEevaluated 934 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
; ++i) {
10-944
957 Qt::ItemFlags flags = d->model->index(row, i, parent).flags();-
958 selectable = flags & Qt::ItemIsSelectable;-
959 }
executed 934 times by 10 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
934
960 if (selectable
selectableDescription
TRUEevaluated 923 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
){
10-923
961 column = qMax(column, (*it).right());-
962 break;
executed 923 times by 10 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
923
963 }-
964 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_QItemSelectionModel
10
965 }
executed 2959 times by 7 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
2959
966 if (it == joined.constEnd()
it == joined.constEnd()Description
TRUEevaluated 843 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 923 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
)
843-923
967 return
executed 843 times by 5 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
false;
executed 843 times by 5 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
843
968 }
executed 923 times by 10 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
923
969 return
executed 622 times by 9 tests: return colCount > 0;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
colCount > 0;
executed 622 times by 9 tests: return colCount > 0;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
622
970}-
971bool QItemSelectionModel::isColumnSelected(int column, const QModelIndex &parent) const-
972{-
973 const QItemSelectionModelPrivate * const d = d_func();-
974 if (!d->model
!d->modelDescription
TRUEnever evaluated
FALSEevaluated 943 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
)
0-943
975 return
never executed: return false;
false;
never executed: return false;
0
976 if (parent.isValid()
parent.isValid()Description
TRUEevaluated 56 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
FALSEevaluated 887 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
&& d->model != parent.model()
d->model != parent.model()Description
TRUEnever evaluated
FALSEevaluated 56 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
)
0-887
977 return
never executed: return false;
false;
never executed: return false;
0
978-
979-
980 if (d->currentCommand & Deselect && d->currentSelection.count()
d->currentSelection.count()Description
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • tst_QItemView
  • tst_QTableView
FALSEnever evaluated
) {
0-34
981 for (int i = 0; i < d->currentSelection.count()
i < d->current...ection.count()Description
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QItemView
  • tst_QTableView
; ++i) {
18-34
982 if (d->currentSelection.at(i).parent() == parent
d->currentSele...nt() == parentDescription
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • tst_QItemView
  • tst_QTableView
FALSEnever evaluated
&&
0-34
983 column >= d->currentSelection.at(i).left()
column >= d->c...n.at(i).left()Description
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QItemView
  • tst_QTableView
&&
6-28
984 column <= d->currentSelection.at(i).right()
column <= d->c....at(i).right()Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QItemView
)
12-16
985 return
executed 16 times by 2 tests: return false;
Executed by:
  • tst_QItemView
  • tst_QTableView
false;
executed 16 times by 2 tests: return false;
Executed by:
  • tst_QItemView
  • tst_QTableView
16
986 }
executed 18 times by 2 tests: end of block
Executed by:
  • tst_QItemView
  • tst_QTableView
18
987 }
executed 18 times by 2 tests: end of block
Executed by:
  • tst_QItemView
  • tst_QTableView
18
988-
989-
990 if (d->currentCommand & Toggle && d->currentSelection.count()
d->currentSelection.count()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QAbstractItemView
FALSEnever evaluated
) {
0-6
991 for (int i = 0; i < d->currentSelection.count()
i < d->current...ection.count()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QAbstractItemView
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QAbstractItemView
; ++i) {
6
992 if (d->currentSelection.at(i).left() <= column
d->currentSele...ft() <= columnDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QAbstractItemView
FALSEnever evaluated
&&
0-6
993 d->currentSelection.at(i).right() >= column
d->currentSele...ht() >= columnDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemView
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QAbstractItemView
) {
2-4
994 for (int j = 0; j < d->ranges.count()
j < d->ranges.count()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemView
; ++j) {
0-2
995 if (d->ranges.at(j).left() <= column
d->ranges.at(j...ft() <= columnDescription
TRUEnever evaluated
FALSEnever evaluated
&& d->ranges.at(j).right() >= column
d->ranges.at(j...ht() >= columnDescription
TRUEnever evaluated
FALSEnever evaluated
0
996 && d->currentSelection.at(i).intersected(d->ranges.at(j)).isValid()
d->currentSele...(j)).isValid()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
997 return
never executed: return false;
false;
never executed: return false;
0
998 }-
999 }
never executed: end of block
0
1000 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemView
2
1001 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemView
6
1002 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemView
6
1003-
1004 QList<QItemSelectionRange>::const_iterator it;-
1005 QList<QItemSelectionRange> joined = d->ranges;-
1006 if (d->currentSelection.count()
d->currentSelection.count()Description
TRUEevaluated 754 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 173 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemView
)
173-754
1007 joined += d->currentSelection;
executed 754 times by 10 tests: joined += d->currentSelection;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
754
1008 int rowCount = d->model->rowCount(parent);-
1009 for (int row = 0; row < rowCount
row < rowCountDescription
TRUEevaluated 1024 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 130 times by 6 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
; ++row) {
130-1024
1010 for (it = joined.constBegin(); it != joined.constEnd()
it != joined.constEnd()Description
TRUEevaluated 1870 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 797 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
; ++it) {
797-1870
1011 if ((*
(*it).contains...olumn, parent)Description
TRUEevaluated 238 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 1632 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
it).contains(row, column, parent)
(*it).contains...olumn, parent)Description
TRUEevaluated 238 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 1632 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
) {
238-1632
1012 Qt::ItemFlags flags = d->model->index(row, column, parent).flags();-
1013 if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled)) {-
1014 row = qMax(row, (*it).bottom());-
1015 break;
executed 227 times by 9 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
227
1016 }-
1017 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_QItemView
11
1018 }
executed 1643 times by 9 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
1643
1019 if (it == joined.constEnd()
it == joined.constEnd()Description
TRUEevaluated 797 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 227 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
)
227-797
1020 return
executed 797 times by 9 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
false;
executed 797 times by 9 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
797
1021 }
executed 227 times by 9 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
227
1022 return
executed 130 times by 6 tests: return rowCount > 0;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
rowCount > 0;
executed 130 times by 6 tests: return rowCount > 0;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
130
1023}-
1024-
1025-
1026-
1027-
1028-
1029bool QItemSelectionModel::rowIntersectsSelection(int row, const QModelIndex &parent) const-
1030{-
1031 const QItemSelectionModelPrivate * const d = d_func();-
1032 if (!d->model
!d->modelDescription
TRUEnever evaluated
FALSEevaluated 1266 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStyleSheetStyle
  • tst_QTableView
)
0-1266
1033 return
never executed: return false;
false;
never executed: return false;
0
1034 if (parent.isValid()
parent.isValid()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 1263 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStyleSheetStyle
  • tst_QTableView
&& d->model != parent.model()
d->model != parent.model()Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
)
0-1263
1035 return
never executed: return false;
false;
never executed: return false;
0
1036-
1037 QItemSelection sel = d->ranges;-
1038 sel.merge(d->currentSelection, d->currentCommand);-
1039 for (int i = 0; i < sel.count()
i < sel.count()Description
TRUEevaluated 1038 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 954 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStyleSheetStyle
  • tst_QTableView
; ++i) {
954-1038
1040 QItemSelectionRange range = sel.at(i);-
1041 if (range.parent() != parent
range.parent() != parentDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
FALSEevaluated 1035 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
)
3-1035
1042 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_QItemSelectionModel
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_QItemSelectionModel
3
1043 int top = range.top();-
1044 int bottom = range.bottom();-
1045 int left = range.left();-
1046 int right = range.right();-
1047 if (top <= row
top <= rowDescription
TRUEevaluated 626 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 409 times by 4 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
&& bottom >= row
bottom >= rowDescription
TRUEevaluated 351 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 275 times by 4 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
) {
275-626
1048 for (int j = left; j <= right
j <= rightDescription
TRUEevaluated 361 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 42 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QItemView
; j++) {
42-361
1049 const Qt::ItemFlags flags = d->model->index(row, j, parent).flags();-
1050 if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled))-
1051 return
executed 309 times by 5 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
true;
executed 309 times by 5 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
309
1052 }
executed 52 times by 2 tests: end of block
Executed by:
  • tst_QItemSelectionModel
  • tst_QItemView
52
1053 }
executed 42 times by 2 tests: end of block
Executed by:
  • tst_QItemSelectionModel
  • tst_QItemView
42
1054 }
executed 726 times by 4 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
726
1055-
1056 return
executed 954 times by 8 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStyleSheetStyle
  • tst_QTableView
false;
executed 954 times by 8 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStyleSheetStyle
  • tst_QTableView
954
1057}-
1058-
1059-
1060-
1061-
1062-
1063bool QItemSelectionModel::columnIntersectsSelection(int column, const QModelIndex &parent) const-
1064{-
1065 const QItemSelectionModelPrivate * const d = d_func();-
1066 if (!d->model
!d->modelDescription
TRUEnever evaluated
FALSEevaluated 659 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStyleSheetStyle
  • tst_QTableView
)
0-659
1067 return
never executed: return false;
false;
never executed: return false;
0
1068 if (parent.isValid()
parent.isValid()Description
TRUEnever evaluated
FALSEevaluated 659 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStyleSheetStyle
  • tst_QTableView
&& d->model != parent.model()
d->model != parent.model()Description
TRUEnever evaluated
FALSEnever evaluated
)
0-659
1069 return
never executed: return false;
false;
never executed: return false;
0
1070-
1071 QItemSelection sel = d->ranges;-
1072 sel.merge(d->currentSelection, d->currentCommand);-
1073 for (int i = 0; i < sel.count()
i < sel.count()Description
TRUEevaluated 405 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 426 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStyleSheetStyle
  • tst_QTableView
; ++i) {
405-426
1074 int left = sel.at(i).left();-
1075 int right = sel.at(i).right();-
1076 int top = sel.at(i).top();-
1077 int bottom = sel.at(i).bottom();-
1078 if (left <= column
left <= columnDescription
TRUEevaluated 345 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 60 times by 4 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
&& right >= column
right >= columnDescription
TRUEevaluated 240 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 105 times by 4 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
) {
60-345
1079 for (int j = top; j <= bottom
j <= bottomDescription
TRUEevaluated 252 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QItemView
; j++) {
7-252
1080 const Qt::ItemFlags flags = d->model->index(j, column, parent).flags();-
1081 if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled))-
1082 return
executed 233 times by 5 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
true;
executed 233 times by 5 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
233
1083 }
executed 19 times by 2 tests: end of block
Executed by:
  • tst_QItemSelectionModel
  • tst_QItemView
19
1084 }
executed 7 times by 2 tests: end of block
Executed by:
  • tst_QItemSelectionModel
  • tst_QItemView
7
1085 }
executed 172 times by 4 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
172
1086-
1087 return
executed 426 times by 8 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStyleSheetStyle
  • tst_QTableView
false;
executed 426 times by 8 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStyleSheetStyle
  • tst_QTableView
426
1088}-
1089-
1090-
1091-
1092-
1093-
1094-
1095-
1096bool QItemSelectionModel::hasSelection() const-
1097{-
1098 const QItemSelectionModelPrivate * const d = d_func();-
1099 if (d->currentCommand & (Toggle | Deselect)
d->currentComm...le | Deselect)Description
TRUEevaluated 61 times by 7 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeWidget
FALSEevaluated 1096 times by 16 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
) {
61-1096
1100 QItemSelection sel = d->ranges;-
1101 sel.merge(d->currentSelection, d->currentCommand);-
1102 return
executed 61 times by 7 tests: return !sel.isEmpty();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeWidget
!sel.isEmpty();
executed 61 times by 7 tests: return !sel.isEmpty();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeWidget
61
1103 } else {-
1104 return
executed 1096 times by 16 tests: return !(d->ranges.isEmpty() && d->currentSelection.isEmpty());
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
!(d->ranges.isEmpty()
d->ranges.isEmpty()Description
TRUEevaluated 921 times by 16 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
FALSEevaluated 175 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTreeWidget
&& d->currentSelection.isEmpty()
d->currentSelection.isEmpty()Description
TRUEevaluated 586 times by 16 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
FALSEevaluated 335 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
);
executed 1096 times by 16 tests: return !(d->ranges.isEmpty() && d->currentSelection.isEmpty());
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
175-1096
1105 }-
1106}-
1107-
1108-
1109-
1110-
1111-
1112QModelIndexList QItemSelectionModel::selectedIndexes() const-
1113{-
1114 const QItemSelectionModelPrivate * const d = d_func();-
1115 QItemSelection selected = d->ranges;-
1116 selected.merge(d->currentSelection, d->currentCommand);-
1117 return
executed 588 times by 15 tests: return selected.indexes();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
selected.indexes();
executed 588 times by 15 tests: return selected.indexes();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
588
1118}-
1119QModelIndexList QItemSelectionModel::selectedRows(int column) const-
1120{-
1121 QModelIndexList indexes;-
1122-
1123-
1124 QSet< QPair<QModelIndex, int> > rowsSeen;-
1125-
1126 const QItemSelection ranges = selection();-
1127 for (int i = 0; i < ranges.count()
i < ranges.count()Description
TRUEevaluated 533 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 1160 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
; ++i) {
533-1160
1128 const QItemSelectionRange &range = ranges.at(i);-
1129 QModelIndex parent = range.parent();-
1130 for (int row = range.top(); row <= range.bottom()
row <= range.bottom()Description
TRUEevaluated 578 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 533 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
; row++) {
533-578
1131 QPair<QModelIndex, int> rowDef = qMakePair(parent, row);-
1132 if (!rowsSeen.contains(rowDef)
!rowsSeen.contains(rowDef)Description
TRUEevaluated 578 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEnever evaluated
) {
0-578
1133 rowsSeen << rowDef;-
1134 if (isRowSelected(row, parent)
isRowSelected(row, parent)Description
TRUEevaluated 496 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 82 times by 2 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QItemSelectionModel
) {
82-496
1135 indexes.append(model()->index(row, column, parent));-
1136 }
executed 496 times by 6 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
496
1137 }
executed 578 times by 6 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
578
1138 }
executed 578 times by 6 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
578
1139 }
executed 533 times by 6 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
533
1140-
1141 return
executed 1160 times by 9 tests: return indexes;
Executed by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
indexes;
executed 1160 times by 9 tests: return indexes;
Executed by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
1160
1142}-
1143QModelIndexList QItemSelectionModel::selectedColumns(int row) const-
1144{-
1145 QModelIndexList indexes;-
1146-
1147-
1148 QSet< QPair<QModelIndex, int> > columnsSeen;-
1149-
1150 const QItemSelection ranges = selection();-
1151 for (int i = 0; i < ranges.count()
i < ranges.count()Description
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QTableView
FALSEevaluated 11 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QTableView
; ++i) {
11-22
1152 const QItemSelectionRange &range = ranges.at(i);-
1153 QModelIndex parent = range.parent();-
1154 for (int column = range.left(); column <= range.right()
column <= range.right()Description
TRUEevaluated 59 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QTableView
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QTableView
; column++) {
22-59
1155 QPair<QModelIndex, int> columnDef = qMakePair(parent, column);-
1156 if (!columnsSeen.contains(columnDef)
!columnsSeen.c...ins(columnDef)Description
TRUEevaluated 59 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QTableView
FALSEnever evaluated
) {
0-59
1157 columnsSeen << columnDef;-
1158 if (isColumnSelected(column, parent)
isColumnSelect...olumn, parent)Description
TRUEevaluated 29 times by 2 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QTableView
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_QTableView
) {
29-30
1159 indexes.append(model()->index(row, column, parent));-
1160 }
executed 29 times by 2 tests: end of block
Executed by:
  • tst_QItemSelectionModel
  • tst_QTableView
29
1161 }
executed 59 times by 2 tests: end of block
Executed by:
  • tst_QItemSelectionModel
  • tst_QTableView
59
1162 }
executed 59 times by 2 tests: end of block
Executed by:
  • tst_QItemSelectionModel
  • tst_QTableView
59
1163 }
executed 22 times by 2 tests: end of block
Executed by:
  • tst_QItemSelectionModel
  • tst_QTableView
22
1164-
1165 return
executed 11 times by 3 tests: return indexes;
Executed by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QTableView
indexes;
executed 11 times by 3 tests: return indexes;
Executed by:
  • tst_QAccessibility
  • tst_QItemSelectionModel
  • tst_QTableView
11
1166}-
1167-
1168-
1169-
1170-
1171const QItemSelection QItemSelectionModel::selection() const-
1172{-
1173 const QItemSelectionModelPrivate * const d = d_func();-
1174 QItemSelection selected = d->ranges;-
1175 selected.merge(d->currentSelection, d->currentCommand);-
1176 int i = 0;-
1177-
1178-
1179 while (i<selected.count()
i<selected.count()Description
TRUEevaluated 951 times by 12 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QColumnView
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 11428 times by 42 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
) {
951-11428
1180 if (selected.at(i).isValid()
selected.at(i).isValid()Description
TRUEevaluated 951 times by 12 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QColumnView
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEnever evaluated
)
0-951
1181 ++
executed 951 times by 12 tests: ++i;
Executed by:
  • tst_QAbstractItemView
  • tst_QColumnView
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
i;
executed 951 times by 12 tests: ++i;
Executed by:
  • tst_QAbstractItemView
  • tst_QColumnView
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
951
1182 else-
1183 (
never executed: (selected.removeAt(i));
selected.removeAt(i));
never executed: (selected.removeAt(i));
0
1184 }-
1185 return
executed 11428 times by 42 tests: return selected;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
selected;
executed 11428 times by 42 tests: return selected;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
11428
1186}-
1187QAbstractItemModel *QItemSelectionModel::model()-
1188{-
1189 return
executed 12749 times by 42 tests: return d_func()->model;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
d_func()->model;
executed 12749 times by 42 tests: return d_func()->model;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
12749
1190}-
1191-
1192-
1193-
1194-
1195const QAbstractItemModel *QItemSelectionModel::model() const-
1196{-
1197 return
executed 525 times by 6 tests: return d_func()->model;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
d_func()->model;
executed 525 times by 6 tests: return d_func()->model;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
525
1198}-
1199void QItemSelectionModel::setModel(QAbstractItemModel *model)-
1200{-
1201 QItemSelectionModelPrivate * const d = d_func();-
1202 if (d->model == model
d->model == modelDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QItemSelectionModel
)
0-2
1203 return;
never executed: return;
0
1204-
1205 d->initModel(model);-
1206 modelChanged(model);-
1207}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QItemSelectionModel
2
1208-
1209-
1210-
1211-
1212-
1213void QItemSelectionModel::emitSelectionChanged(const QItemSelection &newSelection,-
1214 const QItemSelection &oldSelection)-
1215{-
1216-
1217 if ((oldSelection.isEmpty()
oldSelection.isEmpty()Description
TRUEevaluated 2588 times by 29 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • ...
FALSEevaluated 4716 times by 26 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • ...
&& newSelection.isEmpty()
newSelection.isEmpty()Description
TRUEevaluated 611 times by 24 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 1977 times by 27 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
) ||
611-4716
1218 oldSelection == newSelection
oldSelection == newSelectionDescription
TRUEevaluated 1070 times by 22 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 5623 times by 27 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
)
1070-5623
1219 return;
executed 1681 times by 26 tests: return;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1681
1220-
1221-
1222 if (oldSelection.isEmpty()
oldSelection.isEmpty()Description
TRUEevaluated 1977 times by 27 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 3646 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
|| newSelection.isEmpty()
newSelection.isEmpty()Description
TRUEevaluated 1248 times by 19 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
FALSEevaluated 2398 times by 19 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
) {
1248-3646
1223 selectionChanged(newSelection, oldSelection);-
1224 return;
executed 3225 times by 27 tests: return;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
3225
1225 }-
1226-
1227 QItemSelection deselected = oldSelection;-
1228 QItemSelection selected = newSelection;-
1229-
1230-
1231 bool advance;-
1232 for (int o = 0; o < deselected.count()
o < deselected.count()Description
TRUEevaluated 2570 times by 19 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 2398 times by 19 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
; ++o) {
2398-2570
1233 advance = true;-
1234 for (int s = 0; s < selected.count()
s < selected.count()Description
TRUEevaluated 3665 times by 19 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 2360 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
&& o < deselected.count()
o < deselected.count()Description
TRUEevaluated 3455 times by 19 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 210 times by 14 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
;) {
210-3665
1235 if (deselected.at(o) == selected.at(s)
deselected.at(...selected.at(s)Description
TRUEevaluated 817 times by 14 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 2638 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
) {
817-2638
1236 deselected.removeAt(o);-
1237 selected.removeAt(s);-
1238 advance = false;-
1239 }
executed 817 times by 14 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
else {
817
1240 ++s;-
1241 }
executed 2638 times by 17 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
2638
1242 }-
1243 if (advance
advanceDescription
TRUEevaluated 2269 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 301 times by 14 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
)
301-2269
1244 ++
executed 2269 times by 17 tests: ++o;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
o;
executed 2269 times by 17 tests: ++o;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
2269
1245 }
executed 2570 times by 19 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
2570
1246-
1247-
1248 QItemSelection intersections;-
1249 for (int o = 0; o < deselected.count()
o < deselected.count()Description
TRUEevaluated 2492 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 2398 times by 19 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
; ++o) {
2398-2492
1250 for (int s = 0; s < selected.count()
s < selected.count()Description
TRUEevaluated 2737 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 2492 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
; ++s) {
2492-2737
1251 if (deselected.at(o).intersects(selected.at(s))
deselected.at(...elected.at(s))Description
TRUEevaluated 305 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeWidget
FALSEevaluated 2432 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
)
305-2432
1252 intersections.append(deselected.at(o).intersected(selected.at(s)));
executed 305 times by 10 tests: intersections.append(deselected.at(o).intersected(selected.at(s)));
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeWidget
305
1253 }
executed 2737 times by 17 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
2737
1254 }
executed 2492 times by 17 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
2492
1255-
1256-
1257 for (int i = 0; i < intersections.count()
i < intersections.count()Description
TRUEevaluated 305 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeWidget
FALSEevaluated 2398 times by 19 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
; ++i) {
305-2398
1258-
1259 for (int o = 0; o < deselected.count()
o < deselected.count()Description
TRUEevaluated 754 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeWidget
FALSEevaluated 305 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeWidget
;) {
305-754
1260 if (deselected.at(o).intersects(intersections.at(i))
deselected.at(...ections.at(i))Description
TRUEevaluated 307 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeWidget
FALSEevaluated 447 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeWidget
) {
307-447
1261 QItemSelection::split(deselected.at(o), intersections.at(i), &deselected);-
1262 deselected.removeAt(o);-
1263 }
executed 307 times by 10 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeWidget
else {
307
1264 ++o;-
1265 }
executed 447 times by 8 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeWidget
447
1266 }-
1267-
1268 for (int s = 0; s < selected.count()
s < selected.count()Description
TRUEevaluated 741 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeWidget
FALSEevaluated 305 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeWidget
;) {
305-741
1269 if (selected.at(s).intersects(intersections.at(i))
selected.at(s)...ections.at(i))Description
TRUEevaluated 316 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeWidget
FALSEevaluated 425 times by 7 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
) {
316-425
1270 QItemSelection::split(selected.at(s), intersections.at(i), &selected);-
1271 selected.removeAt(s);-
1272 }
executed 316 times by 10 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeWidget
else {
316
1273 ++s;-
1274 }
executed 425 times by 7 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
425
1275 }-
1276 }
executed 305 times by 10 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QTableView
  • tst_QTreeWidget
305
1277-
1278 if (!selected.isEmpty()
!selected.isEmpty()Description
TRUEevaluated 2285 times by 19 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 113 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeWidget
|| !deselected.isEmpty()
!deselected.isEmpty()Description
TRUEevaluated 103 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QTableView
  • tst_QTreeWidget
FALSEevaluated 10 times by 3 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QTableView
)
10-2285
1279 selectionChanged(selected, deselected);
executed 2388 times by 19 tests: selectionChanged(selected, deselected);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
2388
1280}
executed 2398 times by 19 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
2398
1281-
1282-
1283QDebug operator<<(QDebug dbg, const QItemSelectionRange &range)-
1284{-
1285 QDebugStateSaver saver(dbg);-
1286 dbg.nospace() << "QItemSelectionRange(" << range.topLeft()-
1287 << ',' << range.bottomRight() << ')';-
1288 return
never executed: return dbg;
dbg;
never executed: return dbg;
0
1289}-
1290-
1291-
1292-
1293-
Switch to Source codePreprocessed file

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