| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | | - |
| 39 | | - |
| 40 | #include "qitemselectionmodel.h" | - |
| 41 | #include <private/qitemselectionmodel_p.h> | - |
| 42 | #include <qdebug.h> | - |
| 43 | | - |
| 44 | #include <algorithm> | - |
| 45 | | - |
| 46 | #ifndef QT_NO_ITEMVIEWS | - |
| 47 | | - |
| 48 | QT_BEGIN_NAMESPACE | - |
| 49 | | - |
| 50 | | - |
| 51 | | - |
| 52 | | - |
| 53 | | - |
| 54 | | - |
| 55 | | - |
| 56 | | - |
| 57 | | - |
| 58 | | - |
| 59 | | - |
| 60 | | - |
| 61 | | - |
| 62 | | - |
| 63 | | - |
| 64 | | - |
| 65 | | - |
| 66 | | - |
| 67 | | - |
| 68 | | - |
| 69 | | - |
| 70 | | - |
| 71 | | - |
| 72 | | - |
| 73 | | - |
| 74 | | - |
| 75 | | - |
| 76 | | - |
| 77 | | - |
| 78 | | - |
| 79 | | - |
| 80 | | - |
| 81 | | - |
| 82 | | - |
| 83 | | - |
| 84 | | - |
| 85 | | - |
| 86 | | - |
| 87 | | - |
| 88 | | - |
| 89 | | - |
| 90 | | - |
| 91 | | - |
| 92 | | - |
| 93 | | - |
| 94 | | - |
| 95 | | - |
| 96 | | - |
| 97 | | - |
| 98 | | - |
| 99 | | - |
| 100 | | - |
| 101 | | - |
| 102 | | - |
| 103 | | - |
| 104 | | - |
| 105 | | - |
| 106 | | - |
| 107 | | - |
| 108 | | - |
| 109 | | - |
| 110 | | - |
| 111 | | - |
| 112 | | - |
| 113 | | - |
| 114 | | - |
| 115 | | - |
| 116 | | - |
| 117 | | - |
| 118 | | - |
| 119 | | - |
| 120 | | - |
| 121 | | - |
| 122 | | - |
| 123 | | - |
| 124 | | - |
| 125 | | - |
| 126 | | - |
| 127 | | - |
| 128 | | - |
| 129 | | - |
| 130 | | - |
| 131 | | - |
| 132 | | - |
| 133 | | - |
| 134 | | - |
| 135 | | - |
| 136 | | - |
| 137 | | - |
| 138 | | - |
| 139 | | - |
| 140 | | - |
| 141 | | - |
| 142 | | - |
| 143 | | - |
| 144 | | - |
| 145 | | - |
| 146 | | - |
| 147 | | - |
| 148 | | - |
| 149 | | - |
| 150 | | - |
| 151 | | - |
| 152 | | - |
| 153 | | - |
| 154 | | - |
| 155 | | - |
| 156 | | - |
| 157 | | - |
| 158 | | - |
| 159 | | - |
| 160 | | - |
| 161 | | - |
| 162 | | - |
| 163 | | - |
| 164 | | - |
| 165 | | - |
| 166 | | - |
| 167 | | - |
| 168 | | - |
| 169 | | - |
| 170 | | - |
| 171 | | - |
| 172 | | - |
| 173 | | - |
| 174 | | - |
| 175 | | - |
| 176 | | - |
| 177 | | - |
| 178 | | - |
| 179 | | - |
| 180 | | - |
| 181 | | - |
| 182 | | - |
| 183 | | - |
| 184 | | - |
| 185 | | - |
| 186 | | - |
| 187 | | - |
| 188 | | - |
| 189 | | - |
| 190 | | - |
| 191 | | - |
| 192 | | - |
| 193 | | - |
| 194 | | - |
| 195 | | - |
| 196 | | - |
| 197 | | - |
| 198 | | - |
| 199 | | - |
| 200 | | - |
| 201 | | - |
| 202 | | - |
| 203 | | - |
| 204 | | - |
| 205 | | - |
| 206 | | - |
| 207 | | - |
| 208 | | - |
| 209 | | - |
| 210 | | - |
| 211 | | - |
| 212 | | - |
| 213 | | - |
| 214 | | - |
| 215 | | - |
| 216 | | - |
| 217 | | - |
| 218 | | - |
| 219 | | - |
| 220 | bool QItemSelectionRange::intersects(const QItemSelectionRange &other) const | - |
| 221 | { | - |
| 222 | return (isValid() && other.isValid()executed 9777 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
| 9777 |
| 223 | && parent() == other.parent()executed 9777 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
| 9777 |
| 224 | && model() == other.model()executed 9777 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
| 9777 |
| 225 | && ((top() <= other.top() && bottom() >= other.top())executed 9777 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
| 9777 |
| 226 | || (top() >= other.top() && top() <= other.bottom()))executed 9777 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
| 9777 |
| 227 | && ((left() <= other.left() && right() >= other.left())executed 9777 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
| 9777 |
| 228 | || (left() >= other.left() && left() <= other.right())));executed 9777 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
| 9777 |
| 229 | } | - |
| 230 | | - |
| 231 | | - |
| 232 | | - |
| 233 | | - |
| 234 | | - |
| 235 | | - |
| 236 | | - |
| 237 | | - |
| 238 | | - |
| 239 | | - |
| 240 | | - |
| 241 | | - |
| 242 | | - |
| 243 | | - |
| 244 | | - |
| 245 | | - |
| 246 | QItemSelectionRange QItemSelectionRange::intersected(const QItemSelectionRange &other) const | - |
| 247 | { | - |
| 248 | if (model() == other.model() && parent() == other.parent()) {| TRUE | evaluated 891 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 |
| TRUE | evaluated 891 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-891 |
| 249 | QModelIndex topLeft = model()->index(qMax(top(), other.top()), | - |
| 250 | qMax(left(), other.left()), | - |
| 251 | other.parent()); | - |
| 252 | QModelIndex bottomRight = model()->index(qMin(bottom(), other.bottom()), | - |
| 253 | qMin(right(), other.right()), | - |
| 254 | other.parent()); | - |
| 255 | return QItemSelectionRange(topLeft, bottomRight);executed 891 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
| 891 |
| 256 | } | - |
| 257 | return QItemSelectionRange(); never executed: return QItemSelectionRange(); | 0 |
| 258 | } | - |
| 259 | | - |
| 260 | | - |
| 261 | | - |
| 262 | | - |
| 263 | | - |
| 264 | | - |
| 265 | | - |
| 266 | | - |
| 267 | | - |
| 268 | | - |
| 269 | | - |
| 270 | | - |
| 271 | | - |
| 272 | | - |
| 273 | | - |
| 274 | | - |
| 275 | | - |
| 276 | | - |
| 277 | | - |
| 278 | | - |
| 279 | | - |
| 280 | | - |
| 281 | | - |
| 282 | | - |
| 283 | | - |
| 284 | | - |
| 285 | | - |
| 286 | | - |
| 287 | | - |
| 288 | | - |
| 289 | | - |
| 290 | | - |
| 291 | | - |
| 292 | | - |
| 293 | | - |
| 294 | | - |
| 295 | static void rowLengthsFromRange(const QItemSelectionRange &range, QVector<QPair<QPersistentModelIndex, uint> > &result) | - |
| 296 | { | - |
| 297 | if (range.isValid() && range.model()) {| TRUE | evaluated 15 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | never evaluated |
| TRUE | evaluated 15 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | never evaluated |
| 0-15 |
| 298 | const QModelIndex topLeft = range.topLeft(); | - |
| 299 | const int bottom = range.bottom(); | - |
| 300 | const uint width = range.width(); | - |
| 301 | const int column = topLeft.column(); | - |
| 302 | for (int row = topLeft.row(); row <= bottom; ++row) {| TRUE | evaluated 23 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | evaluated 15 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
| 15-23 |
| 303 | | - |
| 304 | | - |
| 305 | | - |
| 306 | result.push_back(qMakePair(QPersistentModelIndex(topLeft.sibling(row, column)), width)); | - |
| 307 | }executed 23 times by 2 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 23 |
| 308 | }executed 15 times by 2 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 15 |
| 309 | }executed 15 times by 2 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 15 |
| 310 | | - |
| 311 | template<typename ModelIndexContainer> | - |
| 312 | static void indexesFromRange(const QItemSelectionRange &range, ModelIndexContainer &result) | - |
| 313 | { | - |
| 314 | if (range.isValid() && range.model()) {| TRUE | evaluated 1046 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 |
| TRUE | evaluated 1046 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-1046 |
| 315 | const QModelIndex topLeft = range.topLeft(); | - |
| 316 | const int bottom = range.bottom(); | - |
| 317 | const int right = range.right(); | - |
| 318 | for (int row = topLeft.row(); row <= bottom; ++row) {| TRUE | evaluated 2176 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 1046 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
|
| 1046-2176 |
| 319 | const QModelIndex columnLeader = topLeft.sibling(row, topLeft.column()); | - |
| 320 | for (int column = topLeft.column(); column <= right; ++column) {| TRUE | evaluated 5925 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 2176 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
|
| 2176-5925 |
| 321 | QModelIndex index = columnLeader.sibling(row, column); | - |
| 322 | Qt::ItemFlags flags = range.model()->flags(index); | - |
| 323 | if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled)) | - |
| 324 | result.push_back(index);executed 5912 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
| 5912 |
| 325 | }executed 5925 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
| 5925 |
| 326 | }executed 2176 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
| 2176 |
| 327 | }executed 1046 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
| 1046 |
| 328 | }executed 1046 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
| 1046 |
| 329 | | - |
| 330 | template<typename ModelIndexContainer> | - |
| 331 | static ModelIndexContainer qSelectionIndexes(const QItemSelection &selection) | - |
| 332 | { | - |
| 333 | ModelIndexContainer result; | - |
| 334 | for (const auto &range : selection) | - |
| 335 | indexesFromRange(range, result);executed 1046 times by 18 tests: indexesFromRange(range, result);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
| 1046 |
| 336 | return result;executed 6813 times by 24 tests: return result;Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| 6813 |
| 337 | } | - |
| 338 | | - |
| 339 | | - |
| 340 | | - |
| 341 | | - |
| 342 | | - |
| 343 | | - |
| 344 | bool QItemSelectionRange::isEmpty() const | - |
| 345 | { | - |
| 346 | if (!isValid() || !model())| TRUE | never evaluated | | FALSE | evaluated 431 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
|
| TRUE | never evaluated | | FALSE | evaluated 431 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
|
| 0-431 |
| 347 | return true; never executed: return true; | 0 |
| 348 | | - |
| 349 | for (int column = left(); column <= right(); ++column) {| TRUE | evaluated 431 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
| | FALSE | never evaluated |
| 0-431 |
| 350 | for (int row = top(); row <= bottom(); ++row) {| TRUE | evaluated 431 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
| | FALSE | never evaluated |
| 0-431 |
| 351 | QModelIndex index = model()->index(row, column, parent()); | - |
| 352 | Qt::ItemFlags flags = model()->flags(index); | - |
| 353 | if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled)) | - |
| 354 | return false;executed 431 times by 3 tests: return false;Executed by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
| 431 |
| 355 | } never executed: end of block | 0 |
| 356 | } never executed: end of block | 0 |
| 357 | return true; never executed: return true; | 0 |
| 358 | } | - |
| 359 | | - |
| 360 | | - |
| 361 | | - |
| 362 | | - |
| 363 | | - |
| 364 | QModelIndexList QItemSelectionRange::indexes() const | - |
| 365 | { | - |
| 366 | QModelIndexList result; | - |
| 367 | indexesFromRange(*this, result); | - |
| 368 | return result; never executed: return result; | 0 |
| 369 | } | - |
| 370 | | - |
| 371 | | - |
| 372 | | - |
| 373 | | - |
| 374 | | - |
| 375 | | - |
| 376 | | - |
| 377 | | - |
| 378 | | - |
| 379 | | - |
| 380 | | - |
| 381 | | - |
| 382 | | - |
| 383 | | - |
| 384 | | - |
| 385 | | - |
| 386 | | - |
| 387 | | - |
| 388 | | - |
| 389 | | - |
| 390 | | - |
| 391 | | - |
| 392 | | - |
| 393 | | - |
| 394 | | - |
| 395 | | - |
| 396 | | - |
| 397 | | - |
| 398 | | - |
| 399 | | - |
| 400 | | - |
| 401 | | - |
| 402 | | - |
| 403 | | - |
| 404 | | - |
| 405 | | - |
| 406 | | - |
| 407 | | - |
| 408 | | - |
| 409 | | - |
| 410 | | - |
| 411 | | - |
| 412 | | - |
| 413 | | - |
| 414 | | - |
| 415 | | - |
| 416 | | - |
| 417 | | - |
| 418 | | - |
| 419 | | - |
| 420 | | - |
| 421 | | - |
| 422 | | - |
| 423 | | - |
| 424 | QItemSelection::QItemSelection(const QModelIndex &topLeft, const QModelIndex &bottomRight) | - |
| 425 | { | - |
| 426 | select(topLeft, bottomRight); | - |
| 427 | }executed 4828 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
- ...
| 4828 |
| 428 | | - |
| 429 | | - |
| 430 | | - |
| 431 | | - |
| 432 | | - |
| 433 | | - |
| 434 | | - |
| 435 | | - |
| 436 | void QItemSelection::select(const QModelIndex &topLeft, const QModelIndex &bottomRight) | - |
| 437 | { | - |
| 438 | if (!topLeft.isValid() || !bottomRight.isValid())| TRUE | evaluated 256 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 5313 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
- ...
|
| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 5312 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-5313 |
| 439 | return;executed 257 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
| 257 |
| 440 | | - |
| 441 | if ((topLeft.model() != bottomRight.model())| TRUE | never evaluated | | FALSE | evaluated 5312 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-5312 |
| 442 | || topLeft.parent() != bottomRight.parent()) {| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 5311 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-5311 |
| 443 | qWarning("Can't select indexes from different model or with different parents"); | - |
| 444 | return;executed 1 time by 1 test: return; | 1 |
| 445 | } | - |
| 446 | if (topLeft.row() > bottomRight.row() || topLeft.column() > bottomRight.column()) {| TRUE | never evaluated | | FALSE | evaluated 5311 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
- ...
|
| TRUE | never evaluated | | FALSE | evaluated 5311 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-5311 |
| 447 | int top = qMin(topLeft.row(), bottomRight.row()); | - |
| 448 | int bottom = qMax(topLeft.row(), bottomRight.row()); | - |
| 449 | int left = qMin(topLeft.column(), bottomRight.column()); | - |
| 450 | int right = qMax(topLeft.column(), bottomRight.column()); | - |
| 451 | QModelIndex tl = topLeft.sibling(top, left); | - |
| 452 | QModelIndex br = bottomRight.sibling(bottom, right); | - |
| 453 | append(QItemSelectionRange(tl, br)); | - |
| 454 | return; never executed: return; | 0 |
| 455 | } | - |
| 456 | append(QItemSelectionRange(topLeft, bottomRight)); | - |
| 457 | }executed 5311 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
- ...
| 5311 |
| 458 | | - |
| 459 | | - |
| 460 | | - |
| 461 | | - |
| 462 | | - |
| 463 | | - |
| 464 | bool QItemSelection::contains(const QModelIndex &index) const | - |
| 465 | { | - |
| 466 | if (index.flags() & Qt::ItemIsSelectable) {| TRUE | evaluated 9021 times by 21 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 7 times by 1 test |
| 7-9021 |
| 467 | QList<QItemSelectionRange>::const_iterator it = begin(); | - |
| 468 | for (; it != end(); ++it)| TRUE | evaluated 11213 times by 21 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 7396 times by 19 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 7396-11213 |
| 469 | if ((*it).contains(index))| TRUE | evaluated 1625 times by 21 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 9588 times by 19 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 1625-9588 |
| 470 | return true;executed 1625 times by 21 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 1625 |
| 471 | }executed 7396 times by 19 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 7396 |
| 472 | return false;executed 7403 times by 19 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 7403 |
| 473 | } | - |
| 474 | | - |
| 475 | | - |
| 476 | | - |
| 477 | | - |
| 478 | | - |
| 479 | QModelIndexList QItemSelection::indexes() const | - |
| 480 | { | - |
| 481 | return qSelectionIndexes<QModelIndexList>(*this);executed 1153 times by 17 tests: return qSelectionIndexes<QModelIndexList>(*this);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 |
| 482 | } | - |
| 483 | | - |
| 484 | static QVector<QPair<QPersistentModelIndex, uint> > qSelectionPersistentRowLengths(const QItemSelection &sel) | - |
| 485 | { | - |
| 486 | QVector<QPair<QPersistentModelIndex, uint> > result; | - |
| 487 | for (const QItemSelectionRange &range : sel) | - |
| 488 | rowLengthsFromRange(range, result);executed 15 times by 2 tests: rowLengthsFromRange(range, result);Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 15 |
| 489 | return 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 |
| 490 | } | - |
| 491 | | - |
| 492 | | - |
| 493 | | - |
| 494 | | - |
| 495 | | - |
| 496 | | - |
| 497 | | - |
| 498 | | - |
| 499 | | - |
| 500 | | - |
| 501 | | - |
| 502 | void QItemSelection::merge(const QItemSelection &other, QItemSelectionModel::SelectionFlags command) | - |
| 503 | { | - |
| 504 | if (other.isEmpty() ||| TRUE | evaluated 229960 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 13405 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
- ...
|
| 13405-229960 |
| 505 | !(command & QItemSelectionModel::Select || | - |
| 506 | command & QItemSelectionModel::Deselect || | - |
| 507 | command & QItemSelectionModel::Toggle)) | - |
| 508 | return;executed 229960 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
- ...
| 229960 |
| 509 | | - |
| 510 | QItemSelection newSelection = other; | - |
| 511 | | - |
| 512 | QItemSelection intersections; | - |
| 513 | QItemSelection::iterator it = newSelection.begin(); | - |
| 514 | while (it != newSelection.end()) {| TRUE | evaluated 13942 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 13405 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
- ...
|
| 13405-13942 |
| 515 | if (!(*it).isValid()) {| TRUE | evaluated 234 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 13708 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
- ...
|
| 234-13708 |
| 516 | it = newSelection.erase(it); | - |
| 517 | continue;executed 234 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
| 234 |
| 518 | } | - |
| 519 | for (int t = 0; t < count(); ++t) {| TRUE | evaluated 3578 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 13708 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
- ...
|
| 3578-13708 |
| 520 | if ((*it).intersects(at(t)))| TRUE | evaluated 639 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 2939 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
|
| 639-2939 |
| 521 | intersections.append(at(t).intersected(*it));executed 639 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
| 639 |
| 522 | }executed 3578 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
| 3578 |
| 523 | ++it; | - |
| 524 | }executed 13708 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
- ...
| 13708 |
| 525 | | - |
| 526 | | - |
| 527 | for (int i = 0; i < intersections.count(); ++i) { | TRUE | evaluated 639 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 13405 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
- ...
|
| 639-13405 |
| 528 | for (int t = 0; t < count();) { | TRUE | evaluated 2131 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 639 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
|
| 639-2131 |
| 529 | if (at(t).intersects(intersections.at(i))) {| TRUE | evaluated 639 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 1492 times by 9 testsEvaluated by:- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 639-1492 |
| 530 | split(at(t), intersections.at(i), this); | - |
| 531 | removeAt(t); | - |
| 532 | } else {executed 639 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
| 639 |
| 533 | ++t; | - |
| 534 | }executed 1492 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
| 1492 |
| 535 | } | - |
| 536 | | - |
| 537 | for (int n = 0; (command & QItemSelectionModel::Toggle) && n < newSelection.count();) {| TRUE | evaluated 92 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| | FALSE | evaluated 81 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
|
| 81-92 |
| 538 | if (newSelection.at(n).intersects(intersections.at(i))) {| TRUE | evaluated 81 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| | FALSE | evaluated 11 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
| 11-81 |
| 539 | split(newSelection.at(n), intersections.at(i), &newSelection); | - |
| 540 | newSelection.removeAt(n); | - |
| 541 | } else {executed 81 times by 3 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| 81 |
| 542 | ++n; | - |
| 543 | }executed 11 times by 2 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 11 |
| 544 | } | - |
| 545 | }executed 639 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
| 639 |
| 546 | | - |
| 547 | if (!(command & QItemSelectionModel::Deselect))| TRUE | evaluated 12562 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 843 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
|
| 843-12562 |
| 548 | operator+=(newSelection);executed 12562 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
- ...
| 12562 |
| 549 | }executed 13405 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
- ...
| 13405 |
| 550 | | - |
| 551 | | - |
| 552 | | - |
| 553 | | - |
| 554 | | - |
| 555 | | - |
| 556 | | - |
| 557 | | - |
| 558 | void QItemSelection::split(const QItemSelectionRange &range, | - |
| 559 | const QItemSelectionRange &other, QItemSelection *result) | - |
| 560 | { | - |
| 561 | if (range.parent() != other.parent() || range.model() != other.model())| TRUE | never evaluated | | FALSE | evaluated 1238 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
|
| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1237 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-1238 |
| 562 | return;executed 1 time by 1 test: return; | 1 |
| 563 | | - |
| 564 | QModelIndex parent = other.parent(); | - |
| 565 | int top = range.top(); | - |
| 566 | int left = range.left(); | - |
| 567 | int bottom = range.bottom(); | - |
| 568 | int right = range.right(); | - |
| 569 | int other_top = other.top(); | - |
| 570 | int other_left = other.left(); | - |
| 571 | int other_bottom = other.bottom(); | - |
| 572 | int other_right = other.right(); | - |
| 573 | const QAbstractItemModel *model = range.model(); | - |
| 574 | Q_ASSERT(model); | - |
| 575 | if (other_top > top) {| TRUE | evaluated 214 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
| | FALSE | evaluated 1023 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
|
| 214-1023 |
| 576 | QModelIndex tl = model->index(top, left, parent); | - |
| 577 | QModelIndex br = model->index(other_top - 1, right, parent); | - |
| 578 | result->append(QItemSelectionRange(tl, br)); | - |
| 579 | top = other_top; | - |
| 580 | }executed 214 times by 6 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
| 214 |
| 581 | if (other_bottom < bottom) {| TRUE | evaluated 162 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 1075 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
|
| 162-1075 |
| 582 | QModelIndex tl = model->index(other_bottom + 1, left, parent); | - |
| 583 | QModelIndex br = model->index(bottom, right, parent); | - |
| 584 | result->append(QItemSelectionRange(tl, br)); | - |
| 585 | bottom = other_bottom; | - |
| 586 | }executed 162 times by 6 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 162 |
| 587 | if (other_left > left) {| TRUE | evaluated 175 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 1062 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
|
| 175-1062 |
| 588 | QModelIndex tl = model->index(top, left, parent); | - |
| 589 | QModelIndex br = model->index(bottom, other_left - 1, parent); | - |
| 590 | result->append(QItemSelectionRange(tl, br)); | - |
| 591 | left = other_left; | - |
| 592 | }executed 175 times by 5 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 175 |
| 593 | if (other_right < right) {| TRUE | evaluated 150 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 1087 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
|
| 150-1087 |
| 594 | QModelIndex tl = model->index(top, other_right + 1, parent); | - |
| 595 | QModelIndex br = model->index(bottom, right, parent); | - |
| 596 | result->append(QItemSelectionRange(tl, br)); | - |
| 597 | right = other_right; | - |
| 598 | }executed 150 times by 6 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 150 |
| 599 | }executed 1237 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
| 1237 |
| 600 | | - |
| 601 | | - |
| 602 | void QItemSelectionModelPrivate::initModel(QAbstractItemModel *m) | - |
| 603 | { | - |
| 604 | struct Cx { | - |
| 605 | const char *signal; | - |
| 606 | const char *slot; | - |
| 607 | }; | - |
| 608 | static const Cx connections[] = { | - |
| 609 | { SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), | - |
| 610 | SLOT(_q_rowsAboutToBeRemoved(QModelIndex,int,int)) }, | - |
| 611 | { SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)), | - |
| 612 | SLOT(_q_columnsAboutToBeRemoved(QModelIndex,int,int)) }, | - |
| 613 | { SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)), | - |
| 614 | SLOT(_q_rowsAboutToBeInserted(QModelIndex,int,int)) }, | - |
| 615 | { SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)), | - |
| 616 | SLOT(_q_columnsAboutToBeInserted(QModelIndex,int,int)) }, | - |
| 617 | { SIGNAL(rowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)), | - |
| 618 | SLOT(_q_layoutAboutToBeChanged()) }, | - |
| 619 | { SIGNAL(columnsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)), | - |
| 620 | SLOT(_q_layoutAboutToBeChanged()) }, | - |
| 621 | { SIGNAL(rowsMoved(QModelIndex,int,int,QModelIndex,int)), | - |
| 622 | SLOT(_q_layoutChanged()) }, | - |
| 623 | { SIGNAL(columnsMoved(QModelIndex,int,int,QModelIndex,int)), | - |
| 624 | SLOT(_q_layoutChanged()) }, | - |
| 625 | { SIGNAL(layoutAboutToBeChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)), | - |
| 626 | SLOT(_q_layoutAboutToBeChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)) }, | - |
| 627 | { SIGNAL(layoutChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)), | - |
| 628 | SLOT(_q_layoutChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)) }, | - |
| 629 | { SIGNAL(modelReset()), | - |
| 630 | SLOT(reset()) }, | - |
| 631 | { 0, 0 } | - |
| 632 | }; | - |
| 633 | | - |
| 634 | if (model == m)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 5009 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-5009 |
| 635 | return;executed 1 time by 1 test: return; | 1 |
| 636 | | - |
| 637 | Q_Q(QItemSelectionModel); | - |
| 638 | if (model) {| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 5008 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-5008 |
| 639 | for (const Cx *cx = &connections[0]; cx->signal; cx++)| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1-11 |
| 640 | QObject::disconnect(model, cx->signal, q, cx->slot);executed 11 times by 1 test: QObject::disconnect(model, cx->signal, q, cx->slot); | 11 |
| 641 | q->reset(); | - |
| 642 | }executed 1 time by 1 test: end of block | 1 |
| 643 | model = m; | - |
| 644 | if (model) {| TRUE | evaluated 5008 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-5008 |
| 645 | for (const Cx *cx = &connections[0]; cx->signal; cx++)| TRUE | evaluated 55088 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 5008 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
- ...
|
| 5008-55088 |
| 646 | QObject::connect(model, cx->signal, q, cx->slot);executed 55088 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
- ...
| 55088 |
| 647 | }executed 5008 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
- ...
| 5008 |
| 648 | }executed 5009 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
- ...
| 5009 |
| 649 | | - |
| 650 | | - |
| 651 | | - |
| 652 | | - |
| 653 | | - |
| 654 | | - |
| 655 | | - |
| 656 | | - |
| 657 | | - |
| 658 | QItemSelection QItemSelectionModelPrivate::expandSelection(const QItemSelection &selection, | - |
| 659 | QItemSelectionModel::SelectionFlags command) const | - |
| 660 | { | - |
| 661 | if (selection.isEmpty() && !((command & QItemSelectionModel::Rows) ||| TRUE | evaluated 11 times by 2 testsEvaluated by:- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 544 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
|
| 11-544 |
| 662 | (command & QItemSelectionModel::Columns)))| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 663 | return selection; never executed: return selection; | 0 |
| 664 | | - |
| 665 | QItemSelection expanded; | - |
| 666 | if (command & QItemSelectionModel::Rows) {| TRUE | evaluated 519 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-519 |
| 667 | for (int i = 0; i < selection.count(); ++i) {| TRUE | evaluated 513 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 519 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
|
| 513-519 |
| 668 | QModelIndex parent = selection.at(i).parent(); | - |
| 669 | int colCount = model->columnCount(parent); | - |
| 670 | QModelIndex tl = model->index(selection.at(i).top(), 0, parent); | - |
| 671 | QModelIndex br = model->index(selection.at(i).bottom(), colCount - 1, parent); | - |
| 672 | | - |
| 673 | expanded.merge(QItemSelection(tl, br), QItemSelectionModel::Select); | - |
| 674 | }executed 513 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
| 513 |
| 675 | }executed 519 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
| 519 |
| 676 | if (command & QItemSelectionModel::Columns) {| TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
| | FALSE | evaluated 519 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-519 |
| 677 | for (int i = 0; i < selection.count(); ++i) {| 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
|
| 36 |
| 678 | QModelIndex parent = selection.at(i).parent(); | - |
| 679 | int rowCount = model->rowCount(parent); | - |
| 680 | QModelIndex tl = model->index(0, selection.at(i).left(), parent); | - |
| 681 | QModelIndex br = model->index(rowCount - 1, selection.at(i).right(), parent); | - |
| 682 | | - |
| 683 | expanded.merge(QItemSelection(tl, br), QItemSelectionModel::Select); | - |
| 684 | }executed 36 times by 3 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
| 36 |
| 685 | }executed 36 times by 3 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
| 36 |
| 686 | return expanded;executed 555 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
| 555 |
| 687 | } | - |
| 688 | | - |
| 689 | | - |
| 690 | | - |
| 691 | | - |
| 692 | void QItemSelectionModelPrivate::_q_rowsAboutToBeRemoved(const QModelIndex &parent, | - |
| 693 | int start, int end) | - |
| 694 | { | - |
| 695 | Q_Q(QItemSelectionModel); | - |
| 696 | finalize(); | - |
| 697 | | - |
| 698 | | - |
| 699 | if (currentIndex.isValid() && parent == currentIndex.parent()| TRUE | evaluated 39 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 3549 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
|
| TRUE | evaluated 26 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-3549 |
| 700 | && currentIndex.row() >= start && currentIndex.row() <= end) {| 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 10 times by 5 testsEvaluated by:- tst_QAccessibility
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
|
| 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 |
| 701 | QModelIndex old = currentIndex; | - |
| 702 | 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 |
| 703 | currentIndex = model->index(start - 1, old.column(), parent);executed 1 time by 1 test: currentIndex = model->index(start - 1, old.column(), parent); | 1 |
| 704 | 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 |
| 705 | currentIndex = model->index(end + 1, old.column(), parent); never executed: currentIndex = model->index(end + 1, old.column(), parent); | 0 |
| 706 | else | - |
| 707 | currentIndex = QModelIndex();executed 4 times by 3 tests: currentIndex = QModelIndex();Executed by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QTreeView
| 4 |
| 708 | emit q->currentChanged(currentIndex, old); | - |
| 709 | emit q->currentRowChanged(currentIndex, old); | - |
| 710 | 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 |
| 711 | emit q->currentColumnChanged(currentIndex, old);executed 4 times by 3 tests: q->currentColumnChanged(currentIndex, old);Executed by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QTreeView
| 4 |
| 712 | }executed 5 times by 3 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QTreeView
| 5 |
| 713 | | - |
| 714 | QItemSelection deselected; | - |
| 715 | QItemSelection newParts; | - |
| 716 | QItemSelection::iterator it = ranges.begin(); | - |
| 717 | 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 3588 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-3588 |
| 718 | 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 |
| 719 | QModelIndex itParent = it->topLeft().parent(); | - |
| 720 | while (itParent.isValid() && itParent.parent() != parent)| 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
|
| 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 |
| 721 | itParent = itParent.parent();executed 6 times by 4 tests: itParent = itParent.parent();Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
| 6 |
| 722 | | - |
| 723 | if (itParent.isValid() && start <= itParent.row() && itParent.row() <= end) {| 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
|
| TRUE | evaluated 3 times by 3 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
| | FALSE | never evaluated |
| TRUE | evaluated 3 times by 3 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
| | FALSE | never evaluated |
| 0-12 |
| 724 | deselected.append(*it); | - |
| 725 | it = ranges.erase(it); | - |
| 726 | } else {executed 3 times by 3 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
| 3 |
| 727 | ++it; | - |
| 728 | }executed 12 times by 5 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
| 12 |
| 729 | } else if (start <= it->bottom() && it->bottom() <= end | 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
|
| 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 |
| 730 | && start <= it->top() && 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 | evaluated 2 times by 1 test |
| 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 |
| 731 | deselected.append(*it); | - |
| 732 | it = ranges.erase(it); | - |
| 733 | } else if (start <= it->top() && it->top() <= end) { 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
| 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
|
| 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 |
| 734 | deselected.append(QItemSelectionRange(it->topLeft(), model->index(end, it->right(), it->parent()))); | - |
| 735 | *it = QItemSelectionRange(model->index(end + 1, it->left(), it->parent()), it->bottomRight()); | - |
| 736 | ++it; | - |
| 737 | } else if (start <= it->bottom() && it->bottom() <= end) { executed 3 times by 1 test: end of block | 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
|
| 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 |
| 738 | deselected.append(QItemSelectionRange(model->index(start, it->left(), it->parent()), it->bottomRight())); | - |
| 739 | *it = QItemSelectionRange(it->topLeft(), model->index(start - 1, it->right(), it->parent())); | - |
| 740 | ++it; | - |
| 741 | } else if (it->top() < start && end < it->bottom()) { executed 2 times by 1 test: end of block | 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
|
| 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 |
| 742 | | - |
| 743 | | - |
| 744 | | - |
| 745 | | - |
| 746 | const QItemSelectionRange removedRange(model->index(start, it->left(), it->parent()), | - |
| 747 | model->index(end, it->right(), it->parent())); | - |
| 748 | deselected.append(removedRange); | - |
| 749 | QItemSelection::split(*it, removedRange, &newParts); | - |
| 750 | it = ranges.erase(it); | - |
| 751 | } elseexecuted 3 times by 1 test: end of block | 3 |
| 752 | ++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 |
| 753 | } | - |
| 754 | ranges.append(newParts); | - |
| 755 | | - |
| 756 | 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 3558 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-3558 |
| 757 | emit 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 |
| 758 | }executed 3588 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
| 3588 |
| 759 | | - |
| 760 | | - |
| 761 | | - |
| 762 | | - |
| 763 | void QItemSelectionModelPrivate::_q_columnsAboutToBeRemoved(const QModelIndex &parent, | - |
| 764 | int start, int end) | - |
| 765 | { | - |
| 766 | Q_Q(QItemSelectionModel); | - |
| 767 | | - |
| 768 | | - |
| 769 | if (currentIndex.isValid() && parent == currentIndex.parent()| TRUE | evaluated 11 times by 5 testsEvaluated by:- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QListView
- tst_QTableView
| | FALSE | evaluated 287 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
|
| TRUE | evaluated 11 times by 5 testsEvaluated by:- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QListView
- tst_QTableView
| | FALSE | never evaluated |
| 0-287 |
| 770 | && currentIndex.column() >= start && currentIndex.column() <= end) {| TRUE | evaluated 8 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QListView
| | FALSE | evaluated 3 times by 2 testsEvaluated by:- tst_QHeaderView
- tst_QTableView
|
| TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_QHeaderView
- tst_QListView
| | FALSE | evaluated 5 times by 2 testsEvaluated by:- tst_QCalendarWidget
- tst_QDateTimeEdit
|
| 3-8 |
| 771 | QModelIndex old = currentIndex; | - |
| 772 | if (start > 0) | TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2 times by 2 testsEvaluated by:- tst_QHeaderView
- tst_QListView
|
| 1-2 |
| 773 | currentIndex = model->index(old.row(), start - 1, parent);executed 1 time by 1 test: currentIndex = model->index(old.row(), start - 1, parent); | 1 |
| 774 | else if (model && end < model->columnCount() - 1) | TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1 |
| 775 | currentIndex = model->index(old.row(), end + 1, parent);executed 1 time by 1 test: currentIndex = model->index(old.row(), end + 1, parent); | 1 |
| 776 | else | - |
| 777 | currentIndex = QModelIndex();executed 1 time by 1 test: currentIndex = QModelIndex(); | 1 |
| 778 | emit q->currentChanged(currentIndex, old); | - |
| 779 | if (currentIndex.row() != old.row())| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2 times by 1 test |
| 1-2 |
| 780 | emit q->currentRowChanged(currentIndex, old);executed 1 time by 1 test: q->currentRowChanged(currentIndex, old); | 1 |
| 781 | emit q->currentColumnChanged(currentIndex, old); | - |
| 782 | }executed 3 times by 2 tests: end of blockExecuted by:- tst_QHeaderView
- tst_QListView
| 3 |
| 783 | | - |
| 784 | | - |
| 785 | QModelIndex tl = model->index(0, start, parent); | - |
| 786 | QModelIndex br = model->index(model->rowCount(parent) - 1, end, parent); | - |
| 787 | q->select(QItemSelection(tl, br), QItemSelectionModel::Deselect); | - |
| 788 | finalize(); | - |
| 789 | }executed 298 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
| 298 |
| 790 | | - |
| 791 | | - |
| 792 | | - |
| 793 | | - |
| 794 | | - |
| 795 | | - |
| 796 | void QItemSelectionModelPrivate::_q_columnsAboutToBeInserted(const QModelIndex &parent, | - |
| 797 | int start, int end) | - |
| 798 | { | - |
| 799 | Q_UNUSED(end); | - |
| 800 | finalize(); | - |
| 801 | QList<QItemSelectionRange> split; | - |
| 802 | QList<QItemSelectionRange>::iterator it = ranges.begin(); | - |
| 803 | for (; it != ranges.end(); ) {| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 871 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-871 |
| 804 | if ((*it).isValid() && (*it).parent() == parent| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
| 0-1 |
| 805 | && (*it).left() < start && (*it).right() >= start) {| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
| 0-1 |
| 806 | QModelIndex bottomMiddle = model->index((*it).bottom(), start - 1, (*it).parent()); | - |
| 807 | QItemSelectionRange left((*it).topLeft(), bottomMiddle); | - |
| 808 | QModelIndex topMiddle = model->index((*it).top(), start, (*it).parent()); | - |
| 809 | QItemSelectionRange right(topMiddle, (*it).bottomRight()); | - |
| 810 | it = ranges.erase(it); | - |
| 811 | split.append(left); | - |
| 812 | split.append(right); | - |
| 813 | } else { never executed: end of block | 0 |
| 814 | ++it; | - |
| 815 | }executed 1 time by 1 test: end of block | 1 |
| 816 | } | - |
| 817 | ranges += split; | - |
| 818 | }executed 871 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
| 871 |
| 819 | | - |
| 820 | | - |
| 821 | | - |
| 822 | | - |
| 823 | | - |
| 824 | | - |
| 825 | void QItemSelectionModelPrivate::_q_rowsAboutToBeInserted(const QModelIndex &parent, | - |
| 826 | int start, int end) | - |
| 827 | { | - |
| 828 | Q_UNUSED(end); | - |
| 829 | finalize(); | - |
| 830 | QList<QItemSelectionRange> split; | - |
| 831 | QList<QItemSelectionRange>::iterator it = ranges.begin(); | - |
| 832 | for (; it != ranges.end(); ) {| TRUE | evaluated 3042 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 202721 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
- ...
|
| 3042-202721 |
| 833 | if ((*it).isValid() && (*it).parent() == parent| TRUE | evaluated 3042 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 2758 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 0-3042 |
| 834 | && (*it).top() < start && (*it).bottom() >= 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
|
| 3-276 |
| 835 | QModelIndex middleRight = model->index(start - 1, (*it).right(), (*it).parent()); | - |
| 836 | QItemSelectionRange top((*it).topLeft(), middleRight); | - |
| 837 | QModelIndex middleLeft = model->index(start, (*it).left(), (*it).parent()); | - |
| 838 | QItemSelectionRange bottom(middleLeft, (*it).bottomRight()); | - |
| 839 | it = ranges.erase(it); | - |
| 840 | split.append(top); | - |
| 841 | split.append(bottom); | - |
| 842 | } else {executed 3 times by 1 test: end of block | 3 |
| 843 | ++it; | - |
| 844 | }executed 3039 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
| 3039 |
| 845 | } | - |
| 846 | ranges += split; | - |
| 847 | }executed 202721 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
- ...
| 202721 |
| 848 | | - |
| 849 | | - |
| 850 | | - |
| 851 | | - |
| 852 | | - |
| 853 | | - |
| 854 | | - |
| 855 | | - |
| 856 | void QItemSelectionModelPrivate::_q_layoutAboutToBeChanged(const QList<QPersistentModelIndex> &, QAbstractItemModel::LayoutChangeHint hint) | - |
| 857 | { | - |
| 858 | savedPersistentIndexes.clear(); | - |
| 859 | savedPersistentCurrentIndexes.clear(); | - |
| 860 | savedPersistentRowLengths.clear(); | - |
| 861 | savedPersistentCurrentRowLengths.clear(); | - |
| 862 | | - |
| 863 | | - |
| 864 | | - |
| 865 | if (ranges.isEmpty() && currentSelection.count() == 1) {| TRUE | evaluated 2919 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 36 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeWidget
|
| TRUE | evaluated 14 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableWidget
| | FALSE | evaluated 2905 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-2919 |
| 866 | QItemSelectionRange range = currentSelection.constFirst(); | - |
| 867 | QModelIndex parent = range.parent(); | - |
| 868 | tableRowCount = model->rowCount(parent); | - |
| 869 | tableColCount = model->columnCount(parent); | - |
| 870 | 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 |
| 871 | && range.top() == 0| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 872 | && range.left() == 0| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 873 | && range.bottom() == tableRowCount - 1| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 874 | && range.right() == tableColCount - 1) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 875 | tableSelected = true; | - |
| 876 | tableParent = parent; | - |
| 877 | return; never executed: return; | 0 |
| 878 | } | - |
| 879 | }executed 14 times by 6 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableWidget
| 14 |
| 880 | tableSelected = false; | - |
| 881 | | - |
| 882 | 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 2830 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-2830 |
| 883 | | - |
| 884 | | - |
| 885 | | - |
| 886 | | - |
| 887 | | - |
| 888 | savedPersistentRowLengths = qSelectionPersistentRowLengths(ranges); | - |
| 889 | savedPersistentCurrentRowLengths = qSelectionPersistentRowLengths(currentSelection); | - |
| 890 | } else {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
| 125 |
| 891 | savedPersistentIndexes = qSelectionIndexes<QVector<QPersistentModelIndex>>(ranges); | - |
| 892 | savedPersistentCurrentIndexes = qSelectionIndexes<QVector<QPersistentModelIndex>>(currentSelection); | - |
| 893 | }executed 2830 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
| 2830 |
| 894 | } | - |
| 895 | | - |
| 896 | | - |
| 897 | | - |
| 898 | static QItemSelection mergeRowLengths(const QVector<QPair<QPersistentModelIndex, uint> > &rowLengths) | - |
| 899 | { | - |
| 900 | 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 |
| 901 | return QItemSelection();executed 8 times by 2 tests: return QItemSelection();Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 8 |
| 902 | | - |
| 903 | QItemSelection result; | - |
| 904 | int i = 0; | - |
| 905 | 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 |
| 906 | const QPersistentModelIndex &tl = rowLengths.at(i).first; | - |
| 907 | if (!tl.isValid()) {| TRUE | never evaluated | | FALSE | evaluated 13 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
| 0-13 |
| 908 | ++i; | - |
| 909 | continue; never executed: continue; | 0 |
| 910 | } | - |
| 911 | QPersistentModelIndex br = tl; | - |
| 912 | const uint length = rowLengths.at(i).second; | - |
| 913 | while (++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 |
| 914 | const QPersistentModelIndex &next = rowLengths.at(i).first; | - |
| 915 | if (!next.isValid())| TRUE | never evaluated | | FALSE | evaluated 11 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
| 0-11 |
| 916 | continue; never executed: continue; | 0 |
| 917 | const uint nextLength = rowLengths.at(i).second; | - |
| 918 | if ((nextLength == length)| TRUE | evaluated 11 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | never evaluated |
| 0-11 |
| 919 | && (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 |
| 920 | && (next.parent() == br.parent())) {| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | never evaluated |
| 0-10 |
| 921 | br = next; | - |
| 922 | } else {executed 10 times by 2 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 10 |
| 923 | break;executed 1 time by 1 test: break; | 1 |
| 924 | } | - |
| 925 | } | - |
| 926 | result.append(QItemSelectionRange(tl, br.sibling(br.row(), length - 1))); | - |
| 927 | }executed 13 times by 2 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 13 |
| 928 | return result;executed 12 times by 2 tests: return result;Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 12 |
| 929 | } | - |
| 930 | | - |
| 931 | | - |
| 932 | | - |
| 933 | | - |
| 934 | | - |
| 935 | | - |
| 936 | | - |
| 937 | static QItemSelection mergeIndexes(const QVector<QPersistentModelIndex> &indexes) | - |
| 938 | { | - |
| 939 | QItemSelection colSpans; | - |
| 940 | | - |
| 941 | int i = 0; | - |
| 942 | while (i < indexes.count()) {| TRUE | evaluated 110 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 80 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 80-110 |
| 943 | const QPersistentModelIndex &tl = indexes.at(i); | - |
| 944 | if (!tl.isValid()) {| TRUE | never evaluated | | FALSE | evaluated 110 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 0-110 |
| 945 | ++i; | - |
| 946 | continue; never executed: continue; | 0 |
| 947 | } | - |
| 948 | QPersistentModelIndex br = tl; | - |
| 949 | QModelIndex brParent = br.parent(); | - |
| 950 | int brRow = br.row(); | - |
| 951 | int brColumn = br.column(); | - |
| 952 | while (++i < indexes.count()) {| TRUE | evaluated 585 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 48 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 48-585 |
| 953 | const QPersistentModelIndex &next = indexes.at(i); | - |
| 954 | if (!next.isValid())| TRUE | never evaluated | | FALSE | evaluated 585 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 0-585 |
| 955 | continue; never executed: continue; | 0 |
| 956 | const QModelIndex nextParent = next.parent(); | - |
| 957 | const int nextRow = next.row(); | - |
| 958 | const int nextColumn = next.column(); | - |
| 959 | if ((nextParent == brParent)| TRUE | evaluated 543 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 42 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QStandardItemModel
|
| 42-543 |
| 960 | && (nextRow == brRow)| TRUE | evaluated 523 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-523 |
| 961 | && (nextColumn == brColumn + 1)) {| TRUE | evaluated 523 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | never evaluated |
| 0-523 |
| 962 | br = next; | - |
| 963 | brParent = nextParent; | - |
| 964 | brRow = nextRow; | - |
| 965 | brColumn = nextColumn; | - |
| 966 | } else {executed 523 times by 7 tests: end of blockExecuted by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 523 |
| 967 | break;executed 62 times by 3 tests: break;Executed by:- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
| 62 |
| 968 | } | - |
| 969 | } | - |
| 970 | colSpans.append(QItemSelectionRange(tl, br)); | - |
| 971 | }executed 110 times by 8 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 110 |
| 972 | | - |
| 973 | QItemSelection rowSpans; | - |
| 974 | i = 0; | - |
| 975 | while (i < colSpans.count()) {| TRUE | evaluated 104 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | evaluated 80 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 80-104 |
| 976 | QModelIndex tl = colSpans.at(i).topLeft(); | - |
| 977 | QModelIndex br = colSpans.at(i).bottomRight(); | - |
| 978 | QModelIndex prevTl = tl; | - |
| 979 | while (++i < colSpans.count()) {| TRUE | evaluated 62 times by 3 testsEvaluated by:- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
| | FALSE | evaluated 48 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 48-62 |
| 980 | QModelIndex nextTl = colSpans.at(i).topLeft(); | - |
| 981 | QModelIndex nextBr = colSpans.at(i).bottomRight(); | - |
| 982 | | - |
| 983 | if (nextTl.parent() != tl.parent())| TRUE | evaluated 42 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QStandardItemModel
| | FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
|
| 20-42 |
| 984 | break; executed 42 times by 2 tests: break;Executed by:- tst_QFiledialog
- tst_QStandardItemModel
| 42 |
| 985 | | - |
| 986 | if ((nextTl.column() == prevTl.column()) && (nextBr.column() == br.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 |
| 0-20 |
| 987 | && (nextTl.row() == prevTl.row() + 1) && (nextBr.row() == br.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 |
| 0-14 |
| 988 | br = nextBr; | - |
| 989 | prevTl = nextTl; | - |
| 990 | } else {executed 6 times by 1 test: end of block | 6 |
| 991 | break;executed 14 times by 1 test: break; | 14 |
| 992 | } | - |
| 993 | } | - |
| 994 | rowSpans.append(QItemSelectionRange(tl, br)); | - |
| 995 | }executed 104 times by 8 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 104 |
| 996 | return rowSpans;executed 80 times by 8 tests: return rowSpans;Executed by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 80 |
| 997 | } | - |
| 998 | | - |
| 999 | | - |
| 1000 | | - |
| 1001 | | - |
| 1002 | | - |
| 1003 | | - |
| 1004 | | - |
| 1005 | | - |
| 1006 | | - |
| 1007 | | - |
| 1008 | static bool qt_PersistentModelIndexLessThan(const QPersistentModelIndex &i1, const QPersistentModelIndex &i2) | - |
| 1009 | { | - |
| 1010 | const QModelIndex parent1 = i1.parent(); | - |
| 1011 | const QModelIndex parent2 = i2.parent(); | - |
| 1012 | return parent1 == parent2 ? i1 < i2 : parent1 < parent2;executed 2243 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
| 2243 |
| 1013 | } | - |
| 1014 | | - |
| 1015 | | - |
| 1016 | | - |
| 1017 | | - |
| 1018 | | - |
| 1019 | | - |
| 1020 | void QItemSelectionModelPrivate::_q_layoutChanged(const QList<QPersistentModelIndex> &, QAbstractItemModel::LayoutChangeHint hint) | - |
| 1021 | { | - |
| 1022 | | - |
| 1023 | if (tableSelected && tableColCount == model->columnCount(tableParent)| TRUE | never evaluated | | FALSE | evaluated 2956 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
|
| TRUE | never evaluated | | FALSE | never evaluated |
| 0-2956 |
| 1024 | && tableRowCount == model->rowCount(tableParent)) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1025 | ranges.clear(); | - |
| 1026 | currentSelection.clear(); | - |
| 1027 | int bottom = tableRowCount - 1; | - |
| 1028 | int right = tableColCount - 1; | - |
| 1029 | QModelIndex tl = model->index(0, 0, tableParent); | - |
| 1030 | QModelIndex br = model->index(bottom, right, tableParent); | - |
| 1031 | currentSelection << QItemSelectionRange(tl, br); | - |
| 1032 | tableParent = QModelIndex(); | - |
| 1033 | tableSelected = false; | - |
| 1034 | return; never executed: return; | 0 |
| 1035 | } | - |
| 1036 | | - |
| 1037 | if ((hint != QAbstractItemModel::VerticalSortHint && savedPersistentCurrentIndexes.isEmpty() && savedPersistentIndexes.isEmpty())| TRUE | evaluated 2831 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
|
| TRUE | evaluated 2814 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 17 times by 5 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableWidget
|
| TRUE | evaluated 2791 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
|
| 17-2831 |
| 1038 | || (hint == QAbstractItemModel::VerticalSortHint && savedPersistentRowLengths.isEmpty() && savedPersistentCurrentRowLengths.isEmpty())) {| 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 40 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 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
|
| 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 |
| 1039 | | - |
| 1040 | | - |
| 1041 | return;executed 2906 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
| 2906 |
| 1042 | } | - |
| 1043 | | - |
| 1044 | | - |
| 1045 | ranges.clear(); | - |
| 1046 | currentSelection.clear(); | - |
| 1047 | | - |
| 1048 | if (hint != QAbstractItemModel::VerticalSortHint) {| TRUE | evaluated 40 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-40 |
| 1049 | | - |
| 1050 | std::stable_sort(savedPersistentIndexes.begin(), savedPersistentIndexes.end(), | - |
| 1051 | qt_PersistentModelIndexLessThan); | - |
| 1052 | std::stable_sort(savedPersistentCurrentIndexes.begin(), savedPersistentCurrentIndexes.end(), | - |
| 1053 | qt_PersistentModelIndexLessThan); | - |
| 1054 | | - |
| 1055 | | - |
| 1056 | ranges = mergeIndexes(savedPersistentIndexes); | - |
| 1057 | currentSelection = mergeIndexes(savedPersistentCurrentIndexes); | - |
| 1058 | | - |
| 1059 | | - |
| 1060 | savedPersistentIndexes.clear(); | - |
| 1061 | savedPersistentCurrentIndexes.clear(); | - |
| 1062 | } else {executed 40 times by 8 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 40 |
| 1063 | | - |
| 1064 | std::stable_sort(savedPersistentRowLengths.begin(), savedPersistentRowLengths.end()); | - |
| 1065 | std::stable_sort(savedPersistentCurrentRowLengths.begin(), savedPersistentCurrentRowLengths.end()); | - |
| 1066 | | - |
| 1067 | | - |
| 1068 | ranges = mergeRowLengths(savedPersistentRowLengths); | - |
| 1069 | currentSelection = mergeRowLengths(savedPersistentCurrentRowLengths); | - |
| 1070 | | - |
| 1071 | | - |
| 1072 | savedPersistentRowLengths.clear(); | - |
| 1073 | savedPersistentCurrentRowLengths.clear(); | - |
| 1074 | }executed 10 times by 2 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 10 |
| 1075 | } | - |
| 1076 | | - |
| 1077 | | - |
| 1078 | | - |
| 1079 | | - |
| 1080 | | - |
| 1081 | | - |
| 1082 | | - |
| 1083 | | - |
| 1084 | | - |
| 1085 | | - |
| 1086 | | - |
| 1087 | | - |
| 1088 | | - |
| 1089 | | - |
| 1090 | | - |
| 1091 | | - |
| 1092 | | - |
| 1093 | | - |
| 1094 | | - |
| 1095 | | - |
| 1096 | | - |
| 1097 | | - |
| 1098 | | - |
| 1099 | | - |
| 1100 | | - |
| 1101 | | - |
| 1102 | | - |
| 1103 | | - |
| 1104 | | - |
| 1105 | | - |
| 1106 | | - |
| 1107 | | - |
| 1108 | | - |
| 1109 | | - |
| 1110 | | - |
| 1111 | | - |
| 1112 | | - |
| 1113 | | - |
| 1114 | | - |
| 1115 | | - |
| 1116 | | - |
| 1117 | | - |
| 1118 | | - |
| 1119 | QItemSelectionModel::QItemSelectionModel(QAbstractItemModel *model) | - |
| 1120 | : QObject(*new QItemSelectionModelPrivate, model) | - |
| 1121 | { | - |
| 1122 | d_func()->initModel(model); | - |
| 1123 | }executed 93 times by 8 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
| 93 |
| 1124 | | - |
| 1125 | | - |
| 1126 | | - |
| 1127 | | - |
| 1128 | QItemSelectionModel::QItemSelectionModel(QAbstractItemModel *model, QObject *parent) | - |
| 1129 | : QObject(*new QItemSelectionModelPrivate, parent) | - |
| 1130 | { | - |
| 1131 | d_func()->initModel(model); | - |
| 1132 | }executed 4915 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
- ...
| 4915 |
| 1133 | | - |
| 1134 | | - |
| 1135 | | - |
| 1136 | | - |
| 1137 | QItemSelectionModel::QItemSelectionModel(QItemSelectionModelPrivate &dd, QAbstractItemModel *model) | - |
| 1138 | : QObject(dd, model) | - |
| 1139 | { | - |
| 1140 | dd.initModel(model); | - |
| 1141 | } never executed: end of block | 0 |
| 1142 | | - |
| 1143 | | - |
| 1144 | | - |
| 1145 | | - |
| 1146 | QItemSelectionModel::~QItemSelectionModel() | - |
| 1147 | { | - |
| 1148 | } | - |
| 1149 | | - |
| 1150 | | - |
| 1151 | | - |
| 1152 | | - |
| 1153 | | - |
| 1154 | | - |
| 1155 | | - |
| 1156 | void QItemSelectionModel::select(const QModelIndex &index, QItemSelectionModel::SelectionFlags command) | - |
| 1157 | { | - |
| 1158 | QItemSelection selection(index, index); | - |
| 1159 | select(selection, command); | - |
| 1160 | }executed 3834 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
- ...
| 3834 |
| 1161 | | - |
| 1162 | | - |
| 1163 | | - |
| 1164 | | - |
| 1165 | | - |
| 1166 | | - |
| 1167 | | - |
| 1168 | | - |
| 1169 | | - |
| 1170 | | - |
| 1171 | | - |
| 1172 | | - |
| 1173 | | - |
| 1174 | | - |
| 1175 | | - |
| 1176 | | - |
| 1177 | | - |
| 1178 | | - |
| 1179 | | - |
| 1180 | | - |
| 1181 | | - |
| 1182 | | - |
| 1183 | | - |
| 1184 | | - |
| 1185 | | - |
| 1186 | | - |
| 1187 | | - |
| 1188 | | - |
| 1189 | | - |
| 1190 | | - |
| 1191 | | - |
| 1192 | | - |
| 1193 | | - |
| 1194 | | - |
| 1195 | | - |
| 1196 | | - |
| 1197 | | - |
| 1198 | | - |
| 1199 | | - |
| 1200 | | - |
| 1201 | | - |
| 1202 | | - |
| 1203 | | - |
| 1204 | | - |
| 1205 | | - |
| 1206 | | - |
| 1207 | | - |
| 1208 | | - |
| 1209 | | - |
| 1210 | | - |
| 1211 | | - |
| 1212 | | - |
| 1213 | | - |
| 1214 | | - |
| 1215 | | - |
| 1216 | | - |
| 1217 | | - |
| 1218 | | - |
| 1219 | | - |
| 1220 | | - |
| 1221 | | - |
| 1222 | | - |
| 1223 | | - |
| 1224 | | - |
| 1225 | | - |
| 1226 | | - |
| 1227 | | - |
| 1228 | | - |
| 1229 | | - |
| 1230 | | - |
| 1231 | | - |
| 1232 | | - |
| 1233 | | - |
| 1234 | | - |
| 1235 | | - |
| 1236 | | - |
| 1237 | | - |
| 1238 | | - |
| 1239 | | - |
| 1240 | | - |
| 1241 | | - |
| 1242 | | - |
| 1243 | | - |
| 1244 | | - |
| 1245 | | - |
| 1246 | | - |
| 1247 | void QItemSelectionModel::select(const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) | - |
| 1248 | { | - |
| 1249 | Q_D(QItemSelectionModel); | - |
| 1250 | if (!d->model) {| TRUE | never evaluated | | FALSE | evaluated 7345 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-7345 |
| 1251 | qWarning("QItemSelectionModel: Selecting when no model has been set will result in a no-op."); | - |
| 1252 | return; never executed: return; | 0 |
| 1253 | } | - |
| 1254 | if (command == NoUpdate)| TRUE | evaluated 45 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTreeWidget
| | FALSE | evaluated 7300 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
- ...
|
| 45-7300 |
| 1255 | return;executed 45 times by 5 tests: return;Executed by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTreeWidget
| 45 |
| 1256 | | - |
| 1257 | | - |
| 1258 | QItemSelection sel = selection; | - |
| 1259 | | - |
| 1260 | | - |
| 1261 | | - |
| 1262 | | - |
| 1263 | | - |
| 1264 | QItemSelection::iterator it = d->ranges.begin(); | - |
| 1265 | while (it != d->ranges.end()) {| TRUE | evaluated 1187 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 7300 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
- ...
|
| 1187-7300 |
| 1266 | if (!it->isValid())| TRUE | evaluated 24 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| | FALSE | evaluated 1163 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-1163 |
| 1267 | 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 |
| 1268 | else | - |
| 1269 | ++it;executed 1163 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
| 1163 |
| 1270 | } | - |
| 1271 | | - |
| 1272 | QItemSelection old = d->ranges; | - |
| 1273 | old.merge(d->currentSelection, d->currentCommand); | - |
| 1274 | | - |
| 1275 | | - |
| 1276 | if (command & Rows || command & Columns) | - |
| 1277 | sel = d->expandSelection(sel, command);executed 555 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
| 555 |
| 1278 | | - |
| 1279 | | - |
| 1280 | if (command & Clear) {| TRUE | evaluated 5312 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 1988 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
- ...
|
| 1988-5312 |
| 1281 | d->ranges.clear(); | - |
| 1282 | d->currentSelection.clear(); | - |
| 1283 | }executed 5312 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
- ...
| 5312 |
| 1284 | | - |
| 1285 | | - |
| 1286 | if (!(command & Current))| TRUE | evaluated 6537 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 763 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
|
| 763-6537 |
| 1287 | d->finalize();executed 6537 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
- ...
| 6537 |
| 1288 | | - |
| 1289 | | - |
| 1290 | if (command & Toggle || command & Select || command & Deselect) { | - |
| 1291 | d->currentCommand = command; | - |
| 1292 | d->currentSelection = sel; | - |
| 1293 | }executed 5792 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
- ...
| 5792 |
| 1294 | | - |
| 1295 | | - |
| 1296 | QItemSelection newSelection = d->ranges; | - |
| 1297 | newSelection.merge(d->currentSelection, d->currentCommand); | - |
| 1298 | emitSelectionChanged(newSelection, old); | - |
| 1299 | }executed 7300 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
- ...
| 7300 |
| 1300 | | - |
| 1301 | | - |
| 1302 | | - |
| 1303 | | - |
| 1304 | void QItemSelectionModel::clear() | - |
| 1305 | { | - |
| 1306 | clearSelection(); | - |
| 1307 | clearCurrentIndex(); | - |
| 1308 | }executed 12275 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
- ...
| 12275 |
| 1309 | | - |
| 1310 | | - |
| 1311 | | - |
| 1312 | | - |
| 1313 | void QItemSelectionModel::clearCurrentIndex() | - |
| 1314 | { | - |
| 1315 | Q_D(QItemSelectionModel); | - |
| 1316 | QModelIndex previous = d->currentIndex; | - |
| 1317 | d->currentIndex = QModelIndex(); | - |
| 1318 | if (previous.isValid()) {| TRUE | evaluated 880 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 11398 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
- ...
|
| 880-11398 |
| 1319 | emit currentChanged(d->currentIndex, previous); | - |
| 1320 | emit currentRowChanged(d->currentIndex, previous); | - |
| 1321 | emit currentColumnChanged(d->currentIndex, previous); | - |
| 1322 | }executed 880 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
| 880 |
| 1323 | }executed 12278 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
- ...
| 12278 |
| 1324 | | - |
| 1325 | | - |
| 1326 | | - |
| 1327 | | - |
| 1328 | void QItemSelectionModel::reset() | - |
| 1329 | { | - |
| 1330 | const QSignalBlocker blocker(this); | - |
| 1331 | clear(); | - |
| 1332 | }executed 9635 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
- ...
| 9635 |
| 1333 | | - |
| 1334 | | - |
| 1335 | | - |
| 1336 | | - |
| 1337 | | - |
| 1338 | void QItemSelectionModel::clearSelection() | - |
| 1339 | { | - |
| 1340 | Q_D(QItemSelectionModel); | - |
| 1341 | if (d->ranges.count() == 0 && d->currentSelection.count() == 0)| TRUE | evaluated 12268 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
|
| TRUE | evaluated 10878 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 1390 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-12268 |
| 1342 | return;executed 10878 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
- ...
| 10878 |
| 1343 | | - |
| 1344 | select(QItemSelection(), Clear); | - |
| 1345 | }executed 1456 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
| 1456 |
| 1346 | | - |
| 1347 | | - |
| 1348 | | - |
| 1349 | | - |
| 1350 | | - |
| 1351 | | - |
| 1352 | | - |
| 1353 | | - |
| 1354 | | - |
| 1355 | | - |
| 1356 | | - |
| 1357 | | - |
| 1358 | void QItemSelectionModel::setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command) | - |
| 1359 | { | - |
| 1360 | Q_D(QItemSelectionModel); | - |
| 1361 | if (!d->model) {| TRUE | never evaluated | | FALSE | evaluated 4212 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-4212 |
| 1362 | qWarning("QItemSelectionModel: Setting the current index when no model has been set will result in a no-op."); | - |
| 1363 | return; never executed: return; | 0 |
| 1364 | } | - |
| 1365 | if (index == d->currentIndex) {| TRUE | evaluated 255 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 3957 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
- ...
|
| 255-3957 |
| 1366 | 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 110 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QItemView
- tst_QListView
- tst_QTreeView
- tst_QTreeWidget
|
| 110-145 |
| 1367 | 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 |
| 1368 | return;executed 255 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
| 255 |
| 1369 | } | - |
| 1370 | QPersistentModelIndex previous = d->currentIndex; | - |
| 1371 | d->currentIndex = index; | - |
| 1372 | if (command != NoUpdate)| TRUE | evaluated 2956 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 1001 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
|
| 1001-2956 |
| 1373 | select(d->currentIndex, command); executed 2956 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
| 2956 |
| 1374 | emit currentChanged(d->currentIndex, previous); | - |
| 1375 | if (d->currentIndex.row() != previous.row() ||| TRUE | evaluated 3320 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 637 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
|
| 637-3320 |
| 1376 | d->currentIndex.parent() != previous.parent())| TRUE | evaluated 50 times by 5 testsEvaluated by:- tst_QColumnView
- tst_QComboBox
- tst_QItemSelectionModel
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 587 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
|
| 50-587 |
| 1377 | emit currentRowChanged(d->currentIndex, previous);executed 3370 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
- ...
| 3370 |
| 1378 | if (d->currentIndex.column() != previous.column() ||| TRUE | evaluated 2038 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 1919 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
|
| 1919-2038 |
| 1379 | d->currentIndex.parent() != previous.parent())| TRUE | evaluated 76 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 1843 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
|
| 76-1843 |
| 1380 | emit currentColumnChanged(d->currentIndex, previous);executed 2114 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
- ...
| 2114 |
| 1381 | }executed 3957 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
- ...
| 3957 |
| 1382 | | - |
| 1383 | | - |
| 1384 | | - |
| 1385 | | - |
| 1386 | | - |
| 1387 | QModelIndex QItemSelectionModel::currentIndex() const | - |
| 1388 | { | - |
| 1389 | return static_cast<QModelIndex>(d_func()->currentIndex);executed 38936 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
- ...
| 38936 |
| 1390 | } | - |
| 1391 | | - |
| 1392 | | - |
| 1393 | | - |
| 1394 | | - |
| 1395 | bool QItemSelectionModel::isSelected(const QModelIndex &index) const | - |
| 1396 | { | - |
| 1397 | Q_D(const QItemSelectionModel); | - |
| 1398 | if (d->model != index.model() || !index.isValid())| TRUE | evaluated 20 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QListView
- tst_QTreeView
| | FALSE | evaluated 28592 times by 26 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
- ...
|
| TRUE | never evaluated | | FALSE | evaluated 28592 times by 26 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-28592 |
| 1399 | return false;executed 20 times by 5 tests: return false;Executed by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QListView
- tst_QTreeView
| 20 |
| 1400 | | - |
| 1401 | bool selected = false; | - |
| 1402 | | - |
| 1403 | QList<QItemSelectionRange>::const_iterator it = d->ranges.begin(); | - |
| 1404 | for (; it != d->ranges.end(); ++it) {| TRUE | evaluated 5490 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 28034 times by 26 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
- ...
|
| 5490-28034 |
| 1405 | if ((*it).isValid() && (*it).contains(index)) {| TRUE | evaluated 5490 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 558 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 4932 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListWidget
- tst_QTableView
|
| 0-5490 |
| 1406 | selected = true; | - |
| 1407 | break;executed 558 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
| 558 |
| 1408 | } | - |
| 1409 | }executed 4932 times by 8 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListWidget
- tst_QTableView
| 4932 |
| 1410 | | - |
| 1411 | | - |
| 1412 | if (d->currentSelection.count()) {| TRUE | evaluated 9209 times by 21 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 19383 times by 22 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
- tst_languageChange
|
| 9209-19383 |
| 1413 | if ((d->currentCommand & Deselect) && selected)| TRUE | evaluated 185 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 90 times by 3 testsEvaluated by:- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
| 90-185 |
| 1414 | selected = !d->currentSelection.contains(index);executed 185 times by 5 tests: selected = !d->currentSelection.contains(index);Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 185 |
| 1415 | else if (d->currentCommand & Toggle)| TRUE | evaluated 75 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | evaluated 8949 times by 21 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
| 75-8949 |
| 1416 | selected ^= d->currentSelection.contains(index);executed 75 times by 2 tests: selected ^= d->currentSelection.contains(index);Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 75 |
| 1417 | else if ((d->currentCommand & Select) && !selected)| TRUE | evaluated 8702 times by 21 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 157 times by 6 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
|
| 157-8702 |
| 1418 | selected = d->currentSelection.contains(index);executed 8702 times by 21 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 8702 |
| 1419 | }executed 9209 times by 21 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 9209 |
| 1420 | | - |
| 1421 | if (selected) {| TRUE | evaluated 1826 times by 21 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 26766 times by 24 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
- tst_languageChange
|
| 1826-26766 |
| 1422 | Qt::ItemFlags flags = d->model->flags(index); | - |
| 1423 | return (flags & Qt::ItemIsSelectable);executed 1826 times by 21 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_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 1826 |
| 1424 | } | - |
| 1425 | | - |
| 1426 | return false;executed 26766 times by 24 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
- tst_languageChange
| 26766 |
| 1427 | } | - |
| 1428 | | - |
| 1429 | | - |
| 1430 | | - |
| 1431 | | - |
| 1432 | | - |
| 1433 | | - |
| 1434 | | - |
| 1435 | | - |
| 1436 | | - |
| 1437 | bool QItemSelectionModel::isRowSelected(int row, const QModelIndex &parent) const | - |
| 1438 | { | - |
| 1439 | Q_D(const QItemSelectionModel); | - |
| 1440 | if (!d->model)| TRUE | never evaluated | | FALSE | evaluated 1940 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-1940 |
| 1441 | return false; never executed: return false; | 0 |
| 1442 | if (parent.isValid() && d->model != parent.model())| TRUE | evaluated 849 times by 4 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTreeView
| | FALSE | evaluated 1091 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| TRUE | never evaluated | | FALSE | evaluated 849 times by 4 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTreeView
|
| 0-1091 |
| 1443 | return false; never executed: return false; | 0 |
| 1444 | | - |
| 1445 | | - |
| 1446 | if (d->currentCommand & Deselect && d->currentSelection.count()) {| TRUE | evaluated 81 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| | FALSE | never evaluated |
| 0-81 |
| 1447 | for (int i=0; i<d->currentSelection.count(); ++i) {| TRUE | evaluated 81 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 60 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
|
| 60-81 |
| 1448 | if (d->currentSelection.at(i).parent() == parent &&| TRUE | evaluated 81 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| | FALSE | never evaluated |
| 0-81 |
| 1449 | row >= d->currentSelection.at(i).top() &&| TRUE | evaluated 49 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 32 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
|
| 32-49 |
| 1450 | row <= d->currentSelection.at(i).bottom())| TRUE | evaluated 21 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 28 times by 1 test |
| 21-28 |
| 1451 | return false;executed 21 times by 3 tests: return false;Executed by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| 21 |
| 1452 | }executed 60 times by 2 tests: end of blockExecuted by:- tst_QItemView
- tst_QTableView
| 60 |
| 1453 | }executed 60 times by 2 tests: end of blockExecuted by:- tst_QItemView
- tst_QTableView
| 60 |
| 1454 | | - |
| 1455 | | - |
| 1456 | if (d->currentCommand & Toggle && d->currentSelection.count()) {| TRUE | evaluated 22 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| | FALSE | never evaluated |
| 0-22 |
| 1457 | for (int i=0; i<d->currentSelection.count(); ++i)| TRUE | evaluated 22 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
|
| 22 |
| 1458 | if (d->currentSelection.at(i).top() <= row &&| TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| | FALSE | evaluated 10 times by 1 test |
| 10-12 |
| 1459 | d->currentSelection.at(i).bottom() >= row)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QItemSelectionModel
|
| 2-10 |
| 1460 | for (int j=0; j<d->ranges.count(); ++j)| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 1461 | if (d->ranges.at(j).top() <= row && d->ranges.at(j).bottom() >= row| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1462 | && d->currentSelection.at(i).intersected(d->ranges.at(j)).isValid())| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1463 | return false; never executed: return false; | 0 |
| 1464 | }executed 22 times by 3 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| 22 |
| 1465 | | - |
| 1466 | QList<QItemSelectionRange>::const_iterator it; | - |
| 1467 | QList<QItemSelectionRange> joined = d->ranges; | - |
| 1468 | if (d->currentSelection.count())| TRUE | evaluated 1237 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 682 times by 5 testsEvaluated by:- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemView
- tst_QTreeWidget
|
| 682-1237 |
| 1469 | joined += d->currentSelection;executed 1237 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
| 1237 |
| 1470 | int colCount = d->model->columnCount(parent); | - |
| 1471 | for (int column = 0; column < colCount; ++column) {| TRUE | evaluated 2117 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 1027 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 1027-2117 |
| 1472 | for (it = joined.constBegin(); it != joined.constEnd(); ++it) {| TRUE | evaluated 5428 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 892 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
| 892-5428 |
| 1473 | if ((*it).contains(row, column, parent)) {| TRUE | evaluated 1235 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 4193 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
|
| 1235-4193 |
| 1474 | bool selectable = false; | - |
| 1475 | for (int i = column; !selectable && i <= (*it).right(); ++i) {| TRUE | evaluated 1246 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 1225 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
|
| TRUE | evaluated 1236 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-1246 |
| 1476 | Qt::ItemFlags flags = d->model->index(row, i, parent).flags(); | - |
| 1477 | selectable = flags & Qt::ItemIsSelectable; | - |
| 1478 | }executed 1236 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
| 1236 |
| 1479 | if (selectable){| TRUE | evaluated 1225 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-1225 |
| 1480 | column = qMax(column, (*it).right()); | - |
| 1481 | break;executed 1225 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
| 1225 |
| 1482 | } | - |
| 1483 | }executed 10 times by 1 test: end of block | 10 |
| 1484 | }executed 4203 times by 7 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
| 4203 |
| 1485 | if (it == joined.constEnd())| TRUE | evaluated 892 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 1225 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
|
| 892-1225 |
| 1486 | return false;executed 892 times by 5 tests: return false;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 892 |
| 1487 | }executed 1225 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
| 1225 |
| 1488 | return colCount > 0; executed 1027 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
| 1027 |
| 1489 | } | - |
| 1490 | | - |
| 1491 | | - |
| 1492 | | - |
| 1493 | | - |
| 1494 | | - |
| 1495 | | - |
| 1496 | | - |
| 1497 | | - |
| 1498 | | - |
| 1499 | bool QItemSelectionModel::isColumnSelected(int column, const QModelIndex &parent) const | - |
| 1500 | { | - |
| 1501 | Q_D(const QItemSelectionModel); | - |
| 1502 | if (!d->model)| TRUE | never evaluated | | FALSE | evaluated 1030 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-1030 |
| 1503 | return false; never executed: return false; | 0 |
| 1504 | if (parent.isValid() && d->model != parent.model())| TRUE | evaluated 60 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
| | FALSE | evaluated 970 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| TRUE | never evaluated | | FALSE | evaluated 60 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
|
| 0-970 |
| 1505 | return false; never executed: return false; | 0 |
| 1506 | | - |
| 1507 | | - |
| 1508 | if (d->currentCommand & Deselect && d->currentSelection.count()) {| TRUE | evaluated 46 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| | FALSE | never evaluated |
| 0-46 |
| 1509 | for (int i = 0; i < d->currentSelection.count(); ++i) {| TRUE | evaluated 46 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 27 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
|
| 27-46 |
| 1510 | if (d->currentSelection.at(i).parent() == parent &&| TRUE | evaluated 46 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| | FALSE | never evaluated |
| 0-46 |
| 1511 | column >= d->currentSelection.at(i).left() &&| TRUE | evaluated 34 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
|
| 12-34 |
| 1512 | column <= d->currentSelection.at(i).right())| TRUE | evaluated 19 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 15 times by 1 test |
| 15-19 |
| 1513 | return false;executed 19 times by 2 tests: return false;Executed by:- tst_QItemView
- tst_QTableView
| 19 |
| 1514 | }executed 27 times by 2 tests: end of blockExecuted by:- tst_QItemView
- tst_QTableView
| 27 |
| 1515 | }executed 27 times by 2 tests: end of blockExecuted by:- tst_QItemView
- tst_QTableView
| 27 |
| 1516 | | - |
| 1517 | | - |
| 1518 | if (d->currentCommand & Toggle && d->currentSelection.count()) {| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1519 | for (int i = 0; i < d->currentSelection.count(); ++i) {| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 6 times by 1 test |
| 6 |
| 1520 | if (d->currentSelection.at(i).left() <= column &&| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1521 | d->currentSelection.at(i).right() >= column) {| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 2-4 |
| 1522 | for (int j = 0; j < d->ranges.count(); ++j) {| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 1523 | if (d->ranges.at(j).left() <= column && d->ranges.at(j).right() >= column| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1524 | && d->currentSelection.at(i).intersected(d->ranges.at(j)).isValid()) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1525 | return false; never executed: return false; | 0 |
| 1526 | } | - |
| 1527 | } never executed: end of block | 0 |
| 1528 | }executed 2 times by 1 test: end of block | 2 |
| 1529 | }executed 6 times by 1 test: end of block | 6 |
| 1530 | }executed 6 times by 1 test: end of block | 6 |
| 1531 | | - |
| 1532 | QList<QItemSelectionRange>::const_iterator it; | - |
| 1533 | QList<QItemSelectionRange> joined = d->ranges; | - |
| 1534 | if (d->currentSelection.count())| TRUE | evaluated 825 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 186 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemView
|
| 186-825 |
| 1535 | joined += d->currentSelection;executed 825 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
| 825 |
| 1536 | int rowCount = d->model->rowCount(parent); | - |
| 1537 | for (int row = 0; row < rowCount; ++row) {| TRUE | evaluated 1093 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
|
| 130-1093 |
| 1538 | for (it = joined.constBegin(); it != joined.constEnd(); ++it) {| TRUE | evaluated 1762 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 881 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 881-1762 |
| 1539 | if ((*it).contains(row, column, parent)) {| TRUE | evaluated 216 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 1546 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 216-1546 |
| 1540 | Qt::ItemFlags flags = d->model->index(row, column, parent).flags(); | - |
| 1541 | if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled)) { | - |
| 1542 | row = qMax(row, (*it).bottom()); | - |
| 1543 | break;executed 212 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
| 212 |
| 1544 | } | - |
| 1545 | }executed 4 times by 1 test: end of block | 4 |
| 1546 | }executed 1550 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
| 1550 |
| 1547 | if (it == joined.constEnd())| TRUE | evaluated 881 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 212 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 212-881 |
| 1548 | return false;executed 881 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
| 881 |
| 1549 | }executed 212 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
| 212 |
| 1550 | return 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 |
| 1551 | } | - |
| 1552 | | - |
| 1553 | | - |
| 1554 | | - |
| 1555 | | - |
| 1556 | | - |
| 1557 | bool QItemSelectionModel::rowIntersectsSelection(int row, const QModelIndex &parent) const | - |
| 1558 | { | - |
| 1559 | Q_D(const QItemSelectionModel); | - |
| 1560 | if (!d->model)| TRUE | never evaluated | | FALSE | evaluated 1349 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
| 0-1349 |
| 1561 | return false; never executed: return false; | 0 |
| 1562 | if (parent.isValid() && d->model != parent.model())| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 1346 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-1346 |
| 1563 | return false; never executed: return false; | 0 |
| 1564 | | - |
| 1565 | QItemSelection sel = d->ranges; | - |
| 1566 | sel.merge(d->currentSelection, d->currentCommand); | - |
| 1567 | for (int i = 0; i < sel.count(); ++i) {| TRUE | evaluated 976 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 1075 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
| 976-1075 |
| 1568 | QItemSelectionRange range = sel.at(i); | - |
| 1569 | if (range.parent() != parent)| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 973 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
| 3-973 |
| 1570 | return false;executed 3 times by 1 test: return false; | 3 |
| 1571 | int top = range.top(); | - |
| 1572 | int bottom = range.bottom(); | - |
| 1573 | int left = range.left(); | - |
| 1574 | int right = range.right(); | - |
| 1575 | if (top <= row && bottom >= row) {| TRUE | evaluated 673 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 300 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
| TRUE | evaluated 301 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 372 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
| 300-673 |
| 1576 | for (int j = left; j <= right; j++) {| TRUE | evaluated 317 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 30 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QItemView
|
| 30-317 |
| 1577 | const Qt::ItemFlags flags = d->model->index(row, j, parent).flags(); | - |
| 1578 | if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled)) | - |
| 1579 | return true;executed 271 times by 5 tests: return true;Executed by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 271 |
| 1580 | }executed 46 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QItemView
| 46 |
| 1581 | }executed 30 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QItemView
| 30 |
| 1582 | }executed 702 times by 4 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 702 |
| 1583 | | - |
| 1584 | return false;executed 1075 times by 8 tests: return false;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
| 1075 |
| 1585 | } | - |
| 1586 | | - |
| 1587 | | - |
| 1588 | | - |
| 1589 | | - |
| 1590 | | - |
| 1591 | bool QItemSelectionModel::columnIntersectsSelection(int column, const QModelIndex &parent) const | - |
| 1592 | { | - |
| 1593 | Q_D(const QItemSelectionModel); | - |
| 1594 | if (!d->model)| TRUE | never evaluated | | FALSE | evaluated 682 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
| 0-682 |
| 1595 | return false; never executed: return false; | 0 |
| 1596 | if (parent.isValid() && d->model != parent.model())| TRUE | never evaluated | | FALSE | evaluated 682 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
| TRUE | never evaluated | | FALSE | never evaluated |
| 0-682 |
| 1597 | return false; never executed: return false; | 0 |
| 1598 | | - |
| 1599 | QItemSelection sel = d->ranges; | - |
| 1600 | sel.merge(d->currentSelection, d->currentCommand); | - |
| 1601 | for (int i = 0; i < sel.count(); ++i) {| TRUE | evaluated 396 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 455 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
| 396-455 |
| 1602 | int left = sel.at(i).left(); | - |
| 1603 | int right = sel.at(i).right(); | - |
| 1604 | int top = sel.at(i).top(); | - |
| 1605 | int bottom = sel.at(i).bottom(); | - |
| 1606 | if (left <= column && right >= column) {| TRUE | evaluated 337 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 59 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
| TRUE | evaluated 233 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 104 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
| 59-337 |
| 1607 | for (int j = top; j <= bottom; j++) {| TRUE | evaluated 245 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QItemView
|
| 6-245 |
| 1608 | const Qt::ItemFlags flags = d->model->index(j, column, parent).flags(); | - |
| 1609 | if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled)) | - |
| 1610 | return true;executed 227 times by 5 tests: return true;Executed by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 227 |
| 1611 | }executed 18 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QItemView
| 18 |
| 1612 | }executed 6 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QItemView
| 6 |
| 1613 | }executed 169 times by 4 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 169 |
| 1614 | | - |
| 1615 | return false;executed 455 times by 8 tests: return false;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
| 455 |
| 1616 | } | - |
| 1617 | | - |
| 1618 | | - |
| 1619 | | - |
| 1620 | | - |
| 1621 | | - |
| 1622 | | - |
| 1623 | | - |
| 1624 | bool QItemSelectionModel::hasSelection() const | - |
| 1625 | { | - |
| 1626 | Q_D(const QItemSelectionModel); | - |
| 1627 | if (d->currentCommand & (Toggle | Deselect)) {| TRUE | evaluated 64 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
| | FALSE | evaluated 1121 times by 17 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_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
| 64-1121 |
| 1628 | QItemSelection sel = d->ranges; | - |
| 1629 | sel.merge(d->currentSelection, d->currentCommand); | - |
| 1630 | return !sel.isEmpty();executed 64 times by 6 tests: return !sel.isEmpty();Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
| 64 |
| 1631 | } else { | - |
| 1632 | return !(d->ranges.isEmpty() && d->currentSelection.isEmpty());executed 1121 times by 17 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_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 1121 |
| 1633 | } | - |
| 1634 | } | - |
| 1635 | | - |
| 1636 | | - |
| 1637 | | - |
| 1638 | | - |
| 1639 | | - |
| 1640 | QModelIndexList QItemSelectionModel::selectedIndexes() const | - |
| 1641 | { | - |
| 1642 | Q_D(const QItemSelectionModel); | - |
| 1643 | QItemSelection selected = d->ranges; | - |
| 1644 | selected.merge(d->currentSelection, d->currentCommand); | - |
| 1645 | return 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 |
| 1646 | } | - |
| 1647 | | - |
| 1648 | | - |
| 1649 | | - |
| 1650 | | - |
| 1651 | | - |
| 1652 | | - |
| 1653 | | - |
| 1654 | | - |
| 1655 | QModelIndexList QItemSelectionModel::selectedRows(int column) const | - |
| 1656 | { | - |
| 1657 | QModelIndexList indexes; | - |
| 1658 | | - |
| 1659 | | - |
| 1660 | QSet< QPair<QModelIndex, int> > rowsSeen; | - |
| 1661 | | - |
| 1662 | const QItemSelection ranges = selection(); | - |
| 1663 | for (int i = 0; i < ranges.count(); ++i) {| TRUE | evaluated 866 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 1145 times by 9 testsEvaluated by:- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
| 866-1145 |
| 1664 | const QItemSelectionRange &range = ranges.at(i); | - |
| 1665 | QModelIndex parent = range.parent(); | - |
| 1666 | for (int row = range.top(); row <= range.bottom(); row++) {| TRUE | evaluated 911 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 866 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 866-911 |
| 1667 | QPair<QModelIndex, int> rowDef = qMakePair(parent, row); | - |
| 1668 | if (!rowsSeen.contains(rowDef)) {| TRUE | evaluated 911 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | never evaluated |
| 0-911 |
| 1669 | rowsSeen << rowDef; | - |
| 1670 | if (isRowSelected(row, parent)) {| TRUE | evaluated 901 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 10 times by 1 test |
| 10-901 |
| 1671 | indexes.append(model()->index(row, column, parent)); | - |
| 1672 | }executed 901 times by 6 tests: end of blockExecuted by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 901 |
| 1673 | }executed 911 times by 6 tests: end of blockExecuted by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 911 |
| 1674 | }executed 911 times by 6 tests: end of blockExecuted by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 911 |
| 1675 | }executed 866 times by 6 tests: end of blockExecuted by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 866 |
| 1676 | | - |
| 1677 | return indexes;executed 1145 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
| 1145 |
| 1678 | } | - |
| 1679 | | - |
| 1680 | | - |
| 1681 | | - |
| 1682 | | - |
| 1683 | | - |
| 1684 | | - |
| 1685 | | - |
| 1686 | | - |
| 1687 | QModelIndexList QItemSelectionModel::selectedColumns(int row) const | - |
| 1688 | { | - |
| 1689 | QModelIndexList indexes; | - |
| 1690 | | - |
| 1691 | | - |
| 1692 | QSet< QPair<QModelIndex, int> > columnsSeen; | - |
| 1693 | | - |
| 1694 | const QItemSelection ranges = selection(); | - |
| 1695 | for (int i = 0; i < ranges.count(); ++i) {| 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
|
| 11-22 |
| 1696 | const QItemSelectionRange &range = ranges.at(i); | - |
| 1697 | QModelIndex parent = range.parent(); | - |
| 1698 | for (int column = range.left(); column <= range.right(); column++) {| TRUE | evaluated 59 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QTableView
| | FALSE | evaluated 22 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QTableView
|
| 22-59 |
| 1699 | QPair<QModelIndex, int> columnDef = qMakePair(parent, column); | - |
| 1700 | if (!columnsSeen.contains(columnDef)) {| TRUE | evaluated 59 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QTableView
| | FALSE | never evaluated |
| 0-59 |
| 1701 | columnsSeen << columnDef; | - |
| 1702 | 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 |
| 1703 | indexes.append(model()->index(row, column, parent)); | - |
| 1704 | }executed 29 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QTableView
| 29 |
| 1705 | }executed 59 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QTableView
| 59 |
| 1706 | }executed 59 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QTableView
| 59 |
| 1707 | }executed 22 times by 2 tests: end of blockExecuted by:- tst_QItemSelectionModel
- tst_QTableView
| 22 |
| 1708 | | - |
| 1709 | return indexes;executed 11 times by 3 tests: return indexes;Executed by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
| 11 |
| 1710 | } | - |
| 1711 | | - |
| 1712 | | - |
| 1713 | | - |
| 1714 | | - |
| 1715 | const QItemSelection QItemSelectionModel::selection() const | - |
| 1716 | { | - |
| 1717 | Q_D(const QItemSelectionModel); | - |
| 1718 | QItemSelection selected = d->ranges; | - |
| 1719 | selected.merge(d->currentSelection, d->currentCommand); | - |
| 1720 | | - |
| 1721 | | - |
| 1722 | auto isNotValid = [](const QItemSelectionRange& range) { | - |
| 1723 | return !range.isValid();executed 1284 times by 12 tests: return !range.isValid();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
| 1284 |
| 1724 | }; | - |
| 1725 | | - |
| 1726 | selected.erase(std::remove_if(selected.begin(), selected.end(), | - |
| 1727 | isNotValid), | - |
| 1728 | selected.end()); | - |
| 1729 | return selected;executed 11454 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
- ...
| 11454 |
| 1730 | } | - |
| 1731 | | - |
| 1732 | | - |
| 1733 | | - |
| 1734 | | - |
| 1735 | | - |
| 1736 | | - |
| 1737 | | - |
| 1738 | | - |
| 1739 | | - |
| 1740 | | - |
| 1741 | | - |
| 1742 | | - |
| 1743 | | - |
| 1744 | | - |
| 1745 | | - |
| 1746 | | - |
| 1747 | | - |
| 1748 | | - |
| 1749 | | - |
| 1750 | | - |
| 1751 | | - |
| 1752 | | - |
| 1753 | | - |
| 1754 | | - |
| 1755 | | - |
| 1756 | | - |
| 1757 | | - |
| 1758 | | - |
| 1759 | | - |
| 1760 | | - |
| 1761 | | - |
| 1762 | | - |
| 1763 | | - |
| 1764 | | - |
| 1765 | | - |
| 1766 | | - |
| 1767 | QAbstractItemModel *QItemSelectionModel::model() | - |
| 1768 | { | - |
| 1769 | return d_func()->model;executed 12802 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
- ...
| 12802 |
| 1770 | } | - |
| 1771 | | - |
| 1772 | | - |
| 1773 | | - |
| 1774 | | - |
| 1775 | const QAbstractItemModel *QItemSelectionModel::model() const | - |
| 1776 | { | - |
| 1777 | return d_func()->model;executed 930 times by 6 tests: return d_func()->model;Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 930 |
| 1778 | } | - |
| 1779 | | - |
| 1780 | | - |
| 1781 | | - |
| 1782 | | - |
| 1783 | | - |
| 1784 | | - |
| 1785 | | - |
| 1786 | | - |
| 1787 | void QItemSelectionModel::setModel(QAbstractItemModel *model) | - |
| 1788 | { | - |
| 1789 | Q_D(QItemSelectionModel); | - |
| 1790 | if (d->model == model)| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 1791 | return; never executed: return; | 0 |
| 1792 | | - |
| 1793 | d->initModel(model); | - |
| 1794 | emit modelChanged(model); | - |
| 1795 | }executed 2 times by 1 test: end of block | 2 |
| 1796 | | - |
| 1797 | | - |
| 1798 | | - |
| 1799 | | - |
| 1800 | | - |
| 1801 | void QItemSelectionModel::emitSelectionChanged(const QItemSelection &newSelection, | - |
| 1802 | const QItemSelection &oldSelection) | - |
| 1803 | { | - |
| 1804 | | - |
| 1805 | if ((oldSelection.isEmpty() && newSelection.isEmpty()) ||| TRUE | evaluated 2621 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 4679 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
- ...
|
| TRUE | evaluated 636 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 1985 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
- ...
|
| 636-4679 |
| 1806 | oldSelection == newSelection)| TRUE | evaluated 1043 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 5621 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
- ...
|
| 1043-5621 |
| 1807 | return;executed 1679 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
- ...
| 1679 |
| 1808 | | - |
| 1809 | | - |
| 1810 | if (oldSelection.isEmpty() || newSelection.isEmpty()) {| TRUE | evaluated 1985 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 3636 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
|
| 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 2388 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-3636 |
| 1811 | emit selectionChanged(newSelection, oldSelection); | - |
| 1812 | return;executed 3233 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
- ...
| 3233 |
| 1813 | } | - |
| 1814 | | - |
| 1815 | QItemSelection deselected = oldSelection; | - |
| 1816 | QItemSelection selected = newSelection; | - |
| 1817 | | - |
| 1818 | | - |
| 1819 | bool advance; | - |
| 1820 | for (int o = 0; o < deselected.count(); ++o) {| TRUE | evaluated 2550 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 2388 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
|
| 2388-2550 |
| 1821 | advance = true; | - |
| 1822 | for (int s = 0; s < selected.count() && o < deselected.count();) {| TRUE | evaluated 3478 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 2338 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
|
| TRUE | evaluated 3266 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 212 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
|
| 212-3478 |
| 1823 | if (deselected.at(o) == selected.at(s)) {| TRUE | evaluated 717 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 2549 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
|
| 717-2549 |
| 1824 | deselected.removeAt(o); | - |
| 1825 | selected.removeAt(s); | - |
| 1826 | advance = false; | - |
| 1827 | } else {executed 717 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
| 717 |
| 1828 | ++s; | - |
| 1829 | }executed 2549 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
| 2549 |
| 1830 | } | - |
| 1831 | if (advance)| TRUE | evaluated 2264 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 286 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
|
| 286-2264 |
| 1832 | ++o;executed 2264 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
| 2264 |
| 1833 | }executed 2550 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
| 2550 |
| 1834 | | - |
| 1835 | | - |
| 1836 | QItemSelection intersections; | - |
| 1837 | for (int o = 0; o < deselected.count(); ++o) {| TRUE | evaluated 2458 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 2388 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
|
| 2388-2458 |
| 1838 | for (int s = 0; s < selected.count(); ++s) {| TRUE | evaluated 2680 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 2458 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
|
| 2458-2680 |
| 1839 | if (deselected.at(o).intersects(selected.at(s)))| TRUE | evaluated 252 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 2428 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
|
| 252-2428 |
| 1840 | intersections.append(deselected.at(o).intersected(selected.at(s)));executed 252 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
| 252 |
| 1841 | }executed 2680 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
| 2680 |
| 1842 | }executed 2458 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
| 2458 |
| 1843 | | - |
| 1844 | | - |
| 1845 | for (int i = 0; i < intersections.count(); ++i) {| TRUE | evaluated 252 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 2388 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
|
| 252-2388 |
| 1846 | | - |
| 1847 | for (int o = 0; o < deselected.count();) {| TRUE | evaluated 655 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 252 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
|
| 252-655 |
| 1848 | if (deselected.at(o).intersects(intersections.at(i))) {| TRUE | evaluated 252 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 403 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
|
| 252-403 |
| 1849 | QItemSelection::split(deselected.at(o), intersections.at(i), &deselected); | - |
| 1850 | deselected.removeAt(o); | - |
| 1851 | } else {executed 252 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
| 252 |
| 1852 | ++o; | - |
| 1853 | }executed 403 times by 8 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
| 403 |
| 1854 | } | - |
| 1855 | | - |
| 1856 | for (int s = 0; s < selected.count();) {| TRUE | evaluated 639 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 252 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
|
| 252-639 |
| 1857 | if (selected.at(s).intersects(intersections.at(i))) {| TRUE | evaluated 262 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 377 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
|
| 262-377 |
| 1858 | QItemSelection::split(selected.at(s), intersections.at(i), &selected); | - |
| 1859 | selected.removeAt(s); | - |
| 1860 | } else {executed 262 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
| 262 |
| 1861 | ++s; | - |
| 1862 | }executed 377 times by 7 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
| 377 |
| 1863 | } | - |
| 1864 | }executed 252 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
| 252 |
| 1865 | | - |
| 1866 | if (!selected.isEmpty() || !deselected.isEmpty())| TRUE | evaluated 2293 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 95 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
|
| TRUE | evaluated 85 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-2293 |
| 1867 | emit selectionChanged(selected, deselected);executed 2378 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
| 2378 |
| 1868 | }executed 2388 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
| 2388 |
| 1869 | | - |
| 1870 | #ifndef QT_NO_DEBUG_STREAM | - |
| 1871 | QDebug operator<<(QDebug dbg, const QItemSelectionRange &range) | - |
| 1872 | { | - |
| 1873 | QDebugStateSaver saver(dbg); | - |
| 1874 | dbg.nospace() << "QItemSelectionRange(" << range.topLeft() | - |
| 1875 | << ',' << range.bottomRight() << ')'; | - |
| 1876 | return dbg; never executed: return dbg; | 0 |
| 1877 | } | - |
| 1878 | #endif | - |
| 1879 | | - |
| 1880 | QT_END_NAMESPACE | - |
| 1881 | | - |
| 1882 | #include "moc_qitemselectionmodel.cpp" | - |
| 1883 | | - |
| 1884 | #endif // QT_NO_ITEMVIEWS | - |
| | |