| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | bool QItemSelectionRange::intersects(const QItemSelectionRange &other) const | - |
| 8 | { | - |
| 9 | returnexecuted 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()| TRUE | evaluated 11720 times by 21 testsEvaluated 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
| | FALSE | never evaluated |
&& other.isValid()| TRUE | evaluated 11720 times by 21 testsEvaluated 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
| | FALSE | never 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()| TRUE | evaluated 10020 times by 21 testsEvaluated 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
| | FALSE | evaluated 1700 times by 11 testsEvaluated 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()| TRUE | evaluated 10019 times by 21 testsEvaluated 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
| | FALSE | evaluated 1 time by 1 test |
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()| TRUE | evaluated 7157 times by 19 testsEvaluated 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
| | FALSE | evaluated 2862 times by 17 testsEvaluated 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()| TRUE | evaluated 4030 times by 13 testsEvaluated 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
| | FALSE | evaluated 3127 times by 17 testsEvaluated 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()| TRUE | evaluated 2862 times by 17 testsEvaluated 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
| | FALSE | evaluated 3127 times by 17 testsEvaluated 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()| TRUE | evaluated 299 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
| | FALSE | evaluated 2563 times by 17 testsEvaluated 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()| TRUE | evaluated 3536 times by 13 testsEvaluated 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
| | FALSE | evaluated 793 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
|
&& right() >= other.left()| TRUE | evaluated 2733 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 803 times by 8 testsEvaluated 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()| TRUE | evaluated 793 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
| | FALSE | evaluated 803 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
|
&& left() <= other.right()| TRUE | evaluated 140 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 653 times by 7 testsEvaluated 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 | } | - |
| 17 | QItemSelectionRange QItemSelectionRange::intersected(const QItemSelectionRange &other) const | - |
| 18 | { | - |
| 19 | if (model() == other.model()| TRUE | evaluated 1264 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | never evaluated |
&& parent() == other.parent()| TRUE | evaluated 1264 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | never 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 | returnexecuted 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 | } | - |
| 30 | static void rowLengthsFromRange(const QItemSelectionRange &range, QVector<QPair<QPersistentModelIndex, uint> > &result) | - |
| 31 | { | - |
| 32 | if (range.isValid()| TRUE | evaluated 15 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | never evaluated |
&& range.model()| TRUE | evaluated 15 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | never 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| TRUE | evaluated 23 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | evaluated 15 times by 2 testsEvaluated 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 blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 23 |
| 43 | }executed 15 times by 2 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 15 |
| 44 | }executed 15 times by 2 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 15 |
| 45 | | - |
| 46 | template<typename ModelIndexContainer> | - |
| 47 | static void indexesFromRange(const QItemSelectionRange &range, ModelIndexContainer &result) | - |
| 48 | { | - |
| 49 | if (range.isValid()| TRUE | evaluated 1038 times by 18 testsEvaluated 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
| | FALSE | never evaluated |
&& range.model()| TRUE | evaluated 1038 times by 18 testsEvaluated 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
| | FALSE | never 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| TRUE | evaluated 2168 times by 18 testsEvaluated 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
| | FALSE | evaluated 1038 times by 18 testsEvaluated 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| TRUE | evaluated 5893 times by 18 testsEvaluated 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
| | FALSE | evaluated 2168 times by 18 testsEvaluated 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 blockExecuted 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 blockExecuted 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 blockExecuted 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 blockExecuted 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 | | - |
| 70 | bool QItemSelectionRange::isEmpty() const | - |
| 71 | { | - |
| 72 | if (!isValid()| TRUE | never evaluated | | FALSE | evaluated 424 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
|
|| !model()| TRUE | never evaluated | | FALSE | evaluated 424 times by 3 testsEvaluated 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()| TRUE | evaluated 424 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
| | FALSE | never evaluated |
; ++column) { | 0-424 |
| 76 | for (int row = top(); row <= bottom()| TRUE | evaluated 424 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
| | FALSE | never 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 | returnexecuted 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 | | - |
| 90 | QModelIndexList QItemSelectionRange::indexes() const | - |
| 91 | { | - |
| 92 | QModelIndexList result; | - |
| 93 | indexesFromRange(*this, result); | - |
| 94 | return never executed: return result; result;never executed: return result; | 0 |
| 95 | } | - |
| 96 | QItemSelection::QItemSelection(const QModelIndex &topLeft, const QModelIndex &bottomRight) | - |
| 97 | { | - |
| 98 | select(topLeft, bottomRight); | - |
| 99 | }executed 4844 times by 30 tests: end of blockExecuted 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 |
| 100 | void QItemSelection::select(const QModelIndex &topLeft, const QModelIndex &bottomRight) | - |
| 101 | { | - |
| 102 | if (!topLeft.isValid()| TRUE | evaluated 274 times by 17 testsEvaluated 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
| | FALSE | evaluated 5300 times by 29 testsEvaluated 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()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 5299 times by 29 testsEvaluated 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 ((| TRUE | never evaluated | | FALSE | evaluated 5299 times by 29 testsEvaluated 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())| TRUE | never evaluated | | FALSE | evaluated 5299 times by 29 testsEvaluated 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()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 5298 times by 29 testsEvaluated 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; | 1 |
| 109 | } | - |
| 110 | if (topLeft.row() > bottomRight.row()| TRUE | never evaluated | | FALSE | evaluated 5298 times by 29 testsEvaluated 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()| TRUE | never evaluated | | FALSE | evaluated 5298 times by 29 testsEvaluated 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 blockExecuted 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 | | - |
| 128 | bool QItemSelection::contains(const QModelIndex &index) const | - |
| 129 | { | - |
| 130 | if (index.flags() & Qt::ItemIsSelectable| TRUE | evaluated 8400 times by 20 testsEvaluated 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
| | FALSE | evaluated 7 times by 1 test |
) { | 7-8400 |
| 131 | QList<QItemSelectionRange>::const_iterator it = begin(); | - |
| 132 | for (; it != end()| TRUE | evaluated 10592 times by 20 testsEvaluated 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
| | FALSE | evaluated 6835 times by 18 testsEvaluated 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 ((*| TRUE | evaluated 1565 times by 20 testsEvaluated 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
| | FALSE | evaluated 9027 times by 18 testsEvaluated 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)| TRUE | evaluated 1565 times by 20 testsEvaluated 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
| | FALSE | evaluated 9027 times by 18 testsEvaluated 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 | returnexecuted 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 blockExecuted 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 | returnexecuted 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 | | - |
| 143 | QModelIndexList QItemSelection::indexes() const | - |
| 144 | { | - |
| 145 | QModelIndexList result; | - |
| 146 | QList<QItemSelectionRange>::const_iterator it = begin(); | - |
| 147 | for (; it != end()| TRUE | evaluated 954 times by 16 testsEvaluated 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
| | FALSE | evaluated 1153 times by 17 testsEvaluated 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 | returnexecuted 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 | | - |
| 152 | static QVector<QPersistentModelIndex> qSelectionPersistentindexes(const QItemSelection &sel) | - |
| 153 | { | - |
| 154 | QVector<QPersistentModelIndex> result; | - |
| 155 | QList<QItemSelectionRange>::const_iterator it = sel.constBegin(); | - |
| 156 | for (; it != sel.constEnd()| TRUE | evaluated 84 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 5650 times by 16 testsEvaluated 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 | returnexecuted 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 | | - |
| 161 | static 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 | returnexecuted 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 | } | - |
| 168 | void QItemSelection::merge(const QItemSelection &other, QItemSelectionModel::SelectionFlags command) | - |
| 169 | { | - |
| 170 | if (other.isEmpty()| TRUE | evaluated 227632 times by 42 testsEvaluated 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
- ...
| | FALSE | evaluated 13459 times by 29 testsEvaluated 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()| TRUE | evaluated 13996 times by 29 testsEvaluated 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
- ...
| | FALSE | evaluated 13459 times by 29 testsEvaluated 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()| TRUE | evaluated 227 times by 15 testsEvaluated 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
| | FALSE | evaluated 13769 times by 29 testsEvaluated 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()| TRUE | evaluated 4391 times by 15 testsEvaluated 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
| | FALSE | evaluated 13769 times by 29 testsEvaluated 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 ((*| TRUE | evaluated 887 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 3504 times by 15 testsEvaluated 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))| TRUE | evaluated 887 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 3504 times by 15 testsEvaluated 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 blockExecuted 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 blockExecuted 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()| TRUE | evaluated 887 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 13459 times by 29 testsEvaluated 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()| TRUE | evaluated 2914 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 887 times by 10 testsEvaluated 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))| TRUE | evaluated 887 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 2027 times by 9 testsEvaluated 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 blockExecuted 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 blockExecuted 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()| TRUE | evaluated 181 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| | FALSE | evaluated 170 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
|
;) { | 170-181 |
| 204 | if (newSelection.at(n).intersects(intersections.at(i))| TRUE | evaluated 170 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| | FALSE | evaluated 11 times by 2 testsEvaluated 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 blockExecuted by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
else { | 170 |
| 208 | ++n; | - |
| 209 | }executed 11 times by 2 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 11 |
| 210 | } | - |
| 211 | }executed 887 times by 10 tests: end of blockExecuted 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)| TRUE | evaluated 12648 times by 27 testsEvaluated 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
- ...
| | FALSE | evaluated 811 times by 14 testsEvaluated 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 blockExecuted 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 |
| 216 | void QItemSelection::split(const QItemSelectionRange &range, | - |
| 217 | const QItemSelectionRange &other, QItemSelection *result) | - |
| 218 | { | - |
| 219 | if (range.parent() != other.parent()| TRUE | never evaluated | | FALSE | evaluated 1684 times by 11 testsEvaluated 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()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1683 times by 11 testsEvaluated 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; | 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| TRUE | evaluated 261 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
| | FALSE | evaluated 1422 times by 11 testsEvaluated 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 blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
| 261 |
| 239 | if (other_bottom < bottom| TRUE | evaluated 260 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 1423 times by 11 testsEvaluated 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 blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 260 |
| 245 | if (other_left > left| TRUE | evaluated 178 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 1505 times by 11 testsEvaluated 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 blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 178 |
| 251 | if (other_right < right| TRUE | evaluated 195 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 1488 times by 11 testsEvaluated 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 blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 195 |
| 257 | }executed 1683 times by 11 tests: end of blockExecuted 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 | | - |
| 260 | void 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| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 4986 times by 42 testsEvaluated 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; | 1 |
| 294 | | - |
| 295 | QItemSelectionModel * const q = q_func(); | - |
| 296 | if (model| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 4985 times by 42 testsEvaluated 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| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 1 time by 1 test |
; 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); | 11 |
| 299 | q->reset(); | - |
| 300 | }executed 1 time by 1 test: end of block | 1 |
| 301 | model = m; | - |
| 302 | if (model| TRUE | evaluated 4985 times by 42 testsEvaluated 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
- ...
| | FALSE | evaluated 1 time by 1 test |
) { | 1-4985 |
| 303 | for (const Cx *cx = &connections[0]; cx->signal| TRUE | evaluated 54835 times by 42 testsEvaluated 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
- ...
| | FALSE | evaluated 4985 times by 42 testsEvaluated 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 blockExecuted 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 blockExecuted 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 |
| 307 | QItemSelection QItemSelectionModelPrivate::expandSelection(const QItemSelection &selection, | - |
| 308 | QItemSelectionModel::SelectionFlags command) const | - |
| 309 | { | - |
| 310 | if (selection.isEmpty()| TRUE | evaluated 11 times by 2 testsEvaluated by:- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 553 times by 14 testsEvaluated 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 | (| TRUE | never evaluated | | FALSE | never evaluated |
command & QItemSelectionModel::Columns)| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 312 | return never executed: return selection; selection;never executed: return selection; | 0 |
| 313 | | - |
| 314 | QItemSelection expanded; | - |
| 315 | if (command & QItemSelectionModel::Rows| TRUE | evaluated 528 times by 14 testsEvaluated 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
| | FALSE | evaluated 36 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
|
) { | 36-528 |
| 316 | for (int i = 0; i < selection.count()| TRUE | evaluated 522 times by 14 testsEvaluated 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
| | FALSE | evaluated 528 times by 14 testsEvaluated 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 blockExecuted 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 blockExecuted 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| TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
| | FALSE | evaluated 528 times by 14 testsEvaluated 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()| TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
| | FALSE | evaluated 36 times by 3 testsEvaluated 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 blockExecuted by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
| 36 |
| 334 | }executed 36 times by 3 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
| 36 |
| 335 | returnexecuted 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 | | - |
| 341 | void 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()| TRUE | evaluated 38 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 3317 times by 23 testsEvaluated 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()| TRUE | evaluated 25 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 13 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QSortFilterProxyModel
- tst_QTreeView
|
| 13-3317 |
| 349 | && currentIndex.row() >= start| TRUE | evaluated 16 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 9 times by 5 testsEvaluated by:- tst_QAccessibility
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
|
&& currentIndex.row() <= end| TRUE | evaluated 5 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QTreeView
| | FALSE | evaluated 11 times by 7 testsEvaluated 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| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 4 times by 3 testsEvaluated 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); | 1 |
| 353 | else if (model && end < model->rowCount(parent) - 1| TRUE | never evaluated | | FALSE | evaluated 4 times by 3 testsEvaluated 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()| TRUE | evaluated 4 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QTreeView
| | FALSE | evaluated 1 time by 1 test |
) | 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 blockExecuted 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()| TRUE | evaluated 60 times by 12 testsEvaluated 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
| | FALSE | evaluated 3355 times by 24 testsEvaluated 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| TRUE | evaluated 15 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
| | FALSE | evaluated 45 times by 12 testsEvaluated 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()| TRUE | evaluated 9 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
| | FALSE | evaluated 12 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
|
&& itParent.parent() != parent| TRUE | evaluated 6 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
| | FALSE | evaluated 3 times by 3 testsEvaluated 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()| TRUE | evaluated 3 times by 3 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
| | FALSE | evaluated 12 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
|
&& start <= itParent.row()| TRUE | evaluated 3 times by 3 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
| | FALSE | never evaluated |
&& itParent.row() <= end| TRUE | evaluated 3 times by 3 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
| | FALSE | never evaluated |
) { | 0-12 |
| 373 | deselected.append(*it); | - |
| 374 | it = ranges.erase(it); | - |
| 375 | }executed 3 times by 3 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
else { | 3 |
| 376 | ++it; | - |
| 377 | }executed 12 times by 5 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
| 12 |
| 378 | } else if (start <= it->bottom()| TRUE | evaluated 40 times by 12 testsEvaluated 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
| | FALSE | evaluated 5 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTreeView
|
&& it->bottom() <= end| TRUE | evaluated 22 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 18 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeWidget
|
| 5-40 |
| 379 | && start <= it->top()| TRUE | evaluated 20 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 2 times by 1 test |
&& it->top() <= end| TRUE | evaluated 20 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | never evaluated |
) { | 0-20 |
| 380 | deselected.append(*it); | - |
| 381 | it = ranges.erase(it); | - |
| 382 | }executed 20 times by 8 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
else if (start <= it->top()| TRUE | evaluated 15 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeWidget
| | FALSE | evaluated 10 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTreeView
|
&& it->top() <= end| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 12 times by 8 testsEvaluated 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 else if (start <= it->bottom()| TRUE | evaluated 17 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeWidget
| | FALSE | evaluated 5 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTreeView
|
&& it->bottom() <= end| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 15 times by 8 testsEvaluated 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 else if (it->top() < start| TRUE | evaluated 8 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTreeView
| | FALSE | evaluated 12 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeWidget
|
&& end < it->bottom()| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 5 times by 4 testsEvaluated 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 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()| TRUE | evaluated 30 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 3325 times by 24 testsEvaluated 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 blockExecuted 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 | | - |
| 412 | void QItemSelectionModelPrivate::_q_columnsAboutToBeRemoved(const QModelIndex &parent, | - |
| 413 | int start, int end) | - |
| 414 | { | - |
| 415 | QItemSelectionModel * const q = q_func(); | - |
| 416 | | - |
| 417 | | - |
| 418 | if (currentIndex.isValid()| TRUE | evaluated 8 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QListView
- tst_QTableView
| | FALSE | evaluated 272 times by 10 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
&& parent == currentIndex.parent()| TRUE | evaluated 8 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QListView
- tst_QTableView
| | FALSE | never evaluated |
| 0-272 |
| 419 | && currentIndex.column() >= start| TRUE | evaluated 7 times by 3 testsEvaluated by:- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QListView
| | FALSE | evaluated 1 time by 1 test |
&& currentIndex.column() <= end| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 5 times by 2 testsEvaluated by:- tst_QCalendarWidget
- tst_QDateTimeEdit
|
) { | 1-7 |
| 420 | QModelIndex old = currentIndex; | - |
| 421 | if (start > 0| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1 time by 1 test |
) | 1 |
| 422 | currentIndex = model->index(old.row(), start - 1, parent);executed 1 time by 1 test: currentIndex = model->index(old.row(), start - 1, parent); | 1 |
| 423 | else if (model && end < model->columnCount() - 1| TRUE | evaluated 1 time by 1 test | | FALSE | never 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); | 1 |
| 425 | else | - |
| 426 | currentIndex = QModelIndex(); never executed: currentIndex = QModelIndex(); | 0 |
| 427 | q->currentChanged(currentIndex, old); | - |
| 428 | if (currentIndex.row() != old.row()| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 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 | 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 blockExecuted 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 | | - |
| 445 | void 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()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 842 times by 12 testsEvaluated 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 ((*| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
it).isValid()| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
&& (*| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
it).parent() == parent| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
| 0-1 |
| 454 | && (*| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
it).left() < start| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
it).right() >= start| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
) { | 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 | 1 |
| 465 | } | - |
| 466 | ranges += split; | - |
| 467 | }executed 842 times by 12 tests: end of blockExecuted 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 | | - |
| 474 | void 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()| TRUE | evaluated 3043 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| | FALSE | evaluated 200855 times by 31 testsEvaluated 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 ((*| TRUE | evaluated 3043 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| | FALSE | never evaluated |
it).isValid()| TRUE | evaluated 3043 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| | FALSE | never evaluated |
&& (*| TRUE | evaluated 284 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| | FALSE | evaluated 2759 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
it).parent() == parent| TRUE | evaluated 284 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| | FALSE | evaluated 2759 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 0-3043 |
| 483 | && (*| TRUE | evaluated 276 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| | FALSE | evaluated 8 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QItemSelectionModel
|
it).top() < start| TRUE | evaluated 276 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| | FALSE | evaluated 8 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QItemSelectionModel
|
&& (*| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 273 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
it).bottom() >= start| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 273 times by 8 testsEvaluated 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 else { | 3 |
| 492 | ++it; | - |
| 493 | }executed 3040 times by 11 tests: end of blockExecuted 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 blockExecuted 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 |
| 497 | void 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()| TRUE | evaluated 2915 times by 20 testsEvaluated 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
| | FALSE | evaluated 35 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeWidget
|
&& currentSelection.count() == 1| TRUE | evaluated 14 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableWidget
| | FALSE | evaluated 2901 times by 19 testsEvaluated 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| TRUE | never evaluated | | FALSE | evaluated 14 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableWidget
|
| 0-14 |
| 512 | && range.top() == 0| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 513 | && range.left() == 0| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 514 | && range.bottom() == tableRowCount - 1| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 515 | && range.right() == tableColCount - 1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 516 | tableSelected = true; | - |
| 517 | tableParent = parent; | - |
| 518 | return; never executed: return; | 0 |
| 519 | } | - |
| 520 | }executed 14 times by 6 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableWidget
| 14 |
| 521 | tableSelected = false; | - |
| 522 | | - |
| 523 | if (hint == QAbstractItemModel::VerticalSortHint| TRUE | evaluated 125 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QTableView
- tst_QTreeView
| | FALSE | evaluated 2825 times by 16 testsEvaluated 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 blockExecuted 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 blockExecuted 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 | | - |
| 539 | static QItemSelection mergeRowLengths(const QVector<QPair<QPersistentModelIndex, uint> > &rowLengths) | - |
| 540 | { | - |
| 541 | if (rowLengths.isEmpty()| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
) | 8-12 |
| 542 | returnexecuted 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()| TRUE | evaluated 13 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
) { | 12-13 |
| 547 | const QPersistentModelIndex &tl = rowLengths.at(i).first; | - |
| 548 | if (!tl.isValid()| TRUE | never evaluated | | FALSE | evaluated 13 times by 2 testsEvaluated 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 (++| TRUE | evaluated 11 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
i < rowLengths.count()| TRUE | evaluated 11 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
) { | 11-12 |
| 555 | const QPersistentModelIndex &next = rowLengths.at(i).first; | - |
| 556 | if (!next.isValid()| TRUE | never evaluated | | FALSE | evaluated 11 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
) | 0-11 |
| 557 | continue; never executed: continue; | 0 |
| 558 | const uint nextLength = rowLengths.at(i).second; | - |
| 559 | if ((| TRUE | evaluated 11 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | never evaluated |
nextLength == length)| TRUE | evaluated 11 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | never evaluated |
| 0-11 |
| 560 | && (| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | evaluated 1 time by 1 test |
next.row() == br.row() + 1)| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | evaluated 1 time by 1 test |
| 1-10 |
| 561 | && (| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | never evaluated |
next.parent() == br.parent())| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | never evaluated |
) { | 0-10 |
| 562 | br = next; | - |
| 563 | }executed 10 times by 2 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
else { | 10 |
| 564 | break;executed 1 time by 1 test: break; | 1 |
| 565 | } | - |
| 566 | } | - |
| 567 | result.append(QItemSelectionRange(tl, br.sibling(br.row(), length - 1))); | - |
| 568 | }executed 13 times by 2 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 13 |
| 569 | returnexecuted 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 | | - |
| 578 | static QItemSelection mergeIndexes(const QVector<QPersistentModelIndex> &indexes) | - |
| 579 | { | - |
| 580 | QItemSelection colSpans; | - |
| 581 | | - |
| 582 | int i = 0; | - |
| 583 | while (i < indexes.count()| TRUE | evaluated 102 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 78 times by 8 testsEvaluated 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()| TRUE | never evaluated | | FALSE | evaluated 102 times by 8 testsEvaluated 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 (++| TRUE | evaluated 555 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 46 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
i < indexes.count()| TRUE | evaluated 555 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 46 times by 8 testsEvaluated 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()| TRUE | never evaluated | | FALSE | evaluated 555 times by 7 testsEvaluated 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 ((| TRUE | evaluated 519 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 36 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QStandardItemModel
|
nextParent == brParent)| TRUE | evaluated 519 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 36 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QStandardItemModel
|
| 36-519 |
| 601 | && (| TRUE | evaluated 499 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
|
nextRow == brRow)| TRUE | evaluated 499 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
|
| 20-499 |
| 602 | && (| TRUE | evaluated 499 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | never evaluated |
nextColumn == brColumn + 1)| TRUE | evaluated 499 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | never evaluated |
) { | 0-499 |
| 603 | br = next; | - |
| 604 | brParent = nextParent; | - |
| 605 | brRow = nextRow; | - |
| 606 | brColumn = nextColumn; | - |
| 607 | }executed 499 times by 7 tests: end of blockExecuted 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 blockExecuted 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()| TRUE | evaluated 96 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 78 times by 8 testsEvaluated 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 (++| TRUE | evaluated 56 times by 3 testsEvaluated by:- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
| | FALSE | evaluated 46 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
i < colSpans.count()| TRUE | evaluated 56 times by 3 testsEvaluated by:- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
| | FALSE | evaluated 46 times by 8 testsEvaluated 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()| TRUE | evaluated 36 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QStandardItemModel
| | FALSE | evaluated 20 times by 2 testsEvaluated 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 ((| TRUE | evaluated 20 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
| | FALSE | never evaluated |
nextTl.column() == prevTl.column())| TRUE | evaluated 20 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
| | FALSE | never evaluated |
&& (| TRUE | evaluated 20 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
| | FALSE | never evaluated |
nextBr.column() == br.column())| TRUE | evaluated 20 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
| | FALSE | never evaluated |
| 0-20 |
| 628 | && (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 14 times by 1 test |
nextTl.row() == prevTl.row() + 1)| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 14 times by 1 test |
&& (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
nextBr.row() == br.row() + 1)| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
) { | 0-14 |
| 629 | br = nextBr; | - |
| 630 | prevTl = nextTl; | - |
| 631 | }executed 6 times by 1 test: end of block else { | 6 |
| 632 | break;executed 14 times by 1 test: break; | 14 |
| 633 | } | - |
| 634 | } | - |
| 635 | rowSpans.append(QItemSelectionRange(tl, br)); | - |
| 636 | }executed 96 times by 8 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 96 |
| 637 | returnexecuted 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 | } | - |
| 639 | static bool qt_PersistentModelIndexLessThan(const QPersistentModelIndex &i1, const QPersistentModelIndex &i2) | - |
| 640 | { | - |
| 641 | const QModelIndex parent1 = i1.parent(); | - |
| 642 | const QModelIndex parent2 = i2.parent(); | - |
| 643 | returnexecuted 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| TRUE | evaluated 1868 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 283 times by 2 testsEvaluated 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 | | - |
| 651 | void QItemSelectionModelPrivate::_q_layoutChanged(const QList<QPersistentModelIndex> &, QAbstractItemModel::LayoutChangeHint hint) | - |
| 652 | { | - |
| 653 | | - |
| 654 | if (tableSelected| TRUE | never evaluated | | FALSE | evaluated 2951 times by 20 testsEvaluated 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)| TRUE | never evaluated | | FALSE | never evaluated |
| 0-2951 |
| 655 | && tableRowCount == model->rowCount(tableParent)| TRUE | never evaluated | | FALSE | never 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| TRUE | evaluated 2826 times by 17 testsEvaluated 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
| | FALSE | evaluated 125 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QTableView
- tst_QTreeView
|
&& savedPersistentCurrentIndexes.isEmpty()| TRUE | evaluated 2810 times by 16 testsEvaluated 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
| | FALSE | evaluated 16 times by 5 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableWidget
|
&& savedPersistentIndexes.isEmpty()| TRUE | evaluated 2787 times by 16 testsEvaluated 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
| | FALSE | evaluated 23 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QStandardItemModel
- tst_QTreeWidget
|
) | 16-2826 |
| 669 | || (hint == QAbstractItemModel::VerticalSortHint| TRUE | evaluated 125 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QTableView
- tst_QTreeView
| | FALSE | evaluated 39 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
&& savedPersistentRowLengths.isEmpty()| TRUE | evaluated 120 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QTableView
- tst_QTreeView
| | FALSE | evaluated 5 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
&& savedPersistentCurrentRowLengths.isEmpty()| TRUE | evaluated 115 times by 7 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QTableView
- tst_QTreeView
| | FALSE | evaluated 5 times by 2 testsEvaluated 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| TRUE | evaluated 39 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 10 times by 2 testsEvaluated 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 blockExecuted 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 blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 10 |
| 706 | } | - |
| 707 | QItemSelectionModel::QItemSelectionModel(QAbstractItemModel *model) | - |
| 708 | : QObject(*new QItemSelectionModelPrivate, model) | - |
| 709 | { | - |
| 710 | d_func()->initModel(model); | - |
| 711 | }executed 92 times by 7 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
| 92 |
| 712 | | - |
| 713 | | - |
| 714 | | - |
| 715 | | - |
| 716 | QItemSelectionModel::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 blockExecuted 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 | | - |
| 725 | QItemSelectionModel::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 | | - |
| 734 | QItemSelectionModel::~QItemSelectionModel() | - |
| 735 | { | - |
| 736 | } | - |
| 737 | | - |
| 738 | | - |
| 739 | | - |
| 740 | | - |
| 741 | | - |
| 742 | | - |
| 743 | | - |
| 744 | void 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 blockExecuted 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 |
| 749 | void QItemSelectionModel::select(const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) | - |
| 750 | { | - |
| 751 | QItemSelectionModelPrivate * const d = d_func(); | - |
| 752 | if (!d->model| TRUE | never evaluated | | FALSE | evaluated 7342 times by 29 testsEvaluated 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| TRUE | evaluated 38 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTreeWidget
| | FALSE | evaluated 7304 times by 29 testsEvaluated 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()| TRUE | evaluated 1421 times by 15 testsEvaluated 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
| | FALSE | evaluated 7304 times by 29 testsEvaluated 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()| TRUE | evaluated 24 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| | FALSE | evaluated 1397 times by 15 testsEvaluated 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| TRUE | evaluated 5291 times by 27 testsEvaluated 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
- ...
| | FALSE | evaluated 2013 times by 26 testsEvaluated 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 blockExecuted 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)| TRUE | evaluated 6527 times by 29 testsEvaluated 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
- ...
| | FALSE | evaluated 777 times by 12 testsEvaluated 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 blockExecuted 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 blockExecuted 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 | | - |
| 806 | void QItemSelectionModel::clear() | - |
| 807 | { | - |
| 808 | clearSelection(); | - |
| 809 | clearCurrentIndex(); | - |
| 810 | }executed 12224 times by 43 tests: end of blockExecuted 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 | | - |
| 815 | void QItemSelectionModel::clearCurrentIndex() | - |
| 816 | { | - |
| 817 | QItemSelectionModelPrivate * const d = d_func(); | - |
| 818 | QModelIndex previous = d->currentIndex; | - |
| 819 | d->currentIndex = QModelIndex(); | - |
| 820 | if (previous.isValid()| TRUE | evaluated 879 times by 12 testsEvaluated 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
| | FALSE | evaluated 11348 times by 43 testsEvaluated 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 blockExecuted 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 blockExecuted 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 | | - |
| 830 | void QItemSelectionModel::reset() | - |
| 831 | { | - |
| 832 | const QSignalBlocker blocker(this); | - |
| 833 | clear(); | - |
| 834 | }executed 9588 times by 43 tests: end of blockExecuted 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 | | - |
| 840 | void QItemSelectionModel::clearSelection() | - |
| 841 | { | - |
| 842 | QItemSelectionModelPrivate * const d = d_func(); | - |
| 843 | if (d->ranges.count() == 0| TRUE | evaluated 12217 times by 43 testsEvaluated 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
- ...
| | FALSE | evaluated 66 times by 9 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
&& d->currentSelection.count() == 0| TRUE | evaluated 10836 times by 43 testsEvaluated 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
- ...
| | FALSE | evaluated 1381 times by 22 testsEvaluated 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 blockExecuted 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 |
| 848 | void QItemSelectionModel::setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command) | - |
| 849 | { | - |
| 850 | QItemSelectionModelPrivate * const d = d_func(); | - |
| 851 | if (!d->model| TRUE | never evaluated | | FALSE | evaluated 4176 times by 28 testsEvaluated 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| TRUE | evaluated 250 times by 17 testsEvaluated 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
| | FALSE | evaluated 3926 times by 28 testsEvaluated 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| TRUE | evaluated 145 times by 15 testsEvaluated 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
| | FALSE | evaluated 105 times by 8 testsEvaluated 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| TRUE | evaluated 2955 times by 25 testsEvaluated 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
| | FALSE | evaluated 971 times by 21 testsEvaluated 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()| TRUE | evaluated 3298 times by 26 testsEvaluated 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
- ...
| | FALSE | evaluated 628 times by 14 testsEvaluated 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()| TRUE | evaluated 51 times by 6 testsEvaluated by:- tst_QColumnView
- tst_QComboBox
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 577 times by 11 testsEvaluated 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()| TRUE | evaluated 2032 times by 26 testsEvaluated 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
- ...
| | FALSE | evaluated 1894 times by 21 testsEvaluated 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()| TRUE | evaluated 83 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QItemSelectionModel
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 1811 times by 21 testsEvaluated 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 blockExecuted 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 | | - |
| 877 | QModelIndex QItemSelectionModel::currentIndex() const | - |
| 878 | { | - |
| 879 | returnexecuted 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 | | - |
| 885 | bool QItemSelectionModel::isSelected(const QModelIndex &index) const | - |
| 886 | { | - |
| 887 | const QItemSelectionModelPrivate * const d = d_func(); | - |
| 888 | if (d->model != index.model()| TRUE | evaluated 20 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QListView
- tst_QTreeView
| | FALSE | evaluated 27808 times by 25 testsEvaluated 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()| TRUE | never evaluated | | FALSE | evaluated 27808 times by 25 testsEvaluated 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 | returnexecuted 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()| TRUE | evaluated 5722 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
| | FALSE | evaluated 27206 times by 25 testsEvaluated 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 ((*| TRUE | evaluated 5722 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
| | FALSE | never evaluated |
it).isValid()| TRUE | evaluated 5722 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
| | FALSE | never evaluated |
&& (*| TRUE | evaluated 602 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
| | FALSE | evaluated 5120 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListWidget
- tst_QTableView
|
it).contains(index)| TRUE | evaluated 602 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
| | FALSE | evaluated 5120 times by 8 testsEvaluated 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 blockExecuted 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()| TRUE | evaluated 8631 times by 20 testsEvaluated 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
| | FALSE | evaluated 19177 times by 21 testsEvaluated 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| TRUE | evaluated 213 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 112 times by 3 testsEvaluated 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| TRUE | evaluated 120 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| | FALSE | evaluated 8298 times by 20 testsEvaluated 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| TRUE | evaluated 8008 times by 20 testsEvaluated 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
| | FALSE | evaluated 178 times by 6 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 1804 times by 20 testsEvaluated 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
| | FALSE | evaluated 26004 times by 23 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | } | - |
| 918 | bool QItemSelectionModel::isRowSelected(int row, const QModelIndex &parent) const | - |
| 919 | { | - |
| 920 | const QItemSelectionModelPrivate * const d = d_func(); | - |
| 921 | if (!d->model| TRUE | never evaluated | | FALSE | evaluated 1555 times by 10 testsEvaluated 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()| TRUE | evaluated 516 times by 4 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTreeView
| | FALSE | evaluated 1039 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
&& d->model != parent.model()| TRUE | never evaluated | | FALSE | evaluated 516 times by 4 testsEvaluated 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()| TRUE | evaluated 62 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| | FALSE | never evaluated |
) { | 0-62 |
| 928 | for (int i=0; i<d->currentSelection.count()| TRUE | evaluated 62 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 44 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
|
; ++i) { | 44-62 |
| 929 | if (d->currentSelection.at(i).parent() == parent| TRUE | evaluated 62 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| | FALSE | never evaluated |
&& | 0-62 |
| 930 | row >= d->currentSelection.at(i).top()| TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
|
&& | 26-36 |
| 931 | row <= d->currentSelection.at(i).bottom()| TRUE | evaluated 18 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 18 times by 1 test |
) | 18 |
| 932 | returnexecuted 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 blockExecuted by:- tst_QItemView
- tst_QTableView
| 44 |
| 934 | }executed 44 times by 2 tests: end of blockExecuted by:- tst_QItemView
- tst_QTableView
| 44 |
| 935 | | - |
| 936 | | - |
| 937 | if (d->currentCommand & Toggle && d->currentSelection.count()| TRUE | evaluated 94 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| | FALSE | never evaluated |
) { | 0-94 |
| 938 | for (int i=0; i<d->currentSelection.count()| TRUE | evaluated 94 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| | FALSE | evaluated 22 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
|
; ++i) | 22-94 |
| 939 | if (d->currentSelection.at(i).top() <= row| TRUE | evaluated 84 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| | FALSE | evaluated 10 times by 1 test |
&& | 10-84 |
| 940 | d->currentSelection.at(i).bottom() >= row| TRUE | evaluated 74 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
| | FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QItemSelectionModel
|
) | 10-74 |
| 941 | for (int j=0; j<d->ranges.count()| TRUE | evaluated 72 times by 1 test | | FALSE | evaluated 2 times by 1 test |
; ++j) | 2-72 |
| 942 | if (d->ranges.at(j).top() <= row| TRUE | evaluated 72 times by 1 test | | FALSE | never evaluated |
&& d->ranges.at(j).bottom() >= row| TRUE | evaluated 72 times by 1 test | | FALSE | never evaluated |
| 0-72 |
| 943 | && d->currentSelection.at(i).intersected(d->ranges.at(j)).isValid()| TRUE | evaluated 72 times by 1 test | | FALSE | never evaluated |
) | 0-72 |
| 944 | returnexecuted 72 times by 1 test: return false; false;executed 72 times by 1 test: return false; | 72 |
| 945 | }executed 22 times by 3 tests: end of blockExecuted 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()| TRUE | evaluated 1218 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
| | FALSE | evaluated 247 times by 5 testsEvaluated 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| TRUE | evaluated 1766 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 622 times by 9 testsEvaluated 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()| TRUE | evaluated 3882 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 843 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
; ++it) { | 843-3882 |
| 954 | if ((*| TRUE | evaluated 933 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 2949 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
|
it).contains(row, column, parent)| TRUE | evaluated 933 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 2949 times by 7 testsEvaluated 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| TRUE | evaluated 944 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 923 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
&& i <= (*it).right()| TRUE | evaluated 934 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 10 times by 1 test |
; ++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 blockExecuted 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| TRUE | evaluated 923 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 10 times by 1 test |
){ | 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 | 10 |
| 965 | }executed 2959 times by 7 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
| 2959 |
| 966 | if (it == joined.constEnd()| TRUE | evaluated 843 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 923 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
) | 843-923 |
| 967 | returnexecuted 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 blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 923 |
| 969 | returnexecuted 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 | } | - |
| 971 | bool QItemSelectionModel::isColumnSelected(int column, const QModelIndex &parent) const | - |
| 972 | { | - |
| 973 | const QItemSelectionModelPrivate * const d = d_func(); | - |
| 974 | if (!d->model| TRUE | never evaluated | | FALSE | evaluated 943 times by 10 testsEvaluated 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()| TRUE | evaluated 56 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
| | FALSE | evaluated 887 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
&& d->model != parent.model()| TRUE | never evaluated | | FALSE | evaluated 56 times by 3 testsEvaluated 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()| TRUE | evaluated 34 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| | FALSE | never evaluated |
) { | 0-34 |
| 981 | for (int i = 0; i < d->currentSelection.count()| TRUE | evaluated 34 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 18 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
|
; ++i) { | 18-34 |
| 982 | if (d->currentSelection.at(i).parent() == parent| TRUE | evaluated 34 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| | FALSE | never evaluated |
&& | 0-34 |
| 983 | column >= d->currentSelection.at(i).left()| TRUE | evaluated 28 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
|
&& | 6-28 |
| 984 | column <= d->currentSelection.at(i).right()| TRUE | evaluated 16 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 12 times by 1 test |
) | 12-16 |
| 985 | returnexecuted 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 blockExecuted by:- tst_QItemView
- tst_QTableView
| 18 |
| 987 | }executed 18 times by 2 tests: end of blockExecuted by:- tst_QItemView
- tst_QTableView
| 18 |
| 988 | | - |
| 989 | | - |
| 990 | if (d->currentCommand & Toggle && d->currentSelection.count()| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
) { | 0-6 |
| 991 | for (int i = 0; i < d->currentSelection.count()| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 6 times by 1 test |
; ++i) { | 6 |
| 992 | if (d->currentSelection.at(i).left() <= column| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
&& | 0-6 |
| 993 | d->currentSelection.at(i).right() >= column| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 4 times by 1 test |
) { | 2-4 |
| 994 | for (int j = 0; j < d->ranges.count()| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
; ++j) { | 0-2 |
| 995 | if (d->ranges.at(j).left() <= column| TRUE | never evaluated | | FALSE | never evaluated |
&& d->ranges.at(j).right() >= column| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 996 | && d->currentSelection.at(i).intersected(d->ranges.at(j)).isValid()| TRUE | never evaluated | | FALSE | never 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 | 2 |
| 1001 | }executed 6 times by 1 test: end of block | 6 |
| 1002 | }executed 6 times by 1 test: end of block | 6 |
| 1003 | | - |
| 1004 | QList<QItemSelectionRange>::const_iterator it; | - |
| 1005 | QList<QItemSelectionRange> joined = d->ranges; | - |
| 1006 | if (d->currentSelection.count()| TRUE | evaluated 754 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 173 times by 4 testsEvaluated 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| TRUE | evaluated 1024 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 130 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
|
; ++row) { | 130-1024 |
| 1010 | for (it = joined.constBegin(); it != joined.constEnd()| TRUE | evaluated 1870 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 797 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
; ++it) { | 797-1870 |
| 1011 | if ((*| TRUE | evaluated 238 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 1632 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
it).contains(row, column, parent)| TRUE | evaluated 238 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 1632 times by 9 testsEvaluated 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 | 11 |
| 1018 | }executed 1643 times by 9 tests: end of blockExecuted 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()| TRUE | evaluated 797 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 227 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
) | 227-797 |
| 1020 | returnexecuted 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 blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 227 |
| 1022 | returnexecuted 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 | | - |
| 1029 | bool QItemSelectionModel::rowIntersectsSelection(int row, const QModelIndex &parent) const | - |
| 1030 | { | - |
| 1031 | const QItemSelectionModelPrivate * const d = d_func(); | - |
| 1032 | if (!d->model| TRUE | never evaluated | | FALSE | evaluated 1266 times by 8 testsEvaluated 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()| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 1263 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
&& d->model != parent.model()| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
) | 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()| TRUE | evaluated 1038 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 954 times by 8 testsEvaluated 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| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 1035 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
) | 3-1035 |
| 1042 | returnexecuted 3 times by 1 test: return false; false;executed 3 times by 1 test: return false; | 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| TRUE | evaluated 626 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 409 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
&& bottom >= row| TRUE | evaluated 351 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 275 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
) { | 275-626 |
| 1048 | for (int j = left; j <= right| TRUE | evaluated 361 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 42 times by 2 testsEvaluated 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 | returnexecuted 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 blockExecuted by:- tst_QItemSelectionModel
- tst_QItemView
| 52 |
| 1053 | }executed 42 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QItemView
| 42 |
| 1054 | }executed 726 times by 4 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 726 |
| 1055 | | - |
| 1056 | returnexecuted 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 | | - |
| 1063 | bool QItemSelectionModel::columnIntersectsSelection(int column, const QModelIndex &parent) const | - |
| 1064 | { | - |
| 1065 | const QItemSelectionModelPrivate * const d = d_func(); | - |
| 1066 | if (!d->model| TRUE | never evaluated | | FALSE | evaluated 659 times by 8 testsEvaluated 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()| TRUE | never evaluated | | FALSE | evaluated 659 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
&& d->model != parent.model()| TRUE | never evaluated | | FALSE | never 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()| TRUE | evaluated 405 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 426 times by 8 testsEvaluated 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| TRUE | evaluated 345 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 60 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
&& right >= column| TRUE | evaluated 240 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 105 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
) { | 60-345 |
| 1079 | for (int j = top; j <= bottom| TRUE | evaluated 252 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 7 times by 2 testsEvaluated 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 | returnexecuted 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 blockExecuted by:- tst_QItemSelectionModel
- tst_QItemView
| 19 |
| 1084 | }executed 7 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QItemView
| 7 |
| 1085 | }executed 172 times by 4 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 172 |
| 1086 | | - |
| 1087 | returnexecuted 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 | | - |
| 1096 | bool QItemSelectionModel::hasSelection() const | - |
| 1097 | { | - |
| 1098 | const QItemSelectionModelPrivate * const d = d_func(); | - |
| 1099 | if (d->currentCommand & (Toggle | Deselect)| TRUE | evaluated 61 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
| | FALSE | evaluated 1096 times by 16 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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()| TRUE | evaluated 921 times by 16 testsEvaluated 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
| | FALSE | evaluated 175 times by 5 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTreeWidget
|
&& d->currentSelection.isEmpty()| TRUE | evaluated 586 times by 16 testsEvaluated 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
| | FALSE | evaluated 335 times by 8 testsEvaluated 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 | | - |
| 1112 | QModelIndexList QItemSelectionModel::selectedIndexes() const | - |
| 1113 | { | - |
| 1114 | const QItemSelectionModelPrivate * const d = d_func(); | - |
| 1115 | QItemSelection selected = d->ranges; | - |
| 1116 | selected.merge(d->currentSelection, d->currentCommand); | - |
| 1117 | returnexecuted 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 | } | - |
| 1119 | QModelIndexList 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()| TRUE | evaluated 533 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 1160 times by 9 testsEvaluated 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()| TRUE | evaluated 578 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 533 times by 6 testsEvaluated 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)| TRUE | evaluated 578 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | never evaluated |
) { | 0-578 |
| 1133 | rowsSeen << rowDef; | - |
| 1134 | if (isRowSelected(row, parent)| TRUE | evaluated 496 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 82 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QItemSelectionModel
|
) { | 82-496 |
| 1135 | indexes.append(model()->index(row, column, parent)); | - |
| 1136 | }executed 496 times by 6 tests: end of blockExecuted by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 496 |
| 1137 | }executed 578 times by 6 tests: end of blockExecuted by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 578 |
| 1138 | }executed 578 times by 6 tests: end of blockExecuted by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 578 |
| 1139 | }executed 533 times by 6 tests: end of blockExecuted by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 533 |
| 1140 | | - |
| 1141 | returnexecuted 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 | } | - |
| 1143 | QModelIndexList 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()| TRUE | evaluated 22 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QTableView
| | FALSE | evaluated 11 times by 3 testsEvaluated 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()| TRUE | evaluated 59 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QTableView
| | FALSE | evaluated 22 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QTableView
|
; column++) { | 22-59 |
| 1155 | QPair<QModelIndex, int> columnDef = qMakePair(parent, column); | - |
| 1156 | if (!columnsSeen.contains(columnDef)| TRUE | evaluated 59 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QTableView
| | FALSE | never evaluated |
) { | 0-59 |
| 1157 | columnsSeen << columnDef; | - |
| 1158 | if (isColumnSelected(column, parent)| TRUE | evaluated 29 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QTableView
| | FALSE | evaluated 30 times by 1 test |
) { | 29-30 |
| 1159 | indexes.append(model()->index(row, column, parent)); | - |
| 1160 | }executed 29 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QTableView
| 29 |
| 1161 | }executed 59 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QTableView
| 59 |
| 1162 | }executed 59 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QTableView
| 59 |
| 1163 | }executed 22 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QTableView
| 22 |
| 1164 | | - |
| 1165 | returnexecuted 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 | | - |
| 1171 | const 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()| TRUE | evaluated 951 times by 12 testsEvaluated 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
| | FALSE | evaluated 11428 times by 42 testsEvaluated 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()| TRUE | evaluated 951 times by 12 testsEvaluated 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
| | FALSE | never 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 | returnexecuted 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 | } | - |
| 1187 | QAbstractItemModel *QItemSelectionModel::model() | - |
| 1188 | { | - |
| 1189 | returnexecuted 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 | | - |
| 1195 | const QAbstractItemModel *QItemSelectionModel::model() const | - |
| 1196 | { | - |
| 1197 | returnexecuted 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 | } | - |
| 1199 | void QItemSelectionModel::setModel(QAbstractItemModel *model) | - |
| 1200 | { | - |
| 1201 | QItemSelectionModelPrivate * const d = d_func(); | - |
| 1202 | if (d->model == model| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 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 | 2 |
| 1208 | | - |
| 1209 | | - |
| 1210 | | - |
| 1211 | | - |
| 1212 | | - |
| 1213 | void QItemSelectionModel::emitSelectionChanged(const QItemSelection &newSelection, | - |
| 1214 | const QItemSelection &oldSelection) | - |
| 1215 | { | - |
| 1216 | | - |
| 1217 | if ((oldSelection.isEmpty()| TRUE | evaluated 2588 times by 29 testsEvaluated 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
- ...
| | FALSE | evaluated 4716 times by 26 testsEvaluated 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()| TRUE | evaluated 611 times by 24 testsEvaluated 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
| | FALSE | evaluated 1977 times by 27 testsEvaluated 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| TRUE | evaluated 1070 times by 22 testsEvaluated 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
| | FALSE | evaluated 5623 times by 27 testsEvaluated 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()| TRUE | evaluated 1977 times by 27 testsEvaluated 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
- ...
| | FALSE | evaluated 3646 times by 25 testsEvaluated 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()| TRUE | evaluated 1248 times by 19 testsEvaluated 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
| | FALSE | evaluated 2398 times by 19 testsEvaluated 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()| TRUE | evaluated 2570 times by 19 testsEvaluated 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
| | FALSE | evaluated 2398 times by 19 testsEvaluated 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()| TRUE | evaluated 3665 times by 19 testsEvaluated 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
| | FALSE | evaluated 2360 times by 17 testsEvaluated 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()| TRUE | evaluated 3455 times by 19 testsEvaluated 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
| | FALSE | evaluated 210 times by 14 testsEvaluated 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)| TRUE | evaluated 817 times by 14 testsEvaluated 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
| | FALSE | evaluated 2638 times by 17 testsEvaluated 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 blockExecuted 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 blockExecuted 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| TRUE | evaluated 2269 times by 17 testsEvaluated 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
| | FALSE | evaluated 301 times by 14 testsEvaluated 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 blockExecuted 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()| TRUE | evaluated 2492 times by 17 testsEvaluated 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
| | FALSE | evaluated 2398 times by 19 testsEvaluated 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()| TRUE | evaluated 2737 times by 17 testsEvaluated 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
| | FALSE | evaluated 2492 times by 17 testsEvaluated 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))| TRUE | evaluated 305 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| | FALSE | evaluated 2432 times by 17 testsEvaluated 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 blockExecuted 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 blockExecuted 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()| TRUE | evaluated 305 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| | FALSE | evaluated 2398 times by 19 testsEvaluated 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()| TRUE | evaluated 754 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| | FALSE | evaluated 305 times by 10 testsEvaluated 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))| TRUE | evaluated 307 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| | FALSE | evaluated 447 times by 8 testsEvaluated 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 blockExecuted 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 blockExecuted 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()| TRUE | evaluated 741 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| | FALSE | evaluated 305 times by 10 testsEvaluated 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))| TRUE | evaluated 316 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| | FALSE | evaluated 425 times by 7 testsEvaluated 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 blockExecuted 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 blockExecuted 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 blockExecuted 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()| TRUE | evaluated 2285 times by 19 testsEvaluated 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
| | FALSE | evaluated 113 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
|
|| !deselected.isEmpty()| TRUE | evaluated 103 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
| | FALSE | evaluated 10 times by 3 testsEvaluated 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 blockExecuted 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 | | - |
| 1283 | QDebug 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 | | - |
| | |