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 | #include "qitemselectionmodel.h" | - |
35 | #include <private/qitemselectionmodel_p.h> | - |
36 | #include <qdebug.h> | - |
37 | | - |
38 | #include <algorithm> | - |
39 | | - |
40 | #ifndef QT_NO_ITEMVIEWS | - |
41 | | - |
42 | QT_BEGIN_NAMESPACE | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
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 | bool QItemSelectionRange::intersects(const QItemSelectionRange &other) const | - |
215 | { | - |
216 | return (isValid() && other.isValid()executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right()))); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
TRUE | evaluated 11720 times by 21 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | never evaluated |
TRUE | evaluated 11720 times by 21 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | never evaluated |
| 0-11720 |
217 | && parent() == other.parent()executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right()))); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
TRUE | evaluated 10020 times by 21 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 1700 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 1700-11720 |
218 | && model() == other.model()executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right()))); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
TRUE | evaluated 10019 times by 21 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 1 time by 1 test |
| 1-11720 |
219 | && ((top() <= other.top() && bottom() >= other.top())executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right()))); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
TRUE | evaluated 7157 times by 19 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 2862 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
TRUE | evaluated 4030 times by 13 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QDateTimeEdit
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 3127 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 2862-11720 |
220 | || (top() >= other.top() && top() <= other.bottom()))executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right()))); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
TRUE | evaluated 2862 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 3127 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
TRUE | evaluated 299 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
| FALSE | evaluated 2563 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 299-11720 |
221 | && ((left() <= other.left() && right() >= other.left())executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right()))); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
TRUE | evaluated 3536 times by 13 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QDateTimeEdit
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 793 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
|
TRUE | evaluated 2733 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 803 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
|
| 793-11720 |
222 | || (left() >= other.left() && left() <= other.right())));executed 11720 times by 21 tests: return (isValid() && other.isValid() && parent() == other.parent() && model() == other.model() && ((top() <= other.top() && bottom() >= other.top()) || (top() >= other.top() && top() <= other.bottom())) && ((left() <= other.left() && right() >= other.left()) || (left() >= other.left() && left() <= other.right()))); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
TRUE | evaluated 793 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
| FALSE | evaluated 803 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
|
TRUE | evaluated 140 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 653 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
|
| 140-11720 |
223 | } | - |
224 | | - |
225 | | - |
226 | | - |
227 | | - |
228 | | - |
229 | | - |
230 | | - |
231 | | - |
232 | | - |
233 | | - |
234 | | - |
235 | | - |
236 | | - |
237 | | - |
238 | | - |
239 | | - |
240 | QItemSelectionRange QItemSelectionRange::intersected(const QItemSelectionRange &other) const | - |
241 | { | - |
242 | if (model() == other.model() && parent() == other.parent()) {TRUE | evaluated 1264 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | never evaluated |
TRUE | evaluated 1264 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | never evaluated |
| 0-1264 |
243 | QModelIndex topLeft = model()->index(qMax(top(), other.top()), | - |
244 | qMax(left(), other.left()), | - |
245 | other.parent()); | - |
246 | QModelIndex bottomRight = model()->index(qMin(bottom(), other.bottom()), | - |
247 | qMin(right(), other.right()), | - |
248 | other.parent()); | - |
249 | return QItemSelectionRange(topLeft, bottomRight);executed 1264 times by 11 tests: return QItemSelectionRange(topLeft, bottomRight); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 1264 |
250 | } | - |
251 | return QItemSelectionRange(); never executed: return QItemSelectionRange(); | 0 |
252 | } | - |
253 | | - |
254 | | - |
255 | | - |
256 | | - |
257 | | - |
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 | static void rowLengthsFromRange(const QItemSelectionRange &range, QVector<QPair<QPersistentModelIndex, uint> > &result) | - |
290 | { | - |
291 | 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 |
292 | const QModelIndex topLeft = range.topLeft(); | - |
293 | const int bottom = range.bottom(); | - |
294 | const uint width = range.width(); | - |
295 | const int column = topLeft.column(); | - |
296 | 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 |
297 | | - |
298 | | - |
299 | | - |
300 | result.push_back(qMakePair(QPersistentModelIndex(topLeft.sibling(row, column)), width)); | - |
301 | }executed 23 times by 2 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 23 |
302 | }executed 15 times by 2 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 15 |
303 | }executed 15 times by 2 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 15 |
304 | | - |
305 | template<typename ModelIndexContainer> | - |
306 | static void indexesFromRange(const QItemSelectionRange &range, ModelIndexContainer &result) | - |
307 | { | - |
308 | if (range.isValid() && range.model()) {TRUE | evaluated 1038 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | never evaluated |
TRUE | evaluated 1038 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | never evaluated |
| 0-1038 |
309 | const QModelIndex topLeft = range.topLeft(); | - |
310 | const int bottom = range.bottom(); | - |
311 | const int right = range.right(); | - |
312 | for (int row = topLeft.row(); row <= bottom; ++row) {TRUE | evaluated 2168 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 1038 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 1038-2168 |
313 | const QModelIndex columnLeader = topLeft.sibling(row, topLeft.column()); | - |
314 | for (int column = topLeft.column(); column <= right; ++column) {TRUE | evaluated 5893 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 2168 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 2168-5893 |
315 | QModelIndex index = columnLeader.sibling(row, column); | - |
316 | Qt::ItemFlags flags = range.model()->flags(index); | - |
317 | if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled)) | - |
318 | result.push_back(index);executed 5880 times by 18 tests: result.push_back(index); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 5880 |
319 | }executed 5893 times by 18 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 5893 |
320 | }executed 2168 times by 18 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 2168 |
321 | }executed 1038 times by 18 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 1038 |
322 | }executed 1038 times by 18 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 1038 |
323 | | - |
324 | | - |
325 | | - |
326 | | - |
327 | | - |
328 | | - |
329 | bool QItemSelectionRange::isEmpty() const | - |
330 | { | - |
331 | if (!isValid() || !model())TRUE | never evaluated | FALSE | evaluated 424 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
|
TRUE | never evaluated | FALSE | evaluated 424 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
|
| 0-424 |
332 | return true; never executed: return true; | 0 |
333 | | - |
334 | for (int column = left(); column <= right(); ++column) {TRUE | evaluated 424 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
| FALSE | never evaluated |
| 0-424 |
335 | for (int row = top(); row <= bottom(); ++row) {TRUE | evaluated 424 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
| FALSE | never evaluated |
| 0-424 |
336 | QModelIndex index = model()->index(row, column, parent()); | - |
337 | Qt::ItemFlags flags = model()->flags(index); | - |
338 | if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled)) | - |
339 | return false;executed 424 times by 3 tests: return false; Executed by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
| 424 |
340 | } never executed: end of block | 0 |
341 | } never executed: end of block | 0 |
342 | return true; never executed: return true; | 0 |
343 | } | - |
344 | | - |
345 | | - |
346 | | - |
347 | | - |
348 | | - |
349 | QModelIndexList QItemSelectionRange::indexes() const | - |
350 | { | - |
351 | QModelIndexList result; | - |
352 | indexesFromRange(*this, result); | - |
353 | return result; never executed: return result; | 0 |
354 | } | - |
355 | | - |
356 | | - |
357 | | - |
358 | | - |
359 | | - |
360 | | - |
361 | | - |
362 | | - |
363 | | - |
364 | | - |
365 | | - |
366 | | - |
367 | | - |
368 | | - |
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 | QItemSelection::QItemSelection(const QModelIndex &topLeft, const QModelIndex &bottomRight) | - |
410 | { | - |
411 | select(topLeft, bottomRight); | - |
412 | }executed 4844 times by 30 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- ...
| 4844 |
413 | | - |
414 | | - |
415 | | - |
416 | | - |
417 | | - |
418 | | - |
419 | | - |
420 | | - |
421 | void QItemSelection::select(const QModelIndex &topLeft, const QModelIndex &bottomRight) | - |
422 | { | - |
423 | if (!topLeft.isValid() || !bottomRight.isValid())TRUE | evaluated 274 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QHeaderView
- tst_QItemModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 5300 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5299 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
| 1-5300 |
424 | return;executed 275 times by 18 tests: return; Executed by:- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 275 |
425 | | - |
426 | if ((topLeft.model() != bottomRight.model())TRUE | never evaluated | FALSE | evaluated 5299 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
| 0-5299 |
427 | || topLeft.parent() != bottomRight.parent()) {TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5298 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
| 1-5298 |
428 | qWarning("Can't select indexes from different model or with different parents"); | - |
429 | return;executed 1 time by 1 test: return; | 1 |
430 | } | - |
431 | if (topLeft.row() > bottomRight.row() || topLeft.column() > bottomRight.column()) {TRUE | never evaluated | FALSE | evaluated 5298 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
TRUE | never evaluated | FALSE | evaluated 5298 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
| 0-5298 |
432 | int top = qMin(topLeft.row(), bottomRight.row()); | - |
433 | int bottom = qMax(topLeft.row(), bottomRight.row()); | - |
434 | int left = qMin(topLeft.column(), bottomRight.column()); | - |
435 | int right = qMax(topLeft.column(), bottomRight.column()); | - |
436 | QModelIndex tl = topLeft.sibling(top, left); | - |
437 | QModelIndex br = bottomRight.sibling(bottom, right); | - |
438 | append(QItemSelectionRange(tl, br)); | - |
439 | return; never executed: return; | 0 |
440 | } | - |
441 | append(QItemSelectionRange(topLeft, bottomRight)); | - |
442 | }executed 5298 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
| 5298 |
443 | | - |
444 | | - |
445 | | - |
446 | | - |
447 | | - |
448 | | - |
449 | bool QItemSelection::contains(const QModelIndex &index) const | - |
450 | { | - |
451 | if (index.flags() & Qt::ItemIsSelectable) {TRUE | evaluated 8400 times by 20 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 7 times by 1 test |
| 7-8400 |
452 | QList<QItemSelectionRange>::const_iterator it = begin(); | - |
453 | for (; it != end(); ++it)TRUE | evaluated 10592 times by 20 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 6835 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 6835-10592 |
454 | if ((*it).contains(index))TRUE | evaluated 1565 times by 20 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 9027 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 1565-9027 |
455 | return true;executed 1565 times by 20 tests: return true; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 1565 |
456 | }executed 6835 times by 18 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 6835 |
457 | return false;executed 6842 times by 18 tests: return false; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 6842 |
458 | } | - |
459 | | - |
460 | | - |
461 | | - |
462 | | - |
463 | | - |
464 | QModelIndexList QItemSelection::indexes() const | - |
465 | { | - |
466 | QModelIndexList result; | - |
467 | QList<QItemSelectionRange>::const_iterator it = begin(); | - |
468 | for (; it != end(); ++it)TRUE | evaluated 954 times by 16 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 1153 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 954-1153 |
469 | indexesFromRange(*it, result);executed 954 times by 16 tests: indexesFromRange(*it, result); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 954 |
470 | return result;executed 1153 times by 17 tests: return result; Executed by:- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 1153 |
471 | } | - |
472 | | - |
473 | static QVector<QPersistentModelIndex> qSelectionPersistentindexes(const QItemSelection &sel) | - |
474 | { | - |
475 | QVector<QPersistentModelIndex> result; | - |
476 | QList<QItemSelectionRange>::const_iterator it = sel.constBegin(); | - |
477 | for (; it != sel.constEnd(); ++it)TRUE | evaluated 84 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| FALSE | evaluated 5650 times by 16 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
|
| 84-5650 |
478 | indexesFromRange(*it, result);executed 84 times by 8 tests: indexesFromRange(*it, result); Executed by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 84 |
479 | return result;executed 5650 times by 16 tests: return result; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| 5650 |
480 | } | - |
481 | | - |
482 | static QVector<QPair<QPersistentModelIndex, uint> > qSelectionPersistentRowLengths(const QItemSelection &sel) | - |
483 | { | - |
484 | QVector<QPair<QPersistentModelIndex, uint> > result; | - |
485 | Q_FOREACH (const QItemSelectionRange &range, sel) | - |
486 | rowLengthsFromRange(range, result);executed 15 times by 2 tests: rowLengthsFromRange(range, result); Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 15 |
487 | 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 |
488 | } | - |
489 | | - |
490 | | - |
491 | | - |
492 | | - |
493 | | - |
494 | | - |
495 | | - |
496 | | - |
497 | | - |
498 | | - |
499 | | - |
500 | void QItemSelection::merge(const QItemSelection &other, QItemSelectionModel::SelectionFlags command) | - |
501 | { | - |
502 | if (other.isEmpty() ||TRUE | evaluated 227632 times by 42 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| FALSE | evaluated 13459 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
| 13459-227632 |
503 | !(command & QItemSelectionModel::Select || | - |
504 | command & QItemSelectionModel::Deselect || | - |
505 | command & QItemSelectionModel::Toggle)) | - |
506 | return;executed 227632 times by 42 tests: return; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 227632 |
507 | | - |
508 | QItemSelection newSelection = other; | - |
509 | | - |
510 | QItemSelection intersections; | - |
511 | QItemSelection::iterator it = newSelection.begin(); | - |
512 | while (it != newSelection.end()) {TRUE | evaluated 13996 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
| FALSE | evaluated 13459 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
| 13459-13996 |
513 | if (!(*it).isValid()) {TRUE | evaluated 227 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 13769 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
| 227-13769 |
514 | it = newSelection.erase(it); | - |
515 | continue;executed 227 times by 15 tests: continue; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 227 |
516 | } | - |
517 | for (int t = 0; t < count(); ++t) {TRUE | evaluated 4391 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 13769 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
| 4391-13769 |
518 | if ((*it).intersects(at(t)))TRUE | evaluated 887 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 3504 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 887-3504 |
519 | intersections.append(at(t).intersected(*it));executed 887 times by 10 tests: intersections.append(at(t).intersected(*it)); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 887 |
520 | }executed 4391 times by 15 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 4391 |
521 | ++it; | - |
522 | }executed 13769 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
| 13769 |
523 | | - |
524 | | - |
525 | for (int i = 0; i < intersections.count(); ++i) { TRUE | evaluated 887 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 13459 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
| 887-13459 |
526 | for (int t = 0; t < count();) { TRUE | evaluated 2914 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 887 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 887-2914 |
527 | if (at(t).intersects(intersections.at(i))) {TRUE | evaluated 887 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 2027 times by 9 testsEvaluated by:- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 887-2027 |
528 | split(at(t), intersections.at(i), this); | - |
529 | removeAt(t); | - |
530 | } else {executed 887 times by 10 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 887 |
531 | ++t; | - |
532 | }executed 2027 times by 9 tests: end of block Executed by:- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 2027 |
533 | } | - |
534 | | - |
535 | for (int n = 0; (command & QItemSelectionModel::Toggle) && n < newSelection.count();) {TRUE | evaluated 181 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| FALSE | evaluated 170 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
|
| 170-181 |
536 | if (newSelection.at(n).intersects(intersections.at(i))) {TRUE | evaluated 170 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| FALSE | evaluated 11 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
| 11-170 |
537 | split(newSelection.at(n), intersections.at(i), &newSelection); | - |
538 | newSelection.removeAt(n); | - |
539 | } else {executed 170 times by 3 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| 170 |
540 | ++n; | - |
541 | }executed 11 times by 2 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 11 |
542 | } | - |
543 | }executed 887 times by 10 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 887 |
544 | | - |
545 | if (!(command & QItemSelectionModel::Deselect))TRUE | evaluated 12648 times by 27 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- ...
| FALSE | evaluated 811 times by 14 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 811-12648 |
546 | operator+=(newSelection);executed 12648 times by 27 tests: operator+=(newSelection); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- ...
| 12648 |
547 | }executed 13459 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
| 13459 |
548 | | - |
549 | | - |
550 | | - |
551 | | - |
552 | | - |
553 | | - |
554 | | - |
555 | | - |
556 | void QItemSelection::split(const QItemSelectionRange &range, | - |
557 | const QItemSelectionRange &other, QItemSelection *result) | - |
558 | { | - |
559 | if (range.parent() != other.parent() || range.model() != other.model())TRUE | never evaluated | FALSE | evaluated 1684 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1683 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 0-1684 |
560 | return;executed 1 time by 1 test: return; | 1 |
561 | | - |
562 | QModelIndex parent = other.parent(); | - |
563 | int top = range.top(); | - |
564 | int left = range.left(); | - |
565 | int bottom = range.bottom(); | - |
566 | int right = range.right(); | - |
567 | int other_top = other.top(); | - |
568 | int other_left = other.left(); | - |
569 | int other_bottom = other.bottom(); | - |
570 | int other_right = other.right(); | - |
571 | const QAbstractItemModel *model = range.model(); | - |
572 | Q_ASSERT(model); | - |
573 | if (other_top > top) {TRUE | evaluated 261 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
| FALSE | evaluated 1422 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 261-1422 |
574 | QModelIndex tl = model->index(top, left, parent); | - |
575 | QModelIndex br = model->index(other_top - 1, right, parent); | - |
576 | result->append(QItemSelectionRange(tl, br)); | - |
577 | top = other_top; | - |
578 | }executed 261 times by 6 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
| 261 |
579 | if (other_bottom < bottom) {TRUE | evaluated 260 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 1423 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 260-1423 |
580 | QModelIndex tl = model->index(other_bottom + 1, left, parent); | - |
581 | QModelIndex br = model->index(bottom, right, parent); | - |
582 | result->append(QItemSelectionRange(tl, br)); | - |
583 | bottom = other_bottom; | - |
584 | }executed 260 times by 6 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 260 |
585 | if (other_left > left) {TRUE | evaluated 178 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 1505 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 178-1505 |
586 | QModelIndex tl = model->index(top, left, parent); | - |
587 | QModelIndex br = model->index(bottom, other_left - 1, parent); | - |
588 | result->append(QItemSelectionRange(tl, br)); | - |
589 | left = other_left; | - |
590 | }executed 178 times by 5 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 178 |
591 | if (other_right < right) {TRUE | evaluated 195 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 1488 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 195-1488 |
592 | QModelIndex tl = model->index(top, other_right + 1, parent); | - |
593 | QModelIndex br = model->index(bottom, right, parent); | - |
594 | result->append(QItemSelectionRange(tl, br)); | - |
595 | right = other_right; | - |
596 | }executed 195 times by 6 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 195 |
597 | }executed 1683 times by 11 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 1683 |
598 | | - |
599 | | - |
600 | void QItemSelectionModelPrivate::initModel(QAbstractItemModel *m) | - |
601 | { | - |
602 | struct Cx { | - |
603 | const char *signal; | - |
604 | const char *slot; | - |
605 | }; | - |
606 | static const Cx connections[] = { | - |
607 | { SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), | - |
608 | SLOT(_q_rowsAboutToBeRemoved(QModelIndex,int,int)) }, | - |
609 | { SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)), | - |
610 | SLOT(_q_columnsAboutToBeRemoved(QModelIndex,int,int)) }, | - |
611 | { SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)), | - |
612 | SLOT(_q_rowsAboutToBeInserted(QModelIndex,int,int)) }, | - |
613 | { SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)), | - |
614 | SLOT(_q_columnsAboutToBeInserted(QModelIndex,int,int)) }, | - |
615 | { SIGNAL(rowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)), | - |
616 | SLOT(_q_layoutAboutToBeChanged()) }, | - |
617 | { SIGNAL(columnsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int)), | - |
618 | SLOT(_q_layoutAboutToBeChanged()) }, | - |
619 | { SIGNAL(rowsMoved(QModelIndex,int,int,QModelIndex,int)), | - |
620 | SLOT(_q_layoutChanged()) }, | - |
621 | { SIGNAL(columnsMoved(QModelIndex,int,int,QModelIndex,int)), | - |
622 | SLOT(_q_layoutChanged()) }, | - |
623 | { SIGNAL(layoutAboutToBeChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)), | - |
624 | SLOT(_q_layoutAboutToBeChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)) }, | - |
625 | { SIGNAL(layoutChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)), | - |
626 | SLOT(_q_layoutChanged(QList<QPersistentModelIndex>,QAbstractItemModel::LayoutChangeHint)) }, | - |
627 | { SIGNAL(modelReset()), | - |
628 | SLOT(reset()) }, | - |
629 | { 0, 0 } | - |
630 | }; | - |
631 | | - |
632 | if (model == m)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4986 times by 42 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
|
| 1-4986 |
633 | return;executed 1 time by 1 test: return; | 1 |
634 | | - |
635 | Q_Q(QItemSelectionModel); | - |
636 | if (model) {TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4985 times by 42 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
|
| 1-4985 |
637 | 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 |
638 | QObject::disconnect(model, cx->signal, q, cx->slot);executed 11 times by 1 test: QObject::disconnect(model, cx->signal, q, cx->slot); | 11 |
639 | q->reset(); | - |
640 | }executed 1 time by 1 test: end of block | 1 |
641 | model = m; | - |
642 | if (model) {TRUE | evaluated 4985 times by 42 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| FALSE | evaluated 1 time by 1 test |
| 1-4985 |
643 | for (const Cx *cx = &connections[0]; cx->signal; cx++)TRUE | evaluated 54835 times by 42 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| FALSE | evaluated 4985 times by 42 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
|
| 4985-54835 |
644 | QObject::connect(model, cx->signal, q, cx->slot);executed 54835 times by 42 tests: QObject::connect(model, cx->signal, q, cx->slot); Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 54835 |
645 | }executed 4985 times by 42 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 4985 |
646 | }executed 4986 times by 42 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 4986 |
647 | | - |
648 | | - |
649 | | - |
650 | | - |
651 | | - |
652 | | - |
653 | | - |
654 | | - |
655 | | - |
656 | QItemSelection QItemSelectionModelPrivate::expandSelection(const QItemSelection &selection, | - |
657 | QItemSelectionModel::SelectionFlags command) const | - |
658 | { | - |
659 | if (selection.isEmpty() && !((command & QItemSelectionModel::Rows) ||TRUE | evaluated 11 times by 2 testsEvaluated by:- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 553 times by 14 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 11-553 |
660 | (command & QItemSelectionModel::Columns)))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
661 | return selection; never executed: return selection; | 0 |
662 | | - |
663 | QItemSelection expanded; | - |
664 | if (command & QItemSelectionModel::Rows) {TRUE | evaluated 528 times by 14 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 36 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
|
| 36-528 |
665 | for (int i = 0; i < selection.count(); ++i) {TRUE | evaluated 522 times by 14 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 528 times by 14 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 522-528 |
666 | QModelIndex parent = selection.at(i).parent(); | - |
667 | int colCount = model->columnCount(parent); | - |
668 | QModelIndex tl = model->index(selection.at(i).top(), 0, parent); | - |
669 | QModelIndex br = model->index(selection.at(i).bottom(), colCount - 1, parent); | - |
670 | | - |
671 | expanded.merge(QItemSelection(tl, br), QItemSelectionModel::Select); | - |
672 | }executed 522 times by 14 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 522 |
673 | }executed 528 times by 14 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 528 |
674 | if (command & QItemSelectionModel::Columns) {TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
| FALSE | evaluated 528 times by 14 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 36-528 |
675 | 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 |
676 | QModelIndex parent = selection.at(i).parent(); | - |
677 | int rowCount = model->rowCount(parent); | - |
678 | QModelIndex tl = model->index(0, selection.at(i).left(), parent); | - |
679 | QModelIndex br = model->index(rowCount - 1, selection.at(i).right(), parent); | - |
680 | | - |
681 | expanded.merge(QItemSelection(tl, br), QItemSelectionModel::Select); | - |
682 | }executed 36 times by 3 tests: end of block Executed by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
| 36 |
683 | }executed 36 times by 3 tests: end of block Executed by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
| 36 |
684 | return expanded;executed 564 times by 14 tests: return expanded; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 564 |
685 | } | - |
686 | | - |
687 | | - |
688 | | - |
689 | | - |
690 | void QItemSelectionModelPrivate::_q_rowsAboutToBeRemoved(const QModelIndex &parent, | - |
691 | int start, int end) | - |
692 | { | - |
693 | Q_Q(QItemSelectionModel); | - |
694 | finalize(); | - |
695 | | - |
696 | | - |
697 | if (currentIndex.isValid() && parent == currentIndex.parent()TRUE | evaluated 38 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 3317 times by 23 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
|
TRUE | evaluated 25 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 13 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QSortFilterProxyModel
- tst_QTreeView
|
| 13-3317 |
698 | && 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 9 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 |
699 | QModelIndex old = currentIndex; | - |
700 | 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 |
701 | currentIndex = model->index(start - 1, old.column(), parent);executed 1 time by 1 test: currentIndex = model->index(start - 1, old.column(), parent); | 1 |
702 | 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 |
703 | currentIndex = model->index(end + 1, old.column(), parent); never executed: currentIndex = model->index(end + 1, old.column(), parent); | 0 |
704 | else | - |
705 | currentIndex = QModelIndex();executed 4 times by 3 tests: currentIndex = QModelIndex(); Executed by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QTreeView
| 4 |
706 | emit q->currentChanged(currentIndex, old); | - |
707 | emit q->currentRowChanged(currentIndex, old); | - |
708 | 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 |
709 | emit q->currentColumnChanged(currentIndex, old);executed 4 times by 3 tests: q->currentColumnChanged(currentIndex, old); Executed by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QTreeView
| 4 |
710 | }executed 5 times by 3 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QTreeView
| 5 |
711 | | - |
712 | QItemSelection deselected; | - |
713 | QItemSelection newParts; | - |
714 | QItemSelection::iterator it = ranges.begin(); | - |
715 | while (it != ranges.end()) {TRUE | evaluated 60 times by 12 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 3355 times by 24 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
|
| 60-3355 |
716 | 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 |
717 | QModelIndex itParent = it->topLeft().parent(); | - |
718 | 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 |
719 | itParent = itParent.parent();executed 6 times by 4 tests: itParent = itParent.parent(); Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
| 6 |
720 | | - |
721 | 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 |
722 | deselected.append(*it); | - |
723 | it = ranges.erase(it); | - |
724 | } else {executed 3 times by 3 tests: end of block Executed by:- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
| 3 |
725 | ++it; | - |
726 | }executed 12 times by 5 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
| 12 |
727 | } 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 |
728 | && 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 |
729 | deselected.append(*it); | - |
730 | it = ranges.erase(it); | - |
731 | } else if (start <= it->top() && it->top() <= end) { executed 20 times by 8 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
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 |
732 | deselected.append(QItemSelectionRange(it->topLeft(), model->index(end, it->right(), it->parent()))); | - |
733 | *it = QItemSelectionRange(model->index(end + 1, it->left(), it->parent()), it->bottomRight()); | - |
734 | ++it; | - |
735 | } 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 |
736 | deselected.append(QItemSelectionRange(model->index(start, it->left(), it->parent()), it->bottomRight())); | - |
737 | *it = QItemSelectionRange(it->topLeft(), model->index(start - 1, it->right(), it->parent())); | - |
738 | ++it; | - |
739 | } 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 |
740 | | - |
741 | | - |
742 | | - |
743 | | - |
744 | const QItemSelectionRange removedRange(model->index(start, it->left(), it->parent()), | - |
745 | model->index(end, it->right(), it->parent())); | - |
746 | deselected.append(removedRange); | - |
747 | QItemSelection::split(*it, removedRange, &newParts); | - |
748 | it = ranges.erase(it); | - |
749 | } elseexecuted 3 times by 1 test: end of block | 3 |
750 | ++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 |
751 | } | - |
752 | ranges.append(newParts); | - |
753 | | - |
754 | if (!deselected.isEmpty())TRUE | evaluated 30 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 3325 times by 24 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
|
| 30-3325 |
755 | 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 |
756 | }executed 3355 times by 24 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| 3355 |
757 | | - |
758 | | - |
759 | | - |
760 | | - |
761 | void QItemSelectionModelPrivate::_q_columnsAboutToBeRemoved(const QModelIndex &parent, | - |
762 | int start, int end) | - |
763 | { | - |
764 | Q_Q(QItemSelectionModel); | - |
765 | | - |
766 | | - |
767 | if (currentIndex.isValid() && parent == currentIndex.parent()TRUE | evaluated 8 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QListView
- tst_QTableView
| FALSE | evaluated 272 times by 10 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
TRUE | evaluated 8 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QListView
- tst_QTableView
| FALSE | never evaluated |
| 0-272 |
768 | && currentIndex.column() >= start && currentIndex.column() <= end) {TRUE | evaluated 7 times by 3 testsEvaluated by:- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QListView
| FALSE | evaluated 1 time by 1 test |
TRUE | evaluated 2 times by 1 test | FALSE | evaluated 5 times by 2 testsEvaluated by:- tst_QCalendarWidget
- tst_QDateTimeEdit
|
| 1-7 |
769 | QModelIndex old = currentIndex; | - |
770 | if (start > 0) TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1 time by 1 test |
| 1 |
771 | currentIndex = model->index(old.row(), start - 1, parent);executed 1 time by 1 test: currentIndex = model->index(old.row(), start - 1, parent); | 1 |
772 | else if (model && end < model->columnCount() - 1) TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
| 0-1 |
773 | currentIndex = model->index(old.row(), end + 1, parent);executed 1 time by 1 test: currentIndex = model->index(old.row(), end + 1, parent); | 1 |
774 | else | - |
775 | currentIndex = QModelIndex(); never executed: currentIndex = QModelIndex(); | 0 |
776 | emit q->currentChanged(currentIndex, old); | - |
777 | if (currentIndex.row() != old.row())TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
778 | emit q->currentRowChanged(currentIndex, old); never executed: q->currentRowChanged(currentIndex, old); | 0 |
779 | emit q->currentColumnChanged(currentIndex, old); | - |
780 | }executed 2 times by 1 test: end of block | 2 |
781 | | - |
782 | | - |
783 | QModelIndex tl = model->index(0, start, parent); | - |
784 | QModelIndex br = model->index(model->rowCount(parent) - 1, end, parent); | - |
785 | q->select(QItemSelection(tl, br), QItemSelectionModel::Deselect); | - |
786 | finalize(); | - |
787 | }executed 280 times by 11 tests: end of block Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 280 |
788 | | - |
789 | | - |
790 | | - |
791 | | - |
792 | | - |
793 | | - |
794 | void QItemSelectionModelPrivate::_q_columnsAboutToBeInserted(const QModelIndex &parent, | - |
795 | int start, int end) | - |
796 | { | - |
797 | Q_UNUSED(end); | - |
798 | finalize(); | - |
799 | QList<QItemSelectionRange> split; | - |
800 | QList<QItemSelectionRange>::iterator it = ranges.begin(); | - |
801 | for (; it != ranges.end(); ) {TRUE | evaluated 1 time by 1 test | FALSE | evaluated 842 times by 12 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 1-842 |
802 | if ((*it).isValid() && (*it).parent() == parentTRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
| 0-1 |
803 | && (*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 |
804 | QModelIndex bottomMiddle = model->index((*it).bottom(), start - 1, (*it).parent()); | - |
805 | QItemSelectionRange left((*it).topLeft(), bottomMiddle); | - |
806 | QModelIndex topMiddle = model->index((*it).top(), start, (*it).parent()); | - |
807 | QItemSelectionRange right(topMiddle, (*it).bottomRight()); | - |
808 | it = ranges.erase(it); | - |
809 | split.append(left); | - |
810 | split.append(right); | - |
811 | } else { never executed: end of block | 0 |
812 | ++it; | - |
813 | }executed 1 time by 1 test: end of block | 1 |
814 | } | - |
815 | ranges += split; | - |
816 | }executed 842 times by 12 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 842 |
817 | | - |
818 | | - |
819 | | - |
820 | | - |
821 | | - |
822 | | - |
823 | void QItemSelectionModelPrivate::_q_rowsAboutToBeInserted(const QModelIndex &parent, | - |
824 | int start, int end) | - |
825 | { | - |
826 | Q_UNUSED(end); | - |
827 | finalize(); | - |
828 | QList<QItemSelectionRange> split; | - |
829 | QList<QItemSelectionRange>::iterator it = ranges.begin(); | - |
830 | for (; it != ranges.end(); ) {TRUE | evaluated 3043 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 200855 times by 31 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QStyleSheetStyle
- ...
|
| 3043-200855 |
831 | if ((*it).isValid() && (*it).parent() == parentTRUE | evaluated 3043 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | never evaluated |
TRUE | evaluated 284 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 2759 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 0-3043 |
832 | && (*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 |
833 | QModelIndex middleRight = model->index(start - 1, (*it).right(), (*it).parent()); | - |
834 | QItemSelectionRange top((*it).topLeft(), middleRight); | - |
835 | QModelIndex middleLeft = model->index(start, (*it).left(), (*it).parent()); | - |
836 | QItemSelectionRange bottom(middleLeft, (*it).bottomRight()); | - |
837 | it = ranges.erase(it); | - |
838 | split.append(top); | - |
839 | split.append(bottom); | - |
840 | } else {executed 3 times by 1 test: end of block | 3 |
841 | ++it; | - |
842 | }executed 3040 times by 11 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 3040 |
843 | } | - |
844 | ranges += split; | - |
845 | }executed 200855 times by 31 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QStyleSheetStyle
- ...
| 200855 |
846 | | - |
847 | | - |
848 | | - |
849 | | - |
850 | | - |
851 | | - |
852 | | - |
853 | | - |
854 | void QItemSelectionModelPrivate::_q_layoutAboutToBeChanged(const QList<QPersistentModelIndex> &, QAbstractItemModel::LayoutChangeHint hint) | - |
855 | { | - |
856 | savedPersistentIndexes.clear(); | - |
857 | savedPersistentCurrentIndexes.clear(); | - |
858 | savedPersistentRowLengths.clear(); | - |
859 | savedPersistentCurrentRowLengths.clear(); | - |
860 | | - |
861 | | - |
862 | | - |
863 | if (ranges.isEmpty() && currentSelection.count() == 1) {TRUE | evaluated 2915 times by 20 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| FALSE | evaluated 35 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTreeWidget
|
TRUE | evaluated 14 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableWidget
| FALSE | evaluated 2901 times by 19 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
|
| 14-2915 |
864 | QItemSelectionRange range = currentSelection.first(); | - |
865 | QModelIndex parent = range.parent(); | - |
866 | tableRowCount = model->rowCount(parent); | - |
867 | tableColCount = model->columnCount(parent); | - |
868 | if (tableRowCount * tableColCount > 1000TRUE | never evaluated | FALSE | evaluated 14 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableWidget
|
| 0-14 |
869 | && range.top() == 0TRUE | never evaluated | FALSE | never evaluated |
| 0 |
870 | && range.left() == 0TRUE | never evaluated | FALSE | never evaluated |
| 0 |
871 | && range.bottom() == tableRowCount - 1TRUE | never evaluated | FALSE | never evaluated |
| 0 |
872 | && range.right() == tableColCount - 1) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
873 | tableSelected = true; | - |
874 | tableParent = parent; | - |
875 | return; never executed: return; | 0 |
876 | } | - |
877 | }executed 14 times by 6 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableWidget
| 14 |
878 | tableSelected = false; | - |
879 | | - |
880 | if (hint == QAbstractItemModel::VerticalSortHint) {TRUE | evaluated 125 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QTableView
- tst_QTreeView
| FALSE | evaluated 2825 times by 16 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
|
| 125-2825 |
881 | | - |
882 | | - |
883 | | - |
884 | | - |
885 | | - |
886 | savedPersistentRowLengths = qSelectionPersistentRowLengths(ranges); | - |
887 | savedPersistentCurrentRowLengths = qSelectionPersistentRowLengths(currentSelection); | - |
888 | } else {executed 125 times by 9 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QTableView
- tst_QTreeView
| 125 |
889 | savedPersistentIndexes = qSelectionPersistentindexes(ranges); | - |
890 | savedPersistentCurrentIndexes = qSelectionPersistentindexes(currentSelection); | - |
891 | }executed 2825 times by 16 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| 2825 |
892 | } | - |
893 | | - |
894 | | - |
895 | | - |
896 | static QItemSelection mergeRowLengths(const QVector<QPair<QPersistentModelIndex, uint> > &rowLengths) | - |
897 | { | - |
898 | 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 |
899 | return QItemSelection();executed 8 times by 2 tests: return QItemSelection(); Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 8 |
900 | | - |
901 | QItemSelection result; | - |
902 | int i = 0; | - |
903 | 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 |
904 | const QPersistentModelIndex &tl = rowLengths.at(i).first; | - |
905 | if (!tl.isValid()) {TRUE | never evaluated | FALSE | evaluated 13 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
| 0-13 |
906 | ++i; | - |
907 | continue; never executed: continue; | 0 |
908 | } | - |
909 | QPersistentModelIndex br = tl; | - |
910 | const uint length = rowLengths.at(i).second; | - |
911 | 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 |
912 | const QPersistentModelIndex &next = rowLengths.at(i).first; | - |
913 | if (!next.isValid())TRUE | never evaluated | FALSE | evaluated 11 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
| 0-11 |
914 | continue; never executed: continue; | 0 |
915 | const uint nextLength = rowLengths.at(i).second; | - |
916 | if ((nextLength == length)TRUE | evaluated 11 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| FALSE | never evaluated |
| 0-11 |
917 | && (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 |
918 | && (next.parent() == br.parent())) {TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| FALSE | never evaluated |
| 0-10 |
919 | br = next; | - |
920 | } else {executed 10 times by 2 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 10 |
921 | break;executed 1 time by 1 test: break; | 1 |
922 | } | - |
923 | } | - |
924 | result.append(QItemSelectionRange(tl, br.sibling(br.row(), length - 1))); | - |
925 | }executed 13 times by 2 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 13 |
926 | return result;executed 12 times by 2 tests: return result; Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 12 |
927 | } | - |
928 | | - |
929 | | - |
930 | | - |
931 | | - |
932 | | - |
933 | | - |
934 | | - |
935 | static QItemSelection mergeIndexes(const QVector<QPersistentModelIndex> &indexes) | - |
936 | { | - |
937 | QItemSelection colSpans; | - |
938 | | - |
939 | int i = 0; | - |
940 | while (i < indexes.count()) {TRUE | evaluated 102 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| FALSE | evaluated 78 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 78-102 |
941 | const QPersistentModelIndex &tl = indexes.at(i); | - |
942 | if (!tl.isValid()) {TRUE | never evaluated | FALSE | evaluated 102 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 0-102 |
943 | ++i; | - |
944 | continue; never executed: continue; | 0 |
945 | } | - |
946 | QPersistentModelIndex br = tl; | - |
947 | QModelIndex brParent = br.parent(); | - |
948 | int brRow = br.row(); | - |
949 | int brColumn = br.column(); | - |
950 | while (++i < indexes.count()) {TRUE | evaluated 555 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| FALSE | evaluated 46 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 46-555 |
951 | const QPersistentModelIndex &next = indexes.at(i); | - |
952 | if (!next.isValid())TRUE | never evaluated | FALSE | evaluated 555 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 0-555 |
953 | continue; never executed: continue; | 0 |
954 | const QModelIndex nextParent = next.parent(); | - |
955 | const int nextRow = next.row(); | - |
956 | const int nextColumn = next.column(); | - |
957 | if ((nextParent == brParent)TRUE | evaluated 519 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| FALSE | evaluated 36 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QStandardItemModel
|
| 36-519 |
958 | && (nextRow == brRow)TRUE | evaluated 499 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
|
| 20-499 |
959 | && (nextColumn == brColumn + 1)) {TRUE | evaluated 499 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| FALSE | never evaluated |
| 0-499 |
960 | br = next; | - |
961 | brParent = nextParent; | - |
962 | brRow = nextRow; | - |
963 | brColumn = nextColumn; | - |
964 | } else {executed 499 times by 7 tests: end of block Executed by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 499 |
965 | break;executed 56 times by 3 tests: break; Executed by:- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
| 56 |
966 | } | - |
967 | } | - |
968 | colSpans.append(QItemSelectionRange(tl, br)); | - |
969 | }executed 102 times by 8 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 102 |
970 | | - |
971 | QItemSelection rowSpans; | - |
972 | i = 0; | - |
973 | while (i < colSpans.count()) {TRUE | evaluated 96 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| FALSE | evaluated 78 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 78-96 |
974 | QModelIndex tl = colSpans.at(i).topLeft(); | - |
975 | QModelIndex br = colSpans.at(i).bottomRight(); | - |
976 | QModelIndex prevTl = tl; | - |
977 | while (++i < colSpans.count()) {TRUE | evaluated 56 times by 3 testsEvaluated by:- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
| FALSE | evaluated 46 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
|
| 46-56 |
978 | QModelIndex nextTl = colSpans.at(i).topLeft(); | - |
979 | QModelIndex nextBr = colSpans.at(i).bottomRight(); | - |
980 | | - |
981 | if (nextTl.parent() != tl.parent())TRUE | evaluated 36 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QStandardItemModel
| FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QStandardItemModel
|
| 20-36 |
982 | break; executed 36 times by 2 tests: break; Executed by:- tst_QFiledialog
- tst_QStandardItemModel
| 36 |
983 | | - |
984 | 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 |
985 | && (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 |
986 | br = nextBr; | - |
987 | prevTl = nextTl; | - |
988 | } else {executed 6 times by 1 test: end of block | 6 |
989 | break;executed 14 times by 1 test: break; | 14 |
990 | } | - |
991 | } | - |
992 | rowSpans.append(QItemSelectionRange(tl, br)); | - |
993 | }executed 96 times by 8 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 96 |
994 | return rowSpans;executed 78 times by 8 tests: return rowSpans; Executed by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 78 |
995 | } | - |
996 | | - |
997 | | - |
998 | | - |
999 | | - |
1000 | | - |
1001 | | - |
1002 | | - |
1003 | | - |
1004 | | - |
1005 | | - |
1006 | static bool qt_PersistentModelIndexLessThan(const QPersistentModelIndex &i1, const QPersistentModelIndex &i2) | - |
1007 | { | - |
1008 | const QModelIndex parent1 = i1.parent(); | - |
1009 | const QModelIndex parent2 = i2.parent(); | - |
1010 | return parent1 == parent2 ? i1 < i2 : parent1 < parent2;executed 2151 times by 7 tests: return parent1 == parent2 ? i1 < i2 : parent1 < parent2; Executed by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
TRUE | evaluated 1868 times by 7 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| FALSE | evaluated 283 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QStandardItemModel
|
| 283-2151 |
1011 | } | - |
1012 | | - |
1013 | | - |
1014 | | - |
1015 | | - |
1016 | | - |
1017 | | - |
1018 | void QItemSelectionModelPrivate::_q_layoutChanged(const QList<QPersistentModelIndex> &, QAbstractItemModel::LayoutChangeHint hint) | - |
1019 | { | - |
1020 | | - |
1021 | if (tableSelected && tableColCount == model->columnCount(tableParent)TRUE | never evaluated | FALSE | evaluated 2951 times by 20 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-2951 |
1022 | && tableRowCount == model->rowCount(tableParent)) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1023 | ranges.clear(); | - |
1024 | currentSelection.clear(); | - |
1025 | int bottom = tableRowCount - 1; | - |
1026 | int right = tableColCount - 1; | - |
1027 | QModelIndex tl = model->index(0, 0, tableParent); | - |
1028 | QModelIndex br = model->index(bottom, right, tableParent); | - |
1029 | currentSelection << QItemSelectionRange(tl, br); | - |
1030 | tableParent = QModelIndex(); | - |
1031 | tableSelected = false; | - |
1032 | return; never executed: return; | 0 |
1033 | } | - |
1034 | | - |
1035 | if ((hint != QAbstractItemModel::VerticalSortHint && savedPersistentCurrentIndexes.isEmpty() && savedPersistentIndexes.isEmpty())TRUE | evaluated 2826 times by 17 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| FALSE | evaluated 125 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QTableView
- tst_QTreeView
|
TRUE | evaluated 2810 times by 16 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| FALSE | evaluated 16 times by 5 testsEvaluated by:- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableWidget
|
TRUE | evaluated 2787 times by 16 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| FALSE | evaluated 23 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QStandardItemModel
- tst_QTreeWidget
|
| 16-2826 |
1036 | || (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 39 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 |
1037 | | - |
1038 | | - |
1039 | return;executed 2902 times by 19 tests: return; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| 2902 |
1040 | } | - |
1041 | | - |
1042 | | - |
1043 | ranges.clear(); | - |
1044 | currentSelection.clear(); | - |
1045 | | - |
1046 | if (hint != QAbstractItemModel::VerticalSortHint) {TRUE | evaluated 39 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
|
| 10-39 |
1047 | | - |
1048 | std::stable_sort(savedPersistentIndexes.begin(), savedPersistentIndexes.end(), | - |
1049 | qt_PersistentModelIndexLessThan); | - |
1050 | std::stable_sort(savedPersistentCurrentIndexes.begin(), savedPersistentCurrentIndexes.end(), | - |
1051 | qt_PersistentModelIndexLessThan); | - |
1052 | | - |
1053 | | - |
1054 | ranges = mergeIndexes(savedPersistentIndexes); | - |
1055 | currentSelection = mergeIndexes(savedPersistentCurrentIndexes); | - |
1056 | | - |
1057 | | - |
1058 | savedPersistentIndexes.clear(); | - |
1059 | savedPersistentCurrentIndexes.clear(); | - |
1060 | } else {executed 39 times by 8 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 39 |
1061 | | - |
1062 | std::stable_sort(savedPersistentRowLengths.begin(), savedPersistentRowLengths.end()); | - |
1063 | std::stable_sort(savedPersistentCurrentRowLengths.begin(), savedPersistentCurrentRowLengths.end()); | - |
1064 | | - |
1065 | | - |
1066 | ranges = mergeRowLengths(savedPersistentRowLengths); | - |
1067 | currentSelection = mergeRowLengths(savedPersistentCurrentRowLengths); | - |
1068 | | - |
1069 | | - |
1070 | savedPersistentRowLengths.clear(); | - |
1071 | savedPersistentCurrentRowLengths.clear(); | - |
1072 | }executed 10 times by 2 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 10 |
1073 | } | - |
1074 | | - |
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 | QItemSelectionModel::QItemSelectionModel(QAbstractItemModel *model) | - |
1118 | : QObject(*new QItemSelectionModelPrivate, model) | - |
1119 | { | - |
1120 | d_func()->initModel(model); | - |
1121 | }executed 92 times by 7 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
| 92 |
1122 | | - |
1123 | | - |
1124 | | - |
1125 | | - |
1126 | QItemSelectionModel::QItemSelectionModel(QAbstractItemModel *model, QObject *parent) | - |
1127 | : QObject(*new QItemSelectionModelPrivate, parent) | - |
1128 | { | - |
1129 | d_func()->initModel(model); | - |
1130 | }executed 4893 times by 42 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 4893 |
1131 | | - |
1132 | | - |
1133 | | - |
1134 | | - |
1135 | QItemSelectionModel::QItemSelectionModel(QItemSelectionModelPrivate &dd, QAbstractItemModel *model) | - |
1136 | : QObject(dd, model) | - |
1137 | { | - |
1138 | dd.initModel(model); | - |
1139 | } never executed: end of block | 0 |
1140 | | - |
1141 | | - |
1142 | | - |
1143 | | - |
1144 | QItemSelectionModel::~QItemSelectionModel() | - |
1145 | { | - |
1146 | } | - |
1147 | | - |
1148 | | - |
1149 | | - |
1150 | | - |
1151 | | - |
1152 | | - |
1153 | | - |
1154 | void QItemSelectionModel::select(const QModelIndex &index, QItemSelectionModel::SelectionFlags command) | - |
1155 | { | - |
1156 | QItemSelection selection(index, index); | - |
1157 | select(selection, command); | - |
1158 | }executed 3859 times by 27 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- ...
| 3859 |
1159 | | - |
1160 | | - |
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 | void QItemSelectionModel::select(const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) | - |
1246 | { | - |
1247 | Q_D(QItemSelectionModel); | - |
1248 | if (!d->model) {TRUE | never evaluated | FALSE | evaluated 7342 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
| 0-7342 |
1249 | qWarning("QItemSelectionModel: Selecting when no model has been set will result in a no-op."); | - |
1250 | return; never executed: return; | 0 |
1251 | } | - |
1252 | if (command == NoUpdate)TRUE | evaluated 38 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTreeWidget
| FALSE | evaluated 7304 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
| 38-7304 |
1253 | return;executed 38 times by 5 tests: return; Executed by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTreeWidget
| 38 |
1254 | | - |
1255 | | - |
1256 | QItemSelection sel = selection; | - |
1257 | | - |
1258 | | - |
1259 | | - |
1260 | | - |
1261 | | - |
1262 | QItemSelection::iterator it = d->ranges.begin(); | - |
1263 | while (it != d->ranges.end()) {TRUE | evaluated 1421 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 7304 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
| 1421-7304 |
1264 | if (!it->isValid())TRUE | evaluated 24 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 1397 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 24-1397 |
1265 | 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 |
1266 | else | - |
1267 | ++it;executed 1397 times by 15 tests: ++it; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 1397 |
1268 | } | - |
1269 | | - |
1270 | QItemSelection old = d->ranges; | - |
1271 | old.merge(d->currentSelection, d->currentCommand); | - |
1272 | | - |
1273 | | - |
1274 | if (command & Rows || command & Columns) | - |
1275 | sel = d->expandSelection(sel, command);executed 564 times by 14 tests: sel = d->expandSelection(sel, command); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 564 |
1276 | | - |
1277 | | - |
1278 | if (command & Clear) {TRUE | evaluated 5291 times by 27 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- ...
| FALSE | evaluated 2013 times by 26 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- ...
|
| 2013-5291 |
1279 | d->ranges.clear(); | - |
1280 | d->currentSelection.clear(); | - |
1281 | }executed 5291 times by 27 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- ...
| 5291 |
1282 | | - |
1283 | | - |
1284 | if (!(command & Current))TRUE | evaluated 6527 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
| FALSE | evaluated 777 times by 12 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 777-6527 |
1285 | d->finalize();executed 6527 times by 29 tests: d->finalize(); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
| 6527 |
1286 | | - |
1287 | | - |
1288 | if (command & Toggle || command & Select || command & Deselect) { | - |
1289 | d->currentCommand = command; | - |
1290 | d->currentSelection = sel; | - |
1291 | }executed 5805 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
| 5805 |
1292 | | - |
1293 | | - |
1294 | QItemSelection newSelection = d->ranges; | - |
1295 | newSelection.merge(d->currentSelection, d->currentCommand); | - |
1296 | emitSelectionChanged(newSelection, old); | - |
1297 | }executed 7304 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
| 7304 |
1298 | | - |
1299 | | - |
1300 | | - |
1301 | | - |
1302 | void QItemSelectionModel::clear() | - |
1303 | { | - |
1304 | clearSelection(); | - |
1305 | clearCurrentIndex(); | - |
1306 | }executed 12224 times by 43 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 12224 |
1307 | | - |
1308 | | - |
1309 | | - |
1310 | | - |
1311 | void QItemSelectionModel::clearCurrentIndex() | - |
1312 | { | - |
1313 | Q_D(QItemSelectionModel); | - |
1314 | QModelIndex previous = d->currentIndex; | - |
1315 | d->currentIndex = QModelIndex(); | - |
1316 | if (previous.isValid()) {TRUE | evaluated 879 times by 12 testsEvaluated by:- tst_QCalendarWidget
- tst_QColumnView
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSidebar
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 11348 times by 43 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
|
| 879-11348 |
1317 | emit currentChanged(d->currentIndex, previous); | - |
1318 | emit currentRowChanged(d->currentIndex, previous); | - |
1319 | emit currentColumnChanged(d->currentIndex, previous); | - |
1320 | }executed 879 times by 12 tests: end of block Executed by:- tst_QCalendarWidget
- tst_QColumnView
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSidebar
- tst_QTreeWidget
- tst_languageChange
| 879 |
1321 | }executed 12227 times by 43 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 12227 |
1322 | | - |
1323 | | - |
1324 | | - |
1325 | | - |
1326 | void QItemSelectionModel::reset() | - |
1327 | { | - |
1328 | const QSignalBlocker blocker(this); | - |
1329 | clear(); | - |
1330 | }executed 9588 times by 43 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 9588 |
1331 | | - |
1332 | | - |
1333 | | - |
1334 | | - |
1335 | | - |
1336 | void QItemSelectionModel::clearSelection() | - |
1337 | { | - |
1338 | Q_D(QItemSelectionModel); | - |
1339 | if (d->ranges.count() == 0 && d->currentSelection.count() == 0)TRUE | evaluated 12217 times by 43 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| FALSE | evaluated 66 times by 9 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
TRUE | evaluated 10836 times by 43 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| FALSE | evaluated 1381 times by 22 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
| 66-12217 |
1340 | return;executed 10836 times by 43 tests: return; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 10836 |
1341 | | - |
1342 | select(QItemSelection(), Clear); | - |
1343 | }executed 1447 times by 23 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| 1447 |
1344 | | - |
1345 | | - |
1346 | | - |
1347 | | - |
1348 | | - |
1349 | | - |
1350 | | - |
1351 | | - |
1352 | | - |
1353 | | - |
1354 | | - |
1355 | | - |
1356 | void QItemSelectionModel::setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command) | - |
1357 | { | - |
1358 | Q_D(QItemSelectionModel); | - |
1359 | if (!d->model) {TRUE | never evaluated | FALSE | evaluated 4176 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- ...
|
| 0-4176 |
1360 | qWarning("QItemSelectionModel: Setting the current index when no model has been set will result in a no-op."); | - |
1361 | return; never executed: return; | 0 |
1362 | } | - |
1363 | if (index == d->currentIndex) {TRUE | evaluated 250 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 3926 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- ...
|
| 250-3926 |
1364 | if (command != NoUpdate)TRUE | evaluated 145 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 105 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QItemView
- tst_QListView
- tst_QTreeView
- tst_QTreeWidget
|
| 105-145 |
1365 | 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 |
1366 | return;executed 250 times by 17 tests: return; Executed by:- tst_QAbstractItemView
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 250 |
1367 | } | - |
1368 | QPersistentModelIndex previous = d->currentIndex; | - |
1369 | d->currentIndex = index; | - |
1370 | if (command != NoUpdate)TRUE | evaluated 2955 times by 25 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 971 times by 21 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
| 971-2955 |
1371 | select(d->currentIndex, command); executed 2955 times by 25 tests: select(d->currentIndex, command); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 2955 |
1372 | emit currentChanged(d->currentIndex, previous); | - |
1373 | if (d->currentIndex.row() != previous.row() ||TRUE | evaluated 3298 times by 26 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- ...
| FALSE | evaluated 628 times by 14 testsEvaluated by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
| 628-3298 |
1374 | d->currentIndex.parent() != previous.parent())TRUE | evaluated 51 times by 6 testsEvaluated by:- tst_QColumnView
- tst_QComboBox
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 577 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
| 51-577 |
1375 | emit currentRowChanged(d->currentIndex, previous);executed 3349 times by 26 tests: currentRowChanged(d->currentIndex, previous); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- ...
| 3349 |
1376 | if (d->currentIndex.column() != previous.column() ||TRUE | evaluated 2032 times by 26 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- ...
| FALSE | evaluated 1894 times by 21 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
| 1894-2032 |
1377 | d->currentIndex.parent() != previous.parent())TRUE | evaluated 83 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QItemSelectionModel
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 1811 times by 21 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
| 83-1811 |
1378 | emit currentColumnChanged(d->currentIndex, previous);executed 2115 times by 26 tests: currentColumnChanged(d->currentIndex, previous); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- ...
| 2115 |
1379 | }executed 3926 times by 28 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- ...
| 3926 |
1380 | | - |
1381 | | - |
1382 | | - |
1383 | | - |
1384 | | - |
1385 | QModelIndex QItemSelectionModel::currentIndex() const | - |
1386 | { | - |
1387 | return static_cast<QModelIndex>(d_func()->currentIndex);executed 38280 times by 42 tests: return static_cast<QModelIndex>(d_func()->currentIndex); Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 38280 |
1388 | } | - |
1389 | | - |
1390 | | - |
1391 | | - |
1392 | | - |
1393 | bool QItemSelectionModel::isSelected(const QModelIndex &index) const | - |
1394 | { | - |
1395 | Q_D(const QItemSelectionModel); | - |
1396 | 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 27808 times by 25 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
TRUE | never evaluated | FALSE | evaluated 27808 times by 25 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
| 0-27808 |
1397 | return false;executed 20 times by 5 tests: return false; Executed by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QListView
- tst_QTreeView
| 20 |
1398 | | - |
1399 | bool selected = false; | - |
1400 | | - |
1401 | QList<QItemSelectionRange>::const_iterator it = d->ranges.begin(); | - |
1402 | for (; it != d->ranges.end(); ++it) {TRUE | evaluated 5722 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
| FALSE | evaluated 27206 times by 25 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
| 5722-27206 |
1403 | if ((*it).isValid() && (*it).contains(index)) {TRUE | evaluated 5722 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
| FALSE | never evaluated |
TRUE | evaluated 602 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
| FALSE | evaluated 5120 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListWidget
- tst_QTableView
|
| 0-5722 |
1404 | selected = true; | - |
1405 | break;executed 602 times by 9 tests: break; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
| 602 |
1406 | } | - |
1407 | }executed 5120 times by 8 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListWidget
- tst_QTableView
| 5120 |
1408 | | - |
1409 | | - |
1410 | if (d->currentSelection.count()) {TRUE | evaluated 8631 times by 20 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 19177 times by 21 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 8631-19177 |
1411 | if ((d->currentCommand & Deselect) && selected)TRUE | evaluated 213 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 112 times by 3 testsEvaluated by:- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
| 112-213 |
1412 | selected = !d->currentSelection.contains(index);executed 213 times by 5 tests: selected = !d->currentSelection.contains(index); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 213 |
1413 | else if (d->currentCommand & Toggle)TRUE | evaluated 120 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| FALSE | evaluated 8298 times by 20 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
| 120-8298 |
1414 | selected ^= d->currentSelection.contains(index);executed 120 times by 3 tests: selected ^= d->currentSelection.contains(index); Executed by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| 120 |
1415 | else if ((d->currentCommand & Select) && !selected)TRUE | evaluated 8008 times by 20 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 178 times by 6 testsEvaluated by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
|
| 178-8008 |
1416 | selected = d->currentSelection.contains(index);executed 8008 times by 20 tests: selected = d->currentSelection.contains(index); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 8008 |
1417 | }executed 8631 times by 20 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 8631 |
1418 | | - |
1419 | if (selected) {TRUE | evaluated 1804 times by 20 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 26004 times by 23 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 1804-26004 |
1420 | Qt::ItemFlags flags = d->model->flags(index); | - |
1421 | return (flags & Qt::ItemIsSelectable);executed 1804 times by 20 tests: return (flags & Qt::ItemIsSelectable); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 1804 |
1422 | } | - |
1423 | | - |
1424 | return false;executed 26004 times by 23 tests: return false; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 26004 |
1425 | } | - |
1426 | | - |
1427 | | - |
1428 | | - |
1429 | | - |
1430 | | - |
1431 | | - |
1432 | | - |
1433 | | - |
1434 | | - |
1435 | bool QItemSelectionModel::isRowSelected(int row, const QModelIndex &parent) const | - |
1436 | { | - |
1437 | Q_D(const QItemSelectionModel); | - |
1438 | if (!d->model)TRUE | never evaluated | FALSE | evaluated 1555 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 0-1555 |
1439 | return false; never executed: return false; | 0 |
1440 | if (parent.isValid() && d->model != parent.model())TRUE | evaluated 516 times by 4 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTreeView
| FALSE | evaluated 1039 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
TRUE | never evaluated | FALSE | evaluated 516 times by 4 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTreeView
|
| 0-1039 |
1441 | return false; never executed: return false; | 0 |
1442 | | - |
1443 | | - |
1444 | if (d->currentCommand & Deselect && d->currentSelection.count()) {TRUE | evaluated 62 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| FALSE | never evaluated |
| 0-62 |
1445 | for (int i=0; i<d->currentSelection.count(); ++i) {TRUE | evaluated 62 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 44 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
|
| 44-62 |
1446 | if (d->currentSelection.at(i).parent() == parent &&TRUE | evaluated 62 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| FALSE | never evaluated |
| 0-62 |
1447 | row >= d->currentSelection.at(i).top() &&TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
|
| 26-36 |
1448 | row <= d->currentSelection.at(i).bottom())TRUE | evaluated 18 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 18 times by 1 test |
| 18 |
1449 | return false;executed 18 times by 3 tests: return false; Executed by:- tst_QAccessibility
- tst_QItemView
- tst_QTableView
| 18 |
1450 | }executed 44 times by 2 tests: end of block Executed by:- tst_QItemView
- tst_QTableView
| 44 |
1451 | }executed 44 times by 2 tests: end of block Executed by:- tst_QItemView
- tst_QTableView
| 44 |
1452 | | - |
1453 | | - |
1454 | if (d->currentCommand & Toggle && d->currentSelection.count()) {TRUE | evaluated 94 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| FALSE | never evaluated |
| 0-94 |
1455 | for (int i=0; i<d->currentSelection.count(); ++i)TRUE | evaluated 94 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| FALSE | evaluated 22 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
|
| 22-94 |
1456 | if (d->currentSelection.at(i).top() <= row &&TRUE | evaluated 84 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| FALSE | evaluated 10 times by 1 test |
| 10-84 |
1457 | d->currentSelection.at(i).bottom() >= row)TRUE | evaluated 74 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QFiledialog
| FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QItemSelectionModel
|
| 10-74 |
1458 | for (int j=0; j<d->ranges.count(); ++j)TRUE | evaluated 72 times by 1 test | FALSE | evaluated 2 times by 1 test |
| 2-72 |
1459 | if (d->ranges.at(j).top() <= row && d->ranges.at(j).bottom() >= rowTRUE | evaluated 72 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 72 times by 1 test | FALSE | never evaluated |
| 0-72 |
1460 | && d->currentSelection.at(i).intersected(d->ranges.at(j)).isValid())TRUE | evaluated 72 times by 1 test | FALSE | never evaluated |
| 0-72 |
1461 | return false;executed 72 times by 1 test: return false; | 72 |
1462 | }executed 22 times by 3 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QFiledialog
- tst_QItemSelectionModel
| 22 |
1463 | | - |
1464 | QList<QItemSelectionRange>::const_iterator it; | - |
1465 | QList<QItemSelectionRange> joined = d->ranges; | - |
1466 | if (d->currentSelection.count())TRUE | evaluated 1218 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
| FALSE | evaluated 247 times by 5 testsEvaluated by:- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemView
- tst_QTreeWidget
|
| 247-1218 |
1467 | joined += d->currentSelection;executed 1218 times by 9 tests: joined += d->currentSelection; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
| 1218 |
1468 | int colCount = d->model->columnCount(parent); | - |
1469 | for (int column = 0; column < colCount; ++column) {TRUE | evaluated 1766 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 622 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 622-1766 |
1470 | for (it = joined.constBegin(); it != joined.constEnd(); ++it) {TRUE | evaluated 3882 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 843 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
| 843-3882 |
1471 | if ((*it).contains(row, column, parent)) {TRUE | evaluated 933 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 2949 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
|
| 933-2949 |
1472 | bool selectable = false; | - |
1473 | for (int i = column; !selectable && i <= (*it).right(); ++i) {TRUE | evaluated 944 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 923 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
TRUE | evaluated 934 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 10 times by 1 test |
| 10-944 |
1474 | Qt::ItemFlags flags = d->model->index(row, i, parent).flags(); | - |
1475 | selectable = flags & Qt::ItemIsSelectable; | - |
1476 | }executed 934 times by 10 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 934 |
1477 | if (selectable){TRUE | evaluated 923 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 10 times by 1 test |
| 10-923 |
1478 | column = qMax(column, (*it).right()); | - |
1479 | break;executed 923 times by 10 tests: break; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 923 |
1480 | } | - |
1481 | }executed 10 times by 1 test: end of block | 10 |
1482 | }executed 2959 times by 7 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
| 2959 |
1483 | if (it == joined.constEnd())TRUE | evaluated 843 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 923 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 843-923 |
1484 | return false;executed 843 times by 5 tests: return false; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 843 |
1485 | }executed 923 times by 10 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 923 |
1486 | return colCount > 0; executed 622 times by 9 tests: return colCount > 0; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 622 |
1487 | } | - |
1488 | | - |
1489 | | - |
1490 | | - |
1491 | | - |
1492 | | - |
1493 | | - |
1494 | | - |
1495 | | - |
1496 | | - |
1497 | bool QItemSelectionModel::isColumnSelected(int column, const QModelIndex &parent) const | - |
1498 | { | - |
1499 | Q_D(const QItemSelectionModel); | - |
1500 | if (!d->model)TRUE | never evaluated | FALSE | evaluated 943 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 0-943 |
1501 | return false; never executed: return false; | 0 |
1502 | if (parent.isValid() && d->model != parent.model())TRUE | evaluated 56 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
| FALSE | evaluated 887 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
TRUE | never evaluated | FALSE | evaluated 56 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
|
| 0-887 |
1503 | return false; never executed: return false; | 0 |
1504 | | - |
1505 | | - |
1506 | if (d->currentCommand & Deselect && d->currentSelection.count()) {TRUE | evaluated 34 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| FALSE | never evaluated |
| 0-34 |
1507 | for (int i = 0; i < d->currentSelection.count(); ++i) {TRUE | evaluated 34 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| FALSE | evaluated 18 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
|
| 18-34 |
1508 | if (d->currentSelection.at(i).parent() == parent &&TRUE | evaluated 34 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| FALSE | never evaluated |
| 0-34 |
1509 | column >= d->currentSelection.at(i).left() &&TRUE | evaluated 28 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
|
| 6-28 |
1510 | column <= d->currentSelection.at(i).right())TRUE | evaluated 16 times by 2 testsEvaluated by:- tst_QItemView
- tst_QTableView
| FALSE | evaluated 12 times by 1 test |
| 12-16 |
1511 | return false;executed 16 times by 2 tests: return false; Executed by:- tst_QItemView
- tst_QTableView
| 16 |
1512 | }executed 18 times by 2 tests: end of block Executed by:- tst_QItemView
- tst_QTableView
| 18 |
1513 | }executed 18 times by 2 tests: end of block Executed by:- tst_QItemView
- tst_QTableView
| 18 |
1514 | | - |
1515 | | - |
1516 | if (d->currentCommand & Toggle && d->currentSelection.count()) {TRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
| 0-6 |
1517 | for (int i = 0; i < d->currentSelection.count(); ++i) {TRUE | evaluated 6 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 6 |
1518 | if (d->currentSelection.at(i).left() <= column &&TRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
| 0-6 |
1519 | d->currentSelection.at(i).right() >= column) {TRUE | evaluated 2 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 2-4 |
1520 | for (int j = 0; j < d->ranges.count(); ++j) {TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1521 | if (d->ranges.at(j).left() <= column && d->ranges.at(j).right() >= columnTRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1522 | && d->currentSelection.at(i).intersected(d->ranges.at(j)).isValid()) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1523 | return false; never executed: return false; | 0 |
1524 | } | - |
1525 | } never executed: end of block | 0 |
1526 | }executed 2 times by 1 test: end of block | 2 |
1527 | }executed 6 times by 1 test: end of block | 6 |
1528 | }executed 6 times by 1 test: end of block | 6 |
1529 | | - |
1530 | QList<QItemSelectionRange>::const_iterator it; | - |
1531 | QList<QItemSelectionRange> joined = d->ranges; | - |
1532 | if (d->currentSelection.count())TRUE | evaluated 754 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 173 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemView
|
| 173-754 |
1533 | joined += d->currentSelection;executed 754 times by 10 tests: joined += d->currentSelection; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 754 |
1534 | int rowCount = d->model->rowCount(parent); | - |
1535 | for (int row = 0; row < rowCount; ++row) {TRUE | evaluated 1024 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 130 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
|
| 130-1024 |
1536 | for (it = joined.constBegin(); it != joined.constEnd(); ++it) {TRUE | evaluated 1870 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 797 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 797-1870 |
1537 | if ((*it).contains(row, column, parent)) {TRUE | evaluated 238 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 1632 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 238-1632 |
1538 | Qt::ItemFlags flags = d->model->index(row, column, parent).flags(); | - |
1539 | if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled)) { | - |
1540 | row = qMax(row, (*it).bottom()); | - |
1541 | break;executed 227 times by 9 tests: break; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 227 |
1542 | } | - |
1543 | }executed 11 times by 1 test: end of block | 11 |
1544 | }executed 1643 times by 9 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 1643 |
1545 | if (it == joined.constEnd())TRUE | evaluated 797 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 227 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 227-797 |
1546 | return false;executed 797 times by 9 tests: return false; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 797 |
1547 | }executed 227 times by 9 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 227 |
1548 | 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 |
1549 | } | - |
1550 | | - |
1551 | | - |
1552 | | - |
1553 | | - |
1554 | | - |
1555 | bool QItemSelectionModel::rowIntersectsSelection(int row, const QModelIndex &parent) const | - |
1556 | { | - |
1557 | Q_D(const QItemSelectionModel); | - |
1558 | if (!d->model)TRUE | never evaluated | FALSE | evaluated 1266 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
| 0-1266 |
1559 | return false; never executed: return false; | 0 |
1560 | if (parent.isValid() && d->model != parent.model())TRUE | evaluated 3 times by 1 test | FALSE | evaluated 1263 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
| 0-1263 |
1561 | return false; never executed: return false; | 0 |
1562 | | - |
1563 | QItemSelection sel = d->ranges; | - |
1564 | sel.merge(d->currentSelection, d->currentCommand); | - |
1565 | for (int i = 0; i < sel.count(); ++i) {TRUE | evaluated 1038 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 954 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
| 954-1038 |
1566 | QItemSelectionRange range = sel.at(i); | - |
1567 | if (range.parent() != parent)TRUE | evaluated 3 times by 1 test | FALSE | evaluated 1035 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
| 3-1035 |
1568 | return false;executed 3 times by 1 test: return false; | 3 |
1569 | int top = range.top(); | - |
1570 | int bottom = range.bottom(); | - |
1571 | int left = range.left(); | - |
1572 | int right = range.right(); | - |
1573 | if (top <= row && bottom >= row) {TRUE | evaluated 626 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 409 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
TRUE | evaluated 351 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 275 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
| 275-626 |
1574 | for (int j = left; j <= right; j++) {TRUE | evaluated 361 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 42 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QItemView
|
| 42-361 |
1575 | const Qt::ItemFlags flags = d->model->index(row, j, parent).flags(); | - |
1576 | if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled)) | - |
1577 | return true;executed 309 times by 5 tests: return true; Executed by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 309 |
1578 | }executed 52 times by 2 tests: end of block Executed by:- tst_QItemSelectionModel
- tst_QItemView
| 52 |
1579 | }executed 42 times by 2 tests: end of block Executed by:- tst_QItemSelectionModel
- tst_QItemView
| 42 |
1580 | }executed 726 times by 4 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 726 |
1581 | | - |
1582 | return false;executed 954 times by 8 tests: return false; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
| 954 |
1583 | } | - |
1584 | | - |
1585 | | - |
1586 | | - |
1587 | | - |
1588 | | - |
1589 | bool QItemSelectionModel::columnIntersectsSelection(int column, const QModelIndex &parent) const | - |
1590 | { | - |
1591 | Q_D(const QItemSelectionModel); | - |
1592 | if (!d->model)TRUE | never evaluated | FALSE | evaluated 659 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
| 0-659 |
1593 | return false; never executed: return false; | 0 |
1594 | if (parent.isValid() && d->model != parent.model())TRUE | never evaluated | FALSE | evaluated 659 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-659 |
1595 | return false; never executed: return false; | 0 |
1596 | | - |
1597 | QItemSelection sel = d->ranges; | - |
1598 | sel.merge(d->currentSelection, d->currentCommand); | - |
1599 | for (int i = 0; i < sel.count(); ++i) {TRUE | evaluated 405 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 426 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
|
| 405-426 |
1600 | int left = sel.at(i).left(); | - |
1601 | int right = sel.at(i).right(); | - |
1602 | int top = sel.at(i).top(); | - |
1603 | int bottom = sel.at(i).bottom(); | - |
1604 | if (left <= column && right >= column) {TRUE | evaluated 345 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 60 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
TRUE | evaluated 240 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 105 times by 4 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
|
| 60-345 |
1605 | for (int j = top; j <= bottom; j++) {TRUE | evaluated 252 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 7 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QItemView
|
| 7-252 |
1606 | const Qt::ItemFlags flags = d->model->index(j, column, parent).flags(); | - |
1607 | if ((flags & Qt::ItemIsSelectable) && (flags & Qt::ItemIsEnabled)) | - |
1608 | return true;executed 233 times by 5 tests: return true; Executed by:- tst_QAbstractItemView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 233 |
1609 | }executed 19 times by 2 tests: end of block Executed by:- tst_QItemSelectionModel
- tst_QItemView
| 19 |
1610 | }executed 7 times by 2 tests: end of block Executed by:- tst_QItemSelectionModel
- tst_QItemView
| 7 |
1611 | }executed 172 times by 4 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
| 172 |
1612 | | - |
1613 | return false;executed 426 times by 8 tests: return false; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStyleSheetStyle
- tst_QTableView
| 426 |
1614 | } | - |
1615 | | - |
1616 | | - |
1617 | | - |
1618 | | - |
1619 | | - |
1620 | | - |
1621 | | - |
1622 | bool QItemSelectionModel::hasSelection() const | - |
1623 | { | - |
1624 | Q_D(const QItemSelectionModel); | - |
1625 | if (d->currentCommand & (Toggle | Deselect)) {TRUE | evaluated 61 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
| FALSE | evaluated 1096 times by 16 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
| 61-1096 |
1626 | QItemSelection sel = d->ranges; | - |
1627 | sel.merge(d->currentSelection, d->currentCommand); | - |
1628 | return !sel.isEmpty();executed 61 times by 7 tests: return !sel.isEmpty(); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
| 61 |
1629 | } else { | - |
1630 | return !(d->ranges.isEmpty() && d->currentSelection.isEmpty());executed 1096 times by 16 tests: return !(d->ranges.isEmpty() && d->currentSelection.isEmpty()); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
TRUE | evaluated 921 times by 16 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 175 times by 5 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTreeWidget
|
TRUE | evaluated 586 times by 16 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 335 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 175-1096 |
1631 | } | - |
1632 | } | - |
1633 | | - |
1634 | | - |
1635 | | - |
1636 | | - |
1637 | | - |
1638 | QModelIndexList QItemSelectionModel::selectedIndexes() const | - |
1639 | { | - |
1640 | Q_D(const QItemSelectionModel); | - |
1641 | QItemSelection selected = d->ranges; | - |
1642 | selected.merge(d->currentSelection, d->currentCommand); | - |
1643 | 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 |
1644 | } | - |
1645 | | - |
1646 | | - |
1647 | | - |
1648 | | - |
1649 | | - |
1650 | | - |
1651 | | - |
1652 | | - |
1653 | QModelIndexList QItemSelectionModel::selectedRows(int column) const | - |
1654 | { | - |
1655 | QModelIndexList indexes; | - |
1656 | | - |
1657 | | - |
1658 | QSet< QPair<QModelIndex, int> > rowsSeen; | - |
1659 | | - |
1660 | const QItemSelection ranges = selection(); | - |
1661 | for (int i = 0; i < ranges.count(); ++i) {TRUE | evaluated 533 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 1160 times by 9 testsEvaluated by:- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
| 533-1160 |
1662 | const QItemSelectionRange &range = ranges.at(i); | - |
1663 | QModelIndex parent = range.parent(); | - |
1664 | for (int row = range.top(); row <= range.bottom(); row++) {TRUE | evaluated 578 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 533 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 533-578 |
1665 | QPair<QModelIndex, int> rowDef = qMakePair(parent, row); | - |
1666 | if (!rowsSeen.contains(rowDef)) {TRUE | evaluated 578 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | never evaluated |
| 0-578 |
1667 | rowsSeen << rowDef; | - |
1668 | if (isRowSelected(row, parent)) {TRUE | evaluated 496 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 82 times by 2 testsEvaluated by:- tst_QFiledialog
- tst_QItemSelectionModel
|
| 82-496 |
1669 | indexes.append(model()->index(row, column, parent)); | - |
1670 | }executed 496 times by 6 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 496 |
1671 | }executed 578 times by 6 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 578 |
1672 | }executed 578 times by 6 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 578 |
1673 | }executed 533 times by 6 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 533 |
1674 | | - |
1675 | return indexes;executed 1160 times by 9 tests: return indexes; Executed by:- tst_QAccessibility
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 1160 |
1676 | } | - |
1677 | | - |
1678 | | - |
1679 | | - |
1680 | | - |
1681 | | - |
1682 | | - |
1683 | | - |
1684 | | - |
1685 | QModelIndexList QItemSelectionModel::selectedColumns(int row) const | - |
1686 | { | - |
1687 | QModelIndexList indexes; | - |
1688 | | - |
1689 | | - |
1690 | QSet< QPair<QModelIndex, int> > columnsSeen; | - |
1691 | | - |
1692 | const QItemSelection ranges = selection(); | - |
1693 | 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 |
1694 | const QItemSelectionRange &range = ranges.at(i); | - |
1695 | QModelIndex parent = range.parent(); | - |
1696 | 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 |
1697 | QPair<QModelIndex, int> columnDef = qMakePair(parent, column); | - |
1698 | if (!columnsSeen.contains(columnDef)) {TRUE | evaluated 59 times by 2 testsEvaluated by:- tst_QItemSelectionModel
- tst_QTableView
| FALSE | never evaluated |
| 0-59 |
1699 | columnsSeen << columnDef; | - |
1700 | 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 |
1701 | indexes.append(model()->index(row, column, parent)); | - |
1702 | }executed 29 times by 2 tests: end of block Executed by:- tst_QItemSelectionModel
- tst_QTableView
| 29 |
1703 | }executed 59 times by 2 tests: end of block Executed by:- tst_QItemSelectionModel
- tst_QTableView
| 59 |
1704 | }executed 59 times by 2 tests: end of block Executed by:- tst_QItemSelectionModel
- tst_QTableView
| 59 |
1705 | }executed 22 times by 2 tests: end of block Executed by:- tst_QItemSelectionModel
- tst_QTableView
| 22 |
1706 | | - |
1707 | return indexes;executed 11 times by 3 tests: return indexes; Executed by:- tst_QAccessibility
- tst_QItemSelectionModel
- tst_QTableView
| 11 |
1708 | } | - |
1709 | | - |
1710 | | - |
1711 | | - |
1712 | | - |
1713 | const QItemSelection QItemSelectionModel::selection() const | - |
1714 | { | - |
1715 | Q_D(const QItemSelectionModel); | - |
1716 | QItemSelection selected = d->ranges; | - |
1717 | selected.merge(d->currentSelection, d->currentCommand); | - |
1718 | int i = 0; | - |
1719 | | - |
1720 | | - |
1721 | while (i<selected.count()) {TRUE | evaluated 951 times by 12 testsEvaluated by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 11428 times by 42 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
|
| 951-11428 |
1722 | if (selected.at(i).isValid())TRUE | evaluated 951 times by 12 testsEvaluated by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | never evaluated |
| 0-951 |
1723 | ++i;executed 951 times by 12 tests: ++i; Executed by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 951 |
1724 | else | - |
1725 | (selected.removeAt(i)); never executed: (selected.removeAt(i)); | 0 |
1726 | } | - |
1727 | return selected;executed 11428 times by 42 tests: return selected; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 11428 |
1728 | } | - |
1729 | | - |
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 | QAbstractItemModel *QItemSelectionModel::model() | - |
1766 | { | - |
1767 | return d_func()->model;executed 12749 times by 42 tests: return d_func()->model; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 12749 |
1768 | } | - |
1769 | | - |
1770 | | - |
1771 | | - |
1772 | | - |
1773 | const QAbstractItemModel *QItemSelectionModel::model() const | - |
1774 | { | - |
1775 | return d_func()->model;executed 525 times by 6 tests: return d_func()->model; Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 525 |
1776 | } | - |
1777 | | - |
1778 | | - |
1779 | | - |
1780 | | - |
1781 | | - |
1782 | | - |
1783 | | - |
1784 | | - |
1785 | void QItemSelectionModel::setModel(QAbstractItemModel *model) | - |
1786 | { | - |
1787 | Q_D(QItemSelectionModel); | - |
1788 | if (d->model == model)TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1789 | return; never executed: return; | 0 |
1790 | | - |
1791 | d->initModel(model); | - |
1792 | emit modelChanged(model); | - |
1793 | }executed 2 times by 1 test: end of block | 2 |
1794 | | - |
1795 | | - |
1796 | | - |
1797 | | - |
1798 | | - |
1799 | void QItemSelectionModel::emitSelectionChanged(const QItemSelection &newSelection, | - |
1800 | const QItemSelection &oldSelection) | - |
1801 | { | - |
1802 | | - |
1803 | if ((oldSelection.isEmpty() && newSelection.isEmpty()) ||TRUE | evaluated 2588 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
| FALSE | evaluated 4716 times by 26 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- ...
|
TRUE | evaluated 611 times by 24 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFontDialog
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 1977 times by 27 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- ...
|
| 611-4716 |
1804 | oldSelection == newSelection)TRUE | evaluated 1070 times by 22 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 5623 times by 27 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- ...
|
| 1070-5623 |
1805 | return;executed 1681 times by 26 tests: return; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- ...
| 1681 |
1806 | | - |
1807 | | - |
1808 | if (oldSelection.isEmpty() || newSelection.isEmpty()) {TRUE | evaluated 1977 times by 27 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- ...
| FALSE | evaluated 3646 times by 25 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
|
TRUE | evaluated 1248 times by 19 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 2398 times by 19 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 1248-3646 |
1809 | emit selectionChanged(newSelection, oldSelection); | - |
1810 | return;executed 3225 times by 27 tests: return; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- ...
| 3225 |
1811 | } | - |
1812 | | - |
1813 | QItemSelection deselected = oldSelection; | - |
1814 | QItemSelection selected = newSelection; | - |
1815 | | - |
1816 | | - |
1817 | bool advance; | - |
1818 | for (int o = 0; o < deselected.count(); ++o) {TRUE | evaluated 2570 times by 19 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 2398 times by 19 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 2398-2570 |
1819 | advance = true; | - |
1820 | for (int s = 0; s < selected.count() && o < deselected.count();) {TRUE | evaluated 3665 times by 19 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 2360 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
TRUE | evaluated 3455 times by 19 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 210 times by 14 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 210-3665 |
1821 | if (deselected.at(o) == selected.at(s)) {TRUE | evaluated 817 times by 14 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 2638 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 817-2638 |
1822 | deselected.removeAt(o); | - |
1823 | selected.removeAt(s); | - |
1824 | advance = false; | - |
1825 | } else {executed 817 times by 14 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 817 |
1826 | ++s; | - |
1827 | }executed 2638 times by 17 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 2638 |
1828 | } | - |
1829 | if (advance)TRUE | evaluated 2269 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 301 times by 14 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 301-2269 |
1830 | ++o;executed 2269 times by 17 tests: ++o; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 2269 |
1831 | }executed 2570 times by 19 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 2570 |
1832 | | - |
1833 | | - |
1834 | QItemSelection intersections; | - |
1835 | for (int o = 0; o < deselected.count(); ++o) {TRUE | evaluated 2492 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 2398 times by 19 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 2398-2492 |
1836 | for (int s = 0; s < selected.count(); ++s) {TRUE | evaluated 2737 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 2492 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 2492-2737 |
1837 | if (deselected.at(o).intersects(selected.at(s)))TRUE | evaluated 305 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| FALSE | evaluated 2432 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
| 305-2432 |
1838 | intersections.append(deselected.at(o).intersected(selected.at(s)));executed 305 times by 10 tests: intersections.append(deselected.at(o).intersected(selected.at(s))); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| 305 |
1839 | }executed 2737 times by 17 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 2737 |
1840 | }executed 2492 times by 17 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 2492 |
1841 | | - |
1842 | | - |
1843 | for (int i = 0; i < intersections.count(); ++i) {TRUE | evaluated 305 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| FALSE | evaluated 2398 times by 19 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
|
| 305-2398 |
1844 | | - |
1845 | for (int o = 0; o < deselected.count();) {TRUE | evaluated 754 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| FALSE | evaluated 305 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
|
| 305-754 |
1846 | if (deselected.at(o).intersects(intersections.at(i))) {TRUE | evaluated 307 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| FALSE | evaluated 447 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
|
| 307-447 |
1847 | QItemSelection::split(deselected.at(o), intersections.at(i), &deselected); | - |
1848 | deselected.removeAt(o); | - |
1849 | } else {executed 307 times by 10 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| 307 |
1850 | ++o; | - |
1851 | }executed 447 times by 8 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
| 447 |
1852 | } | - |
1853 | | - |
1854 | for (int s = 0; s < selected.count();) {TRUE | evaluated 741 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| FALSE | evaluated 305 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
|
| 305-741 |
1855 | if (selected.at(s).intersects(intersections.at(i))) {TRUE | evaluated 316 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| FALSE | evaluated 425 times by 7 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
|
| 316-425 |
1856 | QItemSelection::split(selected.at(s), intersections.at(i), &selected); | - |
1857 | selected.removeAt(s); | - |
1858 | } else {executed 316 times by 10 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| 316 |
1859 | ++s; | - |
1860 | }executed 425 times by 7 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
| 425 |
1861 | } | - |
1862 | }executed 305 times by 10 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QTableView
- tst_QTreeWidget
| 305 |
1863 | | - |
1864 | if (!selected.isEmpty() || !deselected.isEmpty())TRUE | evaluated 2285 times by 19 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | evaluated 113 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
|
TRUE | evaluated 103 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QTableView
- tst_QTreeWidget
| FALSE | evaluated 10 times by 3 testsEvaluated by:- tst_QItemDelegate
- tst_QItemView
- tst_QTableView
|
| 10-2285 |
1865 | emit selectionChanged(selected, deselected);executed 2388 times by 19 tests: selectionChanged(selected, deselected); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 2388 |
1866 | }executed 2398 times by 19 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 2398 |
1867 | | - |
1868 | #ifndef QT_NO_DEBUG_STREAM | - |
1869 | QDebug operator<<(QDebug dbg, const QItemSelectionRange &range) | - |
1870 | { | - |
1871 | QDebugStateSaver saver(dbg); | - |
1872 | dbg.nospace() << "QItemSelectionRange(" << range.topLeft() | - |
1873 | << ',' << range.bottomRight() << ')'; | - |
1874 | return dbg; never executed: return dbg; | 0 |
1875 | } | - |
1876 | #endif | - |
1877 | | - |
1878 | QT_END_NAMESPACE | - |
1879 | | - |
1880 | #include "moc_qitemselectionmodel.cpp" | - |
1881 | | - |
1882 | #endif // QT_NO_ITEMVIEWS | - |
| | |