Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | QPersistentModelIndexData *QPersistentModelIndexData::create(const QModelIndex &index) | - |
6 | { | - |
7 | ((!(index.isValid())) ? qt_assert("index.isValid()",__FILE__,57) : qt_noop()); | - |
8 | QPersistentModelIndexData *d = 0; | - |
9 | QAbstractItemModel *model = const_cast<QAbstractItemModel *>(index.model()); | - |
10 | QHash<QModelIndex, QPersistentModelIndexData *> &indexes = model->d_func()->persistent.indexes; | - |
11 | const auto it = indexes.constFind(index); | - |
12 | if (it != indexes.cend()TRUE | evaluated 77648 times by 34 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- ...
| FALSE | evaluated 26745 times by 41 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
|
) { | 26745-77648 |
13 | d = (*it); | - |
14 | }executed 77648 times by 34 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- ...
else { | 77648 |
15 | d = new QPersistentModelIndexData(index); | - |
16 | indexes.insert(index, d); | - |
17 | }executed 26745 times by 41 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| 26745 |
18 | ((!(d)) ? qt_assert("d",__FILE__,68) : qt_noop()); | - |
19 | returnexecuted 104393 times by 41 tests: return d; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
d;executed 104393 times by 41 tests: return d; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| 104393 |
20 | } | - |
21 | | - |
22 | void QPersistentModelIndexData::destroy(QPersistentModelIndexData *data) | - |
23 | { | - |
24 | ((!(data)) ? qt_assert("data",__FILE__,74) : qt_noop()); | - |
25 | ((!(data->ref.load() == 0)) ? qt_assert("data->ref.load() == 0",__FILE__,75) : qt_noop()); | - |
26 | QAbstractItemModel *model = const_cast<QAbstractItemModel *>(data->model); | - |
27 | | - |
28 | if (modelTRUE | evaluated 21136 times by 38 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QListView
- tst_QListWidget
- ...
| FALSE | evaluated 5595 times by 39 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- ...
|
) { | 5595-21136 |
29 | QAbstractItemModelPrivate *p = model->d_func(); | - |
30 | ((!(p)) ? qt_assert("p",__FILE__,80) : qt_noop()); | - |
31 | p->removePersistentIndexData(data); | - |
32 | }executed 21136 times by 38 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QListView
- tst_QListWidget
- ...
| 21136 |
33 | delete data; | - |
34 | }executed 26731 times by 43 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| 26731 |
35 | QPersistentModelIndex::QPersistentModelIndex() | - |
36 | : d(0) | - |
37 | { | - |
38 | }executed 38001 times by 49 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLayout
- ...
| 38001 |
39 | QPersistentModelIndex::QPersistentModelIndex(const QPersistentModelIndex &other) | - |
40 | : d(other.d) | - |
41 | { | - |
42 | if (dTRUE | evaluated 94049 times by 34 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- ...
| FALSE | evaluated 1776 times by 36 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QMetaType
- ...
|
) d->ref.ref();executed 94049 times by 34 tests: d->ref.ref(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- ...
| 1776-94049 |
43 | }executed 95825 times by 37 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QMetaType
- ...
| 95825 |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | QPersistentModelIndex::QPersistentModelIndex(const QModelIndex &index) | - |
50 | : d(0) | - |
51 | { | - |
52 | if (index.isValid()TRUE | evaluated 96651 times by 41 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| FALSE | evaluated 615 times by 23 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItem
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QVariant
|
) { | 615-96651 |
53 | d = QPersistentModelIndexData::create(index); | - |
54 | d->ref.ref(); | - |
55 | }executed 96651 times by 41 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| 96651 |
56 | }executed 97266 times by 43 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| 97266 |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | QPersistentModelIndex::~QPersistentModelIndex() | - |
65 | { | - |
66 | if (dTRUE | evaluated 193749 times by 43 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| FALSE | evaluated 35186 times by 52 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLayout
- ...
|
&& !d->ref.deref()TRUE | evaluated 18743 times by 43 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| FALSE | evaluated 175006 times by 36 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- ...
|
) { | 18743-193749 |
67 | QPersistentModelIndexData::destroy(d); | - |
68 | d = 0; | - |
69 | }executed 18743 times by 43 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| 18743 |
70 | }executed 228935 times by 53 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLayout
- ...
| 228935 |
71 | bool QPersistentModelIndex::operator==(const QPersistentModelIndex &other) const | - |
72 | { | - |
73 | if (dTRUE | evaluated 40738 times by 27 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- 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
- ...
| FALSE | evaluated 708 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMetaType
- tst_QSqlQueryModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
&& other.dTRUE | evaluated 39163 times by 27 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- 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
- ...
| FALSE | evaluated 1575 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QListView
- tst_QTreeView
- tst_QTreeWidget
|
) | 708-40738 |
74 | returnexecuted 39163 times by 27 tests: return d->index == other.d->index; Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- 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
- ...
d->index == other.d->index;executed 39163 times by 27 tests: return d->index == other.d->index; Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- 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
- ...
| 39163 |
75 | returnexecuted 2283 times by 15 tests: return d == other.d; Executed by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMetaType
- tst_QSqlQueryModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
d == other.d;executed 2283 times by 15 tests: return d == other.d; Executed by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMetaType
- tst_QSqlQueryModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 2283 |
76 | } | - |
77 | bool QPersistentModelIndex::operator<(const QPersistentModelIndex &other) const | - |
78 | { | - |
79 | if (dTRUE | evaluated 1934 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| FALSE | never evaluated |
&& other.dTRUE | evaluated 1934 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| FALSE | never evaluated |
) | 0-1934 |
80 | returnexecuted 1934 times by 8 tests: return d->index < other.d->index; Executed by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
d->index < other.d->index;executed 1934 times by 8 tests: return d->index < other.d->index; Executed by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| 1934 |
81 | | - |
82 | return never executed: return d < other.d; d < other.d;never executed: return d < other.d; | 0 |
83 | } | - |
84 | QPersistentModelIndex &QPersistentModelIndex::operator=(const QPersistentModelIndex &other) | - |
85 | { | - |
86 | if (d == other.dTRUE | evaluated 152 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemView
- tst_QListView
- tst_QSidebar
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 14678 times by 21 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- 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
|
) | 152-14678 |
87 | returnexecuted 152 times by 10 tests: return *this; Executed by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemView
- tst_QListView
- tst_QSidebar
- tst_QTreeView
- tst_QTreeWidget
*this;executed 152 times by 10 tests: return *this; Executed by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemView
- tst_QListView
- tst_QSidebar
- tst_QTreeView
- tst_QTreeWidget
| 152 |
88 | if (dTRUE | evaluated 14386 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 292 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
&& !d->ref.deref()TRUE | evaluated 5918 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QItemView
- tst_QListView
- tst_QTableWidget
- tst_QTreeView
| FALSE | evaluated 8468 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
) | 292-14386 |
89 | QPersistentModelIndexData::destroy(d);executed 5918 times by 8 tests: QPersistentModelIndexData::destroy(d); Executed by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QItemView
- tst_QListView
- tst_QTableWidget
- tst_QTreeView
| 5918 |
90 | d = other.d; | - |
91 | if (dTRUE | evaluated 14655 times by 21 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- 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 23 times by 5 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QListView
- tst_QTreeView
- tst_QTreeWidget
|
) d->ref.ref();executed 14655 times by 21 tests: d->ref.ref(); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- 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
| 23-14655 |
92 | returnexecuted 14678 times by 21 tests: return *this; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- 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
*this;executed 14678 times by 21 tests: return *this; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- 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
| 14678 |
93 | } | - |
94 | QPersistentModelIndex &QPersistentModelIndex::operator=(const QModelIndex &other) | - |
95 | { | - |
96 | if (dTRUE | evaluated 4936 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- 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_QStandardItemModel
- tst_QStyleSheetStyle
- tst_QTableView
- ...
| FALSE | evaluated 22858 times by 44 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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
- ...
|
&& !d->ref.deref()TRUE | evaluated 2070 times by 27 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- ...
| FALSE | evaluated 2866 times by 24 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- 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
|
) | 2070-22858 |
97 | QPersistentModelIndexData::destroy(d);executed 2070 times by 27 tests: QPersistentModelIndexData::destroy(d); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- ...
| 2070 |
98 | if (other.isValid()TRUE | evaluated 7742 times by 32 testsEvaluated by:- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- ...
| FALSE | evaluated 20052 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
- ...
|
) { | 7742-20052 |
99 | d = QPersistentModelIndexData::create(other); | - |
100 | if (dTRUE | evaluated 7742 times by 32 testsEvaluated by:- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- ...
| FALSE | never evaluated |
) d->ref.ref();executed 7742 times by 32 tests: d->ref.ref(); Executed by:- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- ...
| 0-7742 |
101 | }executed 7742 times by 32 tests: end of block Executed by:- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- ...
else { | 7742 |
102 | d = 0; | - |
103 | }executed 20052 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
- ...
| 20052 |
104 | returnexecuted 27794 times by 44 tests: return *this; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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
- ...
*this;executed 27794 times by 44 tests: return *this; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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
- ...
| 27794 |
105 | } | - |
106 | | - |
107 | | - |
108 | | - |
109 | | - |
110 | | - |
111 | | - |
112 | | - |
113 | QPersistentModelIndex::operator const QModelIndex&() const | - |
114 | { | - |
115 | static const QModelIndex invalid; | - |
116 | if (dTRUE | evaluated 114022 times by 40 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| FALSE | evaluated 530197 times by 48 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLayout
- tst_QLineEdit
- ...
|
) | 114022-530197 |
117 | returnexecuted 114022 times by 40 tests: return d->index; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
d->index;executed 114022 times by 40 tests: return d->index; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| 114022 |
118 | returnexecuted 530197 times by 48 tests: return invalid; 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLayout
- tst_QLineEdit
- ...
invalid;executed 530197 times by 48 tests: return invalid; 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLayout
- tst_QLineEdit
- ...
| 530197 |
119 | } | - |
120 | bool QPersistentModelIndex::operator==(const QModelIndex &other) const | - |
121 | { | - |
122 | if (dTRUE | evaluated 809 times by 9 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeView
| FALSE | evaluated 1850 times by 22 testsEvaluated by:- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QLayout
- tst_QPrinter
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QWidgetAction
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
|
) | 809-1850 |
123 | returnexecuted 809 times by 9 tests: return d->index == other; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeView
d->index == other;executed 809 times by 9 tests: return d->index == other; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeView
| 809 |
124 | returnexecuted 1850 times by 22 tests: return !other.isValid(); Executed by:- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QLayout
- tst_QPrinter
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QWidgetAction
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
!other.isValid();executed 1850 times by 22 tests: return !other.isValid(); Executed by:- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QLayout
- tst_QPrinter
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QWidgetAction
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
| 1850 |
125 | } | - |
126 | bool QPersistentModelIndex::operator!=(const QModelIndex &other) const | - |
127 | { | - |
128 | if (dTRUE | evaluated 189 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
| FALSE | evaluated 2 times by 1 test |
) | 2-189 |
129 | returnexecuted 189 times by 3 tests: return d->index != other; Executed by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
d->index != other;executed 189 times by 3 tests: return d->index != other; Executed by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
| 189 |
130 | returnexecuted 2 times by 1 test: return other.isValid(); other.isValid();executed 2 times by 1 test: return other.isValid(); | 2 |
131 | } | - |
132 | | - |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | int QPersistentModelIndex::row() const | - |
140 | { | - |
141 | if (dTRUE | evaluated 257311 times by 39 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QListView
- tst_QListWidget
- ...
| FALSE | evaluated 3978 times by 36 testsEvaluated by:- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- ...
|
) | 3978-257311 |
142 | returnexecuted 257311 times by 39 tests: return d->index.row(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QListView
- tst_QListWidget
- ...
d->index.row();executed 257311 times by 39 tests: return d->index.row(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QListView
- tst_QListWidget
- ...
| 257311 |
143 | returnexecuted 3978 times by 36 tests: return -1; Executed by:- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- ...
-1;executed 3978 times by 36 tests: return -1; Executed by:- 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_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- ...
| 3978 |
144 | } | - |
145 | | - |
146 | | - |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | | - |
152 | int QPersistentModelIndex::column() const | - |
153 | { | - |
154 | if (dTRUE | evaluated 193402 times by 34 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- ...
| FALSE | evaluated 1944 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
- ...
|
) | 1944-193402 |
155 | returnexecuted 193402 times by 34 tests: return d->index.column(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- ...
d->index.column();executed 193402 times by 34 tests: return d->index.column(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- ...
| 193402 |
156 | returnexecuted 1944 times by 28 tests: return -1; 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
- ...
-1;executed 1944 times by 28 tests: return -1; 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
- ...
| 1944 |
157 | } | - |
158 | void *QPersistentModelIndex::internalPointer() const | - |
159 | { | - |
160 | if (dTRUE | evaluated 108 times by 2 testsEvaluated by:- tst_QListWidget
- tst_QTreeWidget
| FALSE | never evaluated |
) | 0-108 |
161 | returnexecuted 108 times by 2 tests: return d->index.internalPointer(); Executed by:- tst_QListWidget
- tst_QTreeWidget
d->index.internalPointer();executed 108 times by 2 tests: return d->index.internalPointer(); Executed by:- tst_QListWidget
- tst_QTreeWidget
| 108 |
162 | return never executed: return 0; 0;never executed: return 0; | 0 |
163 | } | - |
164 | quintptr QPersistentModelIndex::internalId() const | - |
165 | { | - |
166 | if (dTRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
) | 0-4 |
167 | returnexecuted 4 times by 1 test: return d->index.internalId(); d->index.internalId();executed 4 times by 1 test: return d->index.internalId(); | 4 |
168 | return never executed: return 0; 0;never executed: return 0; | 0 |
169 | } | - |
170 | | - |
171 | | - |
172 | | - |
173 | | - |
174 | | - |
175 | | - |
176 | | - |
177 | QModelIndex QPersistentModelIndex::parent() const | - |
178 | { | - |
179 | if (dTRUE | evaluated 196283 times by 30 testsEvaluated by:- tst_ModelTest
- 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
- ...
| FALSE | evaluated 3363 times by 12 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
) | 3363-196283 |
180 | returnexecuted 196283 times by 30 tests: return d->index.parent(); Executed by:- tst_ModelTest
- 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
- ...
d->index.parent();executed 196283 times by 30 tests: return d->index.parent(); Executed by:- tst_ModelTest
- 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
- ...
| 196283 |
181 | returnexecuted 3363 times by 12 tests: return QModelIndex(); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
QModelIndex();executed 3363 times by 12 tests: return QModelIndex(); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 3363 |
182 | } | - |
183 | QModelIndex QPersistentModelIndex::sibling(int row, int column) const | - |
184 | { | - |
185 | if (dTRUE | evaluated 13 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| FALSE | never evaluated |
) | 0-13 |
186 | returnexecuted 13 times by 2 tests: return d->index.sibling(row, column); Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
d->index.sibling(row, column);executed 13 times by 2 tests: return d->index.sibling(row, column); Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 13 |
187 | return never executed: return QModelIndex(); QModelIndex();never executed: return QModelIndex(); | 0 |
188 | } | - |
189 | QModelIndex QPersistentModelIndex::child(int row, int column) const | - |
190 | { | - |
191 | if (dTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
192 | return never executed: return d->index.child(row, column); d->index.child(row, column);never executed: return d->index.child(row, column); | 0 |
193 | return never executed: return QModelIndex(); QModelIndex();never executed: return QModelIndex(); | 0 |
194 | } | - |
195 | | - |
196 | | - |
197 | | - |
198 | | - |
199 | | - |
200 | | - |
201 | | - |
202 | QVariant QPersistentModelIndex::data(int role) const | - |
203 | { | - |
204 | if (dTRUE | evaluated 232 times by 6 testsEvaluated by:- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDirModel
- tst_QFileDialog2
- tst_QPrinter
- tst_QTableWidget
| FALSE | never evaluated |
) | 0-232 |
205 | returnexecuted 232 times by 6 tests: return d->index.data(role); Executed by:- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDirModel
- tst_QFileDialog2
- tst_QPrinter
- tst_QTableWidget
d->index.data(role);executed 232 times by 6 tests: return d->index.data(role); Executed by:- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDirModel
- tst_QFileDialog2
- tst_QPrinter
- tst_QTableWidget
| 232 |
206 | return never executed: return QVariant(); QVariant();never executed: return QVariant(); | 0 |
207 | } | - |
208 | | - |
209 | | - |
210 | | - |
211 | | - |
212 | | - |
213 | | - |
214 | Qt::ItemFlags QPersistentModelIndex::flags() const | - |
215 | { | - |
216 | if (dTRUE | evaluated 841 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTreeView
- tst_QTreeWidget
| FALSE | never evaluated |
) | 0-841 |
217 | returnexecuted 841 times by 3 tests: return d->index.flags(); Executed by:- tst_QAccessibility
- tst_QTreeView
- tst_QTreeWidget
d->index.flags();executed 841 times by 3 tests: return d->index.flags(); Executed by:- tst_QAccessibility
- tst_QTreeView
- tst_QTreeWidget
| 841 |
218 | return never executed: return 0; 0;never executed: return 0; | 0 |
219 | } | - |
220 | | - |
221 | | - |
222 | | - |
223 | | - |
224 | const QAbstractItemModel *QPersistentModelIndex::model() const | - |
225 | { | - |
226 | if (dTRUE | evaluated 32910 times by 23 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_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| FALSE | never evaluated |
) | 0-32910 |
227 | returnexecuted 32910 times by 23 tests: return d->index.model(); 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_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
d->index.model();executed 32910 times by 23 tests: return d->index.model(); 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_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 32910 |
228 | return never executed: return 0; 0;never executed: return 0; | 0 |
229 | } | - |
230 | bool QPersistentModelIndex::isValid() const | - |
231 | { | - |
232 | returnexecuted 140803 times by 42 tests: return d && d->index.isValid(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- ...
d && d->index.isValid();executed 140803 times by 42 tests: return d && d->index.isValid(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- ...
| 140803 |
233 | } | - |
234 | | - |
235 | | - |
236 | QDebug operator<<(QDebug dbg, const QModelIndex &idx) | - |
237 | { | - |
238 | QDebugStateSaver saver(dbg); | - |
239 | dbg.nospace() << "QModelIndex(" << idx.row() << ',' << idx.column() | - |
240 | << ',' << idx.internalPointer() << ',' << idx.model() << ')'; | - |
241 | returnexecuted 15 times by 3 tests: return dbg; Executed by:- tst_ModelTest
- tst_QAccessibility
- tst_QVariant
dbg;executed 15 times by 3 tests: return dbg; Executed by:- tst_ModelTest
- tst_QAccessibility
- tst_QVariant
| 15 |
242 | } | - |
243 | | - |
244 | QDebug operator<<(QDebug dbg, const QPersistentModelIndex &idx) | - |
245 | { | - |
246 | if (idx.dTRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
) | 0-1 |
247 | dbg << idx.d->index; never executed: dbg << idx.d->index; | 0 |
248 | else | - |
249 | dbg << QModelIndex();executed 1 time by 1 test: dbg << QModelIndex(); | 1 |
250 | returnexecuted 1 time by 1 test: return dbg; dbg;executed 1 time by 1 test: return dbg; | 1 |
251 | } | - |
252 | | - |
253 | | - |
254 | class QEmptyItemModel : public QAbstractItemModel | - |
255 | { | - |
256 | public: | - |
257 | explicit QEmptyItemModel(QObject *parent = 0) : QAbstractItemModel(parent) {}executed 45 times by 45 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- ...
| 45 |
258 | QModelIndex index(int, int, const QModelIndex &) const override { returnexecuted 56 times by 5 tests: return QModelIndex(); Executed by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QItemView
- tst_QListView
- tst_QTreeView
QModelIndex();executed 56 times by 5 tests: return QModelIndex(); Executed by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QItemView
- tst_QListView
- tst_QTreeView
} | 56 |
259 | QModelIndex parent(const QModelIndex &) const override { return never executed: return QModelIndex(); QModelIndex();never executed: return QModelIndex(); } | 0 |
260 | int rowCount(const QModelIndex &) const override { returnexecuted 1475 times by 23 tests: return 0; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QWidget
- tst_languageChange
0;executed 1475 times by 23 tests: return 0; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QWidget
- tst_languageChange
} | 1475 |
261 | int columnCount(const QModelIndex &) const override { returnexecuted 2492 times by 32 tests: return 0; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSplitter
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QStyleSheetStyle
- tst_QTableView
- ...
0;executed 2492 times by 32 tests: return 0; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSplitter
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QStyleSheetStyle
- tst_QTableView
- ...
} | 2492 |
262 | bool hasChildren(const QModelIndex &) const override { returnexecuted 242 times by 8 tests: return false; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QSplitter
- tst_QStyleSheetStyle
- tst_QTreeView
false;executed 242 times by 8 tests: return false; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QSplitter
- tst_QStyleSheetStyle
- tst_QTreeView
} | 242 |
263 | QVariant data(const QModelIndex &, int) const override { returnexecuted 1030 times by 2 tests: return QVariant(); Executed by:- tst_ModelTest
- tst_QAbstractProxyModel
QVariant();executed 1030 times by 2 tests: return QVariant(); Executed by:- tst_ModelTest
- tst_QAbstractProxyModel
} | 1030 |
264 | }; | - |
265 | | - |
266 | namespace { namespace Q_QGS_qEmptyModel { typedef QEmptyItemModel Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::InitializedTRUE | evaluated 46 times by 46 testsEvaluated by:- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qaccessibility - unknown status
- tst_qapplication - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdirmodel - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qheaderview - unknown status
- tst_qidentityproxymodel - unknown status
- tst_qinputdialog - unknown status
- tst_qitemdelegate - unknown status
- tst_qitemmodel - unknown status
- ...
| FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 46 times by 46 tests: guard.store(QtGlobalStatic::Destroyed); Executed by:- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qaccessibility - unknown status
- tst_qapplication - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdirmodel - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qheaderview - unknown status
- tst_qidentityproxymodel - unknown status
- tst_qinputdialog - unknown status
- tst_qitemdelegate - unknown status
- tst_qitemmodel - unknown status
- ...
}executed 46 times by 46 tests: end of block Executed by:- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qaccessibility - unknown status
- tst_qapplication - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdirmodel - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qheaderview - unknown status
- tst_qidentityproxymodel - unknown status
- tst_qinputdialog - unknown status
- tst_qitemdelegate - unknown status
- tst_qitemmodel - unknown status
- ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 212275 times by 49 tests: return &holder.value; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- 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_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- ...
&holder.value;executed 212275 times by 49 tests: return &holder.value; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- 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_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- ...
} } } static QGlobalStatic<QEmptyItemModel, Q_QGS_qEmptyModel::innerFunction, Q_QGS_qEmptyModel::guard> qEmptyModel; | 0-212275 |
267 | | - |
268 | | - |
269 | QAbstractItemModelPrivate::QAbstractItemModelPrivate() | - |
270 | : QObjectPrivate(), | - |
271 | supportedDragActions(-1), | - |
272 | roleNames(defaultRoleNames()) | - |
273 | { | - |
274 | }executed 5394 times by 54 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- ...
| 5394 |
275 | | - |
276 | QAbstractItemModelPrivate::~QAbstractItemModelPrivate() | - |
277 | { | - |
278 | } | - |
279 | | - |
280 | QAbstractItemModel *QAbstractItemModelPrivate::staticEmptyModel() | - |
281 | { | - |
282 | returnexecuted 212275 times by 49 tests: return qEmptyModel(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- 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_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- ...
qEmptyModel();executed 212275 times by 49 tests: return qEmptyModel(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- 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_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- ...
| 212275 |
283 | } | - |
284 | | - |
285 | void QAbstractItemModelPrivate::invalidatePersistentIndexes() | - |
286 | { | - |
287 | for (QPersistentModelIndexData *data : qAsConst(persistent.indexes)) { | - |
288 | data->index = QModelIndex(); | - |
289 | data->model = 0; | - |
290 | }executed 4404 times by 38 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- ...
| 4404 |
291 | persistent.indexes.clear(); | - |
292 | }executed 14712 times by 98 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- ...
| 14712 |
293 | | - |
294 | | - |
295 | | - |
296 | | - |
297 | | - |
298 | | - |
299 | void QAbstractItemModelPrivate::invalidatePersistentIndex(const QModelIndex &index) { | - |
300 | const auto it = persistent.indexes.constFind(index); | - |
301 | if (it != persistent.indexes.cend()TRUE | evaluated 1130 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_languageChange
| FALSE | evaluated 3496222 times by 37 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QPrinter
- tst_QSidebar
- tst_QSortFilterProxyModel
- ...
|
) { | 1130-3496222 |
302 | QPersistentModelIndexData *data = *it; | - |
303 | persistent.indexes.erase(it); | - |
304 | data->index = QModelIndex(); | - |
305 | data->model = 0; | - |
306 | }executed 1130 times by 11 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_languageChange
| 1130 |
307 | }executed 3497352 times by 37 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QPrinter
- tst_QSidebar
- tst_QSortFilterProxyModel
- ...
| 3497352 |
308 | | - |
309 | namespace { | - |
310 | struct DefaultRoleNames : public QHash<int, QByteArray> | - |
311 | { | - |
312 | DefaultRoleNames() { | - |
313 | (*this)[Qt::DisplayRole] = "display"; | - |
314 | (*this)[Qt::DecorationRole] = "decoration"; | - |
315 | (*this)[Qt::EditRole] = "edit"; | - |
316 | (*this)[Qt::ToolTipRole] = "toolTip"; | - |
317 | (*this)[Qt::StatusTipRole] = "statusTip"; | - |
318 | (*this)[Qt::WhatsThisRole] = "whatsThis"; | - |
319 | }executed 52 times by 52 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLayout
- ...
| 52 |
320 | }; | - |
321 | } | - |
322 | | - |
323 | namespace { namespace Q_QGS_qDefaultRoleNames { typedef DefaultRoleNames Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::InitializedTRUE | evaluated 54 times by 54 testsEvaluated by:- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qaccessibility - unknown status
- tst_qapplication - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdirmodel - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgridlayout - unknown status
- tst_qheaderview - unknown status
- tst_qidentityproxymodel - unknown status
- tst_qinputdialog - unknown status
- tst_qitemdelegate - unknown status
- ...
| FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 54 times by 54 tests: guard.store(QtGlobalStatic::Destroyed); Executed by:- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qaccessibility - unknown status
- tst_qapplication - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdirmodel - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgridlayout - unknown status
- tst_qheaderview - unknown status
- tst_qidentityproxymodel - unknown status
- tst_qinputdialog - unknown status
- tst_qitemdelegate - unknown status
- ...
}executed 54 times by 54 tests: end of block Executed by:- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qaccessibility - unknown status
- tst_qapplication - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdirmodel - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgridlayout - unknown status
- tst_qheaderview - unknown status
- tst_qidentityproxymodel - unknown status
- tst_qinputdialog - unknown status
- tst_qitemdelegate - unknown status
- ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 5394 times by 54 tests: return &holder.value; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- ...
&holder.value;executed 5394 times by 54 tests: return &holder.value; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- ...
} } } static QGlobalStatic<DefaultRoleNames, Q_QGS_qDefaultRoleNames::innerFunction, Q_QGS_qDefaultRoleNames::guard> qDefaultRoleNames; | 0-5394 |
324 | | - |
325 | const QHash<int,QByteArray> &QAbstractItemModelPrivate::defaultRoleNames() | - |
326 | { | - |
327 | returnexecuted 5394 times by 54 tests: return *qDefaultRoleNames(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- ...
*qDefaultRoleNames();executed 5394 times by 54 tests: return *qDefaultRoleNames(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- ...
| 5394 |
328 | } | - |
329 | | - |
330 | | - |
331 | static uint typeOfVariant(const QVariant &value) | - |
332 | { | - |
333 | | - |
334 | switch (value.userType()) { | - |
335 | case never executed: case QVariant::Bool: QVariant::Bool:never executed: case QVariant::Bool: | 0 |
336 | caseexecuted 26 times by 2 tests: case QVariant::Int: Executed by:- tst_QListWidget
- tst_QTreeWidget
QVariant::Int:executed 26 times by 2 tests: case QVariant::Int: Executed by:- tst_QListWidget
- tst_QTreeWidget
| 26 |
337 | case never executed: case QVariant::UInt: QVariant::UInt:never executed: case QVariant::UInt: | 0 |
338 | case never executed: case QVariant::LongLong: QVariant::LongLong:never executed: case QVariant::LongLong: | 0 |
339 | case never executed: case QVariant::ULongLong: QVariant::ULongLong:never executed: case QVariant::ULongLong: | 0 |
340 | case never executed: case QVariant::Char: QVariant::Char:never executed: case QVariant::Char: | 0 |
341 | case never executed: case QMetaType::Short: QMetaType::Short:never executed: case QMetaType::Short: | 0 |
342 | case never executed: case QMetaType::UShort: QMetaType::UShort:never executed: case QMetaType::UShort: | 0 |
343 | case never executed: case QMetaType::UChar: QMetaType::UChar:never executed: case QMetaType::UChar: | 0 |
344 | case never executed: case QMetaType::ULong: QMetaType::ULong:never executed: case QMetaType::ULong: | 0 |
345 | case never executed: case QMetaType::Long: QMetaType::Long:never executed: case QMetaType::Long: | 0 |
346 | returnexecuted 26 times by 2 tests: return 0; Executed by:- tst_QListWidget
- tst_QTreeWidget
0;executed 26 times by 2 tests: return 0; Executed by:- tst_QListWidget
- tst_QTreeWidget
| 26 |
347 | case never executed: case QVariant::Double: QVariant::Double:never executed: case QVariant::Double: | 0 |
348 | case never executed: case QMetaType::Float: QMetaType::Float:never executed: case QMetaType::Float: | 0 |
349 | return never executed: return 1; 1;never executed: return 1; | 0 |
350 | defaultexecuted 22804 times by 6 tests: default: Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
:executed 22804 times by 6 tests: default: Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 22804 |
351 | returnexecuted 22804 times by 6 tests: return 2; Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
2;executed 22804 times by 6 tests: return 2; Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 22804 |
352 | } | - |
353 | } | - |
354 | | - |
355 | | - |
356 | | - |
357 | | - |
358 | | - |
359 | | - |
360 | | - |
361 | bool QAbstractItemModelPrivate::variantLessThan(const QVariant &v1, const QVariant &v2) | - |
362 | { | - |
363 | switch(qMax(typeOfVariant(v1), typeOfVariant(v2))) | - |
364 | { | - |
365 | caseexecuted 13 times by 2 tests: case 0: Executed by:- tst_QListWidget
- tst_QTreeWidget
0:executed 13 times by 2 tests: case 0: Executed by:- tst_QListWidget
- tst_QTreeWidget
| 13 |
366 | returnexecuted 13 times by 2 tests: return v1.toLongLong() < v2.toLongLong(); Executed by:- tst_QListWidget
- tst_QTreeWidget
v1.toLongLong() < v2.toLongLong();executed 13 times by 2 tests: return v1.toLongLong() < v2.toLongLong(); Executed by:- tst_QListWidget
- tst_QTreeWidget
| 13 |
367 | case never executed: case 1: 1:never executed: case 1: | 0 |
368 | return never executed: return v1.toReal() < v2.toReal(); v1.toReal() < v2.toReal();never executed: return v1.toReal() < v2.toReal(); | 0 |
369 | defaultexecuted 11402 times by 6 tests: default: Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
:executed 11402 times by 6 tests: default: Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 11402 |
370 | returnexecuted 11402 times by 6 tests: return v1.toString().localeAwareCompare(v2.toString()) < 0; Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
v1.toString().localeAwareCompare(v2.toString()) < 0;executed 11402 times by 6 tests: return v1.toString().localeAwareCompare(v2.toString()) < 0; Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 11402 |
371 | } | - |
372 | } | - |
373 | | - |
374 | void QAbstractItemModelPrivate::removePersistentIndexData(QPersistentModelIndexData *data) | - |
375 | { | - |
376 | if (data->index.isValid()TRUE | evaluated 21134 times by 38 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QListView
- tst_QListWidget
- ...
| FALSE | evaluated 2 times by 1 test |
) { | 2-21134 |
377 | int removed = persistent.indexes.remove(data->index); | - |
378 | ((!(removed == 1)) ? qt_assert_x("QPersistentModelIndex::~QPersistentModelIndex", "persistent model indexes corrupted", | - |
379 | __FILE__ | - |
380 | , | - |
381 | 599 | - |
382 | ) : qt_noop()) | - |
383 | ; | - |
384 | | - |
385 | | - |
386 | (void)removed;; | - |
387 | }executed 21134 times by 38 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QListView
- tst_QListWidget
- ...
| 21134 |
388 | | - |
389 | for (int i = persistent.moved.count() - 1; i >= 0TRUE | never evaluated | FALSE | evaluated 21136 times by 38 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QListView
- tst_QListWidget
- ...
|
; --i) { | 0-21136 |
390 | int idx = persistent.moved.at(i).indexOf(data); | - |
391 | if (idx >= 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
392 | persistent.moved[i].remove(idx); never executed: persistent.moved[i].remove(idx); | 0 |
393 | } never executed: end of block | 0 |
394 | | - |
395 | for (int i = persistent.invalidated.count() - 1; i >= 0TRUE | never evaluated | FALSE | evaluated 21136 times by 38 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QListView
- tst_QListWidget
- ...
|
; --i) { | 0-21136 |
396 | int idx = persistent.invalidated.at(i).indexOf(data); | - |
397 | if (idx >= 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
398 | persistent.invalidated[i].remove(idx); never executed: persistent.invalidated[i].remove(idx); | 0 |
399 | } never executed: end of block | 0 |
400 | | - |
401 | }executed 21136 times by 38 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- 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_QListView
- tst_QListWidget
- ...
| 21136 |
402 | | - |
403 | void QAbstractItemModelPrivate::rowsAboutToBeInserted(const QModelIndex &parent, | - |
404 | int first, int last) | - |
405 | { | - |
406 | QAbstractItemModel * const q = q_func(); | - |
407 | (void)last;; | - |
408 | QVector<QPersistentModelIndexData *> persistent_moved; | - |
409 | if (first < q->rowCount(parent)TRUE | evaluated 2726 times by 25 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 119270 times by 43 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
|
) { | 2726-119270 |
410 | for (QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it = persistent.indexes.constBegin(); | - |
411 | it != persistent.indexes.constEnd()TRUE | evaluated 7852 times by 15 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 2726 times by 25 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
; ++it) { | 2726-7852 |
412 | QPersistentModelIndexData *data = *it; | - |
413 | const QModelIndex &index = data->index; | - |
414 | if (index.row() >= firstTRUE | evaluated 6498 times by 15 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 1354 times by 9 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QComboBox
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
&& index.isValid()TRUE | evaluated 6498 times by 15 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| FALSE | never evaluated |
&& index.parent() == parentTRUE | evaluated 6164 times by 12 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeWidget
| FALSE | evaluated 334 times by 5 testsEvaluated by:- tst_QFileDialog2
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
|
) { | 0-6498 |
415 | persistent_moved.append(data); | - |
416 | }executed 6164 times by 12 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeWidget
| 6164 |
417 | }executed 7852 times by 15 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| 7852 |
418 | }executed 2726 times by 25 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 2726 |
419 | persistent.moved.push(persistent_moved); | - |
420 | }executed 121996 times by 45 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- ...
| 121996 |
421 | | - |
422 | void QAbstractItemModelPrivate::rowsInserted(const QModelIndex &parent, | - |
423 | int first, int last) | - |
424 | { | - |
425 | QVector<QPersistentModelIndexData *> persistent_moved = persistent.moved.pop(); | - |
426 | int count = (last - first) + 1; | - |
427 | for (QVector<QPersistentModelIndexData *>::const_iterator it = persistent_moved.constBegin(); | - |
428 | it != persistent_moved.constEnd()TRUE | evaluated 6164 times by 12 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeWidget
| FALSE | evaluated 121996 times by 45 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- ...
|
; ++it) { | 6164-121996 |
429 | QPersistentModelIndexData *data = *it; | - |
430 | QModelIndex old = data->index; | - |
431 | persistent.indexes.erase(persistent.indexes.constFind(old)); | - |
432 | data->index = q_func()->index(old.row() + count, old.column(), parent); | - |
433 | if (data->index.isValid()TRUE | evaluated 6164 times by 12 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeWidget
| FALSE | never evaluated |
) { | 0-6164 |
434 | persistent.insertMultiAtEnd(data->index, data); | - |
435 | }executed 6164 times by 12 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeWidget
else { | 6164 |
436 | QMessageLogger(__FILE__, 652, __PRETTY_FUNCTION__).warning() << "QAbstractItemModel::endInsertRows: Invalid index (" << old.row() + count << ',' << old.column() << ") in model" << q_func(); | - |
437 | } never executed: end of block | 0 |
438 | } | - |
439 | }executed 121996 times by 45 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- ...
| 121996 |
440 | | - |
441 | void QAbstractItemModelPrivate::itemsAboutToBeMoved(const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation) | - |
442 | { | - |
443 | QVector<QPersistentModelIndexData *> persistent_moved_explicitly; | - |
444 | QVector<QPersistentModelIndexData *> persistent_moved_in_source; | - |
445 | QVector<QPersistentModelIndexData *> persistent_moved_in_destination; | - |
446 | | - |
447 | QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it; | - |
448 | const QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator begin = persistent.indexes.constBegin(); | - |
449 | const QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator end = persistent.indexes.constEnd(); | - |
450 | | - |
451 | const bool sameParent = (srcParent == destinationParent); | - |
452 | const bool movingUp = (srcFirst > destinationChild); | - |
453 | | - |
454 | for ( it = begin; it != endTRUE | evaluated 2617 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 72 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
|
; ++it) { | 72-2617 |
455 | QPersistentModelIndexData *data = *it; | - |
456 | const QModelIndex &index = data->index; | - |
457 | const QModelIndex &parent = index.parent(); | - |
458 | const bool isSourceIndex = (parent == srcParent); | - |
459 | const bool isDestinationIndex = (parent == destinationParent); | - |
460 | | - |
461 | int childPosition; | - |
462 | if (orientation == Qt::VerticalTRUE | evaluated 2617 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| FALSE | never evaluated |
) | 0-2617 |
463 | childPosition = index.row();executed 2617 times by 3 tests: childPosition = index.row(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| 2617 |
464 | else | - |
465 | childPosition = index.column(); never executed: childPosition = index.column(); | 0 |
466 | | - |
467 | if (!index.isValid()TRUE | never evaluated | FALSE | evaluated 2617 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
|| !(isSourceIndexTRUE | evaluated 1312 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | evaluated 1305 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
|| isDestinationIndexTRUE | evaluated 823 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 482 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
) ) | 0-2617 |
468 | continue;executed 482 times by 2 tests: continue; Executed by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| 482 |
469 | | - |
470 | if (!sameParentTRUE | evaluated 1655 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 480 times by 1 test |
&& isDestinationIndexTRUE | evaluated 823 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 832 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
) { | 480-1655 |
471 | if (childPosition >= destinationChildTRUE | evaluated 376 times by 1 test | FALSE | evaluated 447 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
) | 376-447 |
472 | persistent_moved_in_destination.append(data);executed 376 times by 1 test: persistent_moved_in_destination.append(data); | 376 |
473 | continue;executed 823 times by 2 tests: continue; Executed by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| 823 |
474 | } | - |
475 | | - |
476 | if (sameParentTRUE | evaluated 480 times by 1 test | FALSE | evaluated 832 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
&& movingUpTRUE | evaluated 160 times by 1 test | FALSE | evaluated 320 times by 1 test |
&& childPosition < destinationChildTRUE | evaluated 28 times by 1 test | FALSE | evaluated 132 times by 1 test |
) | 28-832 |
477 | continue;executed 28 times by 1 test: continue; | 28 |
478 | | - |
479 | if (sameParentTRUE | evaluated 452 times by 1 test | FALSE | evaluated 832 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
&& !movingUpTRUE | evaluated 320 times by 1 test | FALSE | evaluated 132 times by 1 test |
&& childPosition < srcFirstTRUE | evaluated 48 times by 1 test | FALSE | evaluated 272 times by 1 test |
) | 48-832 |
480 | continue;executed 48 times by 1 test: continue; | 48 |
481 | | - |
482 | if (!sameParentTRUE | evaluated 832 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | evaluated 404 times by 1 test |
&& childPosition < srcFirstTRUE | evaluated 386 times by 1 test | FALSE | evaluated 446 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
) | 386-832 |
483 | continue;executed 386 times by 1 test: continue; | 386 |
484 | | - |
485 | if (sameParentTRUE | evaluated 404 times by 1 test | FALSE | evaluated 446 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
&& (TRUE | evaluated 192 times by 1 test | FALSE | evaluated 212 times by 1 test |
childPosition > srcLast)TRUE | evaluated 192 times by 1 test | FALSE | evaluated 212 times by 1 test |
&& (TRUE | evaluated 48 times by 1 test | FALSE | evaluated 144 times by 1 test |
childPosition >= destinationChild )TRUE | evaluated 48 times by 1 test | FALSE | evaluated 144 times by 1 test |
) | 48-446 |
486 | continue;executed 48 times by 1 test: continue; | 48 |
487 | | - |
488 | if ((TRUE | evaluated 463 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | evaluated 339 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
childPosition <= srcLast)TRUE | evaluated 463 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | evaluated 339 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
&& (TRUE | evaluated 387 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | evaluated 76 times by 1 test |
childPosition >= srcFirst)TRUE | evaluated 387 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | evaluated 76 times by 1 test |
) { | 76-463 |
489 | persistent_moved_explicitly.append(data); | - |
490 | }executed 387 times by 2 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
else { | 387 |
491 | persistent_moved_in_source.append(data); | - |
492 | }executed 415 times by 2 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
| 415 |
493 | } | - |
494 | persistent.moved.push(persistent_moved_explicitly); | - |
495 | persistent.moved.push(persistent_moved_in_source); | - |
496 | persistent.moved.push(persistent_moved_in_destination); | - |
497 | }executed 72 times by 5 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
| 72 |
498 | void QAbstractItemModelPrivate::movePersistentIndexes(const QVector<QPersistentModelIndexData *> &indexes, int change, const QModelIndex &parent, Qt::Orientation orientation) | - |
499 | { | - |
500 | QVector<QPersistentModelIndexData *>::const_iterator it; | - |
501 | const QVector<QPersistentModelIndexData *>::const_iterator begin = indexes.constBegin(); | - |
502 | const QVector<QPersistentModelIndexData *>::const_iterator end = indexes.constEnd(); | - |
503 | | - |
504 | for (it = begin; it != endTRUE | evaluated 1178 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | evaluated 216 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
|
; ++it) | 216-1178 |
505 | { | - |
506 | QPersistentModelIndexData *data = *it; | - |
507 | | - |
508 | int row = data->index.row(); | - |
509 | int column = data->index.column(); | - |
510 | | - |
511 | if (Qt::Vertical == orientationTRUE | evaluated 1178 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | never evaluated |
) | 0-1178 |
512 | row += change;executed 1178 times by 2 tests: row += change; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
| 1178 |
513 | else | - |
514 | column += change; never executed: column += change; | 0 |
515 | | - |
516 | persistent.indexes.erase(persistent.indexes.constFind(data->index)); | - |
517 | data->index = q_func()->index(row, column, parent); | - |
518 | if (data->index.isValid()TRUE | evaluated 1178 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | never evaluated |
) { | 0-1178 |
519 | persistent.insertMultiAtEnd(data->index, data); | - |
520 | }executed 1178 times by 2 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
else { | 1178 |
521 | QMessageLogger(__FILE__, 745, __PRETTY_FUNCTION__).warning() << "QAbstractItemModel::endMoveRows: Invalid index (" << row << "," << column << ") in model" << q_func(); | - |
522 | } never executed: end of block | 0 |
523 | } | - |
524 | }executed 216 times by 5 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
| 216 |
525 | | - |
526 | void QAbstractItemModelPrivate::itemsMoved(const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation) | - |
527 | { | - |
528 | QVector<QPersistentModelIndexData *> moved_in_destination = persistent.moved.pop(); | - |
529 | QVector<QPersistentModelIndexData *> moved_in_source = persistent.moved.pop(); | - |
530 | QVector<QPersistentModelIndexData *> moved_explicitly = persistent.moved.pop(); | - |
531 | | - |
532 | const bool sameParent = (sourceParent == destinationParent); | - |
533 | const bool movingUp = (sourceFirst > destinationChild); | - |
534 | | - |
535 | const int explicit_change = (!sameParentTRUE | evaluated 46 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
|
|| movingUpTRUE | evaluated 14 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
| FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
|
) ? destinationChild - sourceFirst : destinationChild - sourceLast - 1 ; | 12-46 |
536 | const int source_change = (!sameParentTRUE | evaluated 46 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
|
|| !movingUpTRUE | evaluated 12 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
| FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
|
) ? -1*(sourceLast - sourceFirst + 1) : sourceLast - sourceFirst + 1 ; | 12-46 |
537 | const int destination_change = sourceLast - sourceFirst + 1; | - |
538 | | - |
539 | movePersistentIndexes(moved_explicitly, explicit_change, destinationParent, orientation); | - |
540 | movePersistentIndexes(moved_in_source, source_change, sourceParent, orientation); | - |
541 | movePersistentIndexes(moved_in_destination, destination_change, destinationParent, orientation); | - |
542 | }executed 72 times by 5 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
| 72 |
543 | | - |
544 | void QAbstractItemModelPrivate::rowsAboutToBeRemoved(const QModelIndex &parent, | - |
545 | int first, int last) | - |
546 | { | - |
547 | QVector<QPersistentModelIndexData *> persistent_moved; | - |
548 | QVector<QPersistentModelIndexData *> persistent_invalidated; | - |
549 | | - |
550 | | - |
551 | for (QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it = persistent.indexes.constBegin(); | - |
552 | it != persistent.indexes.constEnd()TRUE | evaluated 3751 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 2919 times by 31 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- ...
|
; ++it) { | 2919-3751 |
553 | QPersistentModelIndexData *data = *it; | - |
554 | bool level_changed = false; | - |
555 | QModelIndex current = data->index; | - |
556 | while (current.isValid()TRUE | evaluated 4572 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 223 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
|
) { | 223-4572 |
557 | QModelIndex current_parent = current.parent(); | - |
558 | if (current_parent == parentTRUE | evaluated 3528 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 1044 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
|
) { | 1044-3528 |
559 | if (!level_changedTRUE | evaluated 3212 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 316 times by 6 testsEvaluated by:- tst_QDirModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
|
&& current.row() > lastTRUE | evaluated 1097 times by 12 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 2115 times by 16 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
) | 316-3212 |
560 | persistent_moved.append(data);executed 1097 times by 12 tests: persistent_moved.append(data); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| 1097 |
561 | else if (current.row() <= lastTRUE | evaluated 2316 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 115 times by 1 test |
&& current.row() >= firstTRUE | evaluated 1191 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 1125 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
) | 115-2316 |
562 | persistent_invalidated.append(data);executed 1191 times by 15 tests: persistent_invalidated.append(data); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 1191 |
563 | break;executed 3528 times by 18 tests: break; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 3528 |
564 | } | - |
565 | current = current_parent; | - |
566 | level_changed = true; | - |
567 | }executed 1044 times by 9 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| 1044 |
568 | }executed 3751 times by 18 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 3751 |
569 | | - |
570 | persistent.moved.push(persistent_moved); | - |
571 | persistent.invalidated.push(persistent_invalidated); | - |
572 | }executed 2919 times by 31 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- ...
| 2919 |
573 | | - |
574 | void QAbstractItemModelPrivate::rowsRemoved(const QModelIndex &parent, | - |
575 | int first, int last) | - |
576 | { | - |
577 | QVector<QPersistentModelIndexData *> persistent_moved = persistent.moved.pop(); | - |
578 | int count = (last - first) + 1; | - |
579 | for (QVector<QPersistentModelIndexData *>::const_iterator it = persistent_moved.constBegin(); | - |
580 | it != persistent_moved.constEnd()TRUE | evaluated 1097 times by 12 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 2919 times by 31 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- ...
|
; ++it) { | 1097-2919 |
581 | QPersistentModelIndexData *data = *it; | - |
582 | QModelIndex old = data->index; | - |
583 | persistent.indexes.erase(persistent.indexes.constFind(old)); | - |
584 | data->index = q_func()->index(old.row() - count, old.column(), parent); | - |
585 | if (data->index.isValid()TRUE | evaluated 1097 times by 12 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| FALSE | never evaluated |
) { | 0-1097 |
586 | persistent.insertMultiAtEnd(data->index, data); | - |
587 | }executed 1097 times by 12 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
else { | 1097 |
588 | QMessageLogger(__FILE__, 812, __PRETTY_FUNCTION__).warning() << "QAbstractItemModel::endRemoveRows: Invalid index (" << old.row() - count << ',' << old.column() << ") in model" << q_func(); | - |
589 | } never executed: end of block | 0 |
590 | } | - |
591 | QVector<QPersistentModelIndexData *> persistent_invalidated = persistent.invalidated.pop(); | - |
592 | for (QVector<QPersistentModelIndexData *>::const_iterator it = persistent_invalidated.constBegin(); | - |
593 | it != persistent_invalidated.constEnd()TRUE | evaluated 1191 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 2919 times by 31 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- ...
|
; ++it) { | 1191-2919 |
594 | QPersistentModelIndexData *data = *it; | - |
595 | persistent.indexes.erase(persistent.indexes.constFind(data->index)); | - |
596 | data->index = QModelIndex(); | - |
597 | data->model = 0; | - |
598 | }executed 1191 times by 15 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 1191 |
599 | }executed 2919 times by 31 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- ...
| 2919 |
600 | | - |
601 | void QAbstractItemModelPrivate::columnsAboutToBeInserted(const QModelIndex &parent, | - |
602 | int first, int last) | - |
603 | { | - |
604 | QAbstractItemModel * const q = q_func(); | - |
605 | (void)last;; | - |
606 | QVector<QPersistentModelIndexData *> persistent_moved; | - |
607 | if (first < q->columnCount(parent)TRUE | evaluated 338 times by 11 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
| FALSE | evaluated 13194 times by 31 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItem
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
) { | 338-13194 |
608 | for (QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it = persistent.indexes.constBegin(); | - |
609 | it != persistent.indexes.constEnd()TRUE | evaluated 63 times by 6 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemModel
- tst_QStandardItemModel
- tst_QTableView
| FALSE | evaluated 338 times by 11 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
|
; ++it) { | 63-338 |
610 | QPersistentModelIndexData *data = *it; | - |
611 | const QModelIndex &index = data->index; | - |
612 | if (index.column() >= firstTRUE | evaluated 30 times by 5 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QItemModel
- tst_QStandardItemModel
- tst_QTableView
| FALSE | evaluated 33 times by 5 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemModel
- tst_QTableView
|
&& index.isValid()TRUE | evaluated 30 times by 5 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QItemModel
- tst_QStandardItemModel
- tst_QTableView
| FALSE | never evaluated |
&& index.parent() == parentTRUE | evaluated 15 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QStandardItemModel
- tst_QTableView
| FALSE | evaluated 15 times by 1 test |
) | 0-33 |
613 | persistent_moved.append(data);executed 15 times by 4 tests: persistent_moved.append(data); Executed by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QStandardItemModel
- tst_QTableView
| 15 |
614 | }executed 63 times by 6 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemModel
- tst_QStandardItemModel
- tst_QTableView
| 63 |
615 | }executed 338 times by 11 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
| 338 |
616 | persistent.moved.push(persistent_moved); | - |
617 | }executed 13532 times by 33 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItem
- tst_QStandardItemModel
- ...
| 13532 |
618 | | - |
619 | void QAbstractItemModelPrivate::columnsInserted(const QModelIndex &parent, | - |
620 | int first, int last) | - |
621 | { | - |
622 | QVector<QPersistentModelIndexData *> persistent_moved = persistent.moved.pop(); | - |
623 | int count = (last - first) + 1; | - |
624 | for (QVector<QPersistentModelIndexData *>::const_iterator it = persistent_moved.constBegin(); | - |
625 | it != persistent_moved.constEnd()TRUE | evaluated 15 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QStandardItemModel
- tst_QTableView
| FALSE | evaluated 13532 times by 33 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItem
- tst_QStandardItemModel
- ...
|
; ++it) { | 15-13532 |
626 | QPersistentModelIndexData *data = *it; | - |
627 | QModelIndex old = data->index; | - |
628 | persistent.indexes.erase(persistent.indexes.constFind(old)); | - |
629 | data->index = q_func()->index(old.row(), old.column() + count, parent); | - |
630 | if (data->index.isValid()TRUE | evaluated 15 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QStandardItemModel
- tst_QTableView
| FALSE | never evaluated |
) { | 0-15 |
631 | persistent.insertMultiAtEnd(data->index, data); | - |
632 | }executed 15 times by 4 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QStandardItemModel
- tst_QTableView
else { | 15 |
633 | QMessageLogger(__FILE__, 857, __PRETTY_FUNCTION__).warning() << "QAbstractItemModel::endInsertColumns: Invalid index (" << old.row() << ',' << old.column() + count << ") in model" << q_func(); | - |
634 | } never executed: end of block | 0 |
635 | } | - |
636 | }executed 13532 times by 33 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItem
- tst_QStandardItemModel
- ...
| 13532 |
637 | | - |
638 | void QAbstractItemModelPrivate::columnsAboutToBeRemoved(const QModelIndex &parent, | - |
639 | int first, int last) | - |
640 | { | - |
641 | QVector<QPersistentModelIndexData *> persistent_moved; | - |
642 | QVector<QPersistentModelIndexData *> persistent_invalidated; | - |
643 | | - |
644 | | - |
645 | for (QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it = persistent.indexes.constBegin(); | - |
646 | it != persistent.indexes.constEnd()TRUE | evaluated 100 times by 11 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| FALSE | evaluated 210 times by 16 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
; ++it) { | 100-210 |
647 | QPersistentModelIndexData *data = *it; | - |
648 | bool level_changed = false; | - |
649 | QModelIndex current = data->index; | - |
650 | while (current.isValid()TRUE | evaluated 101 times by 11 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| FALSE | evaluated 35 times by 1 test |
) { | 35-101 |
651 | QModelIndex current_parent = current.parent(); | - |
652 | if (current_parent == parentTRUE | evaluated 65 times by 11 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| FALSE | evaluated 36 times by 2 testsEvaluated by:- tst_QItemModel
- tst_QStandardItemModel
|
) { | 36-65 |
653 | if (!level_changedTRUE | evaluated 64 times by 11 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| FALSE | evaluated 1 time by 1 test |
&& current.column() > lastTRUE | evaluated 15 times by 6 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
| FALSE | evaluated 49 times by 9 testsEvaluated by:- tst_QAbstractItemModel
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
|
) | 1-64 |
654 | persistent_moved.append(data);executed 15 times by 6 tests: persistent_moved.append(data); Executed by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
| 15 |
655 | else if (current.column() <= lastTRUE | evaluated 50 times by 9 testsEvaluated by:- tst_QAbstractItemModel
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| FALSE | never evaluated |
&& current.column() >= firstTRUE | evaluated 26 times by 7 testsEvaluated by:- tst_QAbstractItemModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
| FALSE | evaluated 24 times by 7 testsEvaluated by:- tst_QAbstractItemModel
- tst_QHeaderView
- tst_QItemModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
|
) | 0-50 |
656 | persistent_invalidated.append(data);executed 26 times by 7 tests: persistent_invalidated.append(data); Executed by:- tst_QAbstractItemModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
| 26 |
657 | break;executed 65 times by 11 tests: break; Executed by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| 65 |
658 | } | - |
659 | current = current_parent; | - |
660 | level_changed = true; | - |
661 | }executed 36 times by 2 tests: end of block Executed by:- tst_QItemModel
- tst_QStandardItemModel
| 36 |
662 | }executed 100 times by 11 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| 100 |
663 | | - |
664 | persistent.moved.push(persistent_moved); | - |
665 | persistent.invalidated.push(persistent_invalidated); | - |
666 | | - |
667 | }executed 210 times by 16 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 210 |
668 | | - |
669 | void QAbstractItemModelPrivate::columnsRemoved(const QModelIndex &parent, | - |
670 | int first, int last) | - |
671 | { | - |
672 | QVector<QPersistentModelIndexData *> persistent_moved = persistent.moved.pop(); | - |
673 | int count = (last - first) + 1; | - |
674 | for (QVector<QPersistentModelIndexData *>::const_iterator it = persistent_moved.constBegin(); | - |
675 | it != persistent_moved.constEnd()TRUE | evaluated 15 times by 6 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
| FALSE | evaluated 210 times by 16 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
; ++it) { | 15-210 |
676 | QPersistentModelIndexData *data = *it; | - |
677 | QModelIndex old = data->index; | - |
678 | persistent.indexes.erase(persistent.indexes.constFind(old)); | - |
679 | data->index = q_func()->index(old.row(), old.column() - count, parent); | - |
680 | if (data->index.isValid()TRUE | evaluated 15 times by 6 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
| FALSE | never evaluated |
) { | 0-15 |
681 | persistent.insertMultiAtEnd(data->index, data); | - |
682 | }executed 15 times by 6 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
else { | 15 |
683 | QMessageLogger(__FILE__, 907, __PRETTY_FUNCTION__).warning() << "QAbstractItemModel::endRemoveColumns: Invalid index (" << old.row() << ',' << old.column() - count << ") in model" << q_func(); | - |
684 | } never executed: end of block | 0 |
685 | } | - |
686 | QVector<QPersistentModelIndexData *> persistent_invalidated = persistent.invalidated.pop(); | - |
687 | for (QVector<QPersistentModelIndexData *>::const_iterator it = persistent_invalidated.constBegin(); | - |
688 | it != persistent_invalidated.constEnd()TRUE | evaluated 26 times by 7 testsEvaluated by:- tst_QAbstractItemModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
| FALSE | evaluated 210 times by 16 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
; ++it) { | 26-210 |
689 | QPersistentModelIndexData *data = *it; | - |
690 | persistent.indexes.erase(persistent.indexes.constFind(data->index)); | - |
691 | data->index = QModelIndex(); | - |
692 | data->model = 0; | - |
693 | }executed 26 times by 7 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
| 26 |
694 | }executed 210 times by 16 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 210 |
695 | void QAbstractItemModel::resetInternalData() | - |
696 | { | - |
697 | | - |
698 | } | - |
699 | QAbstractItemModel::QAbstractItemModel(QObject *parent) | - |
700 | : QObject(*new QAbstractItemModelPrivate, parent) | - |
701 | { | - |
702 | }executed 1568 times by 48 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- 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_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- ...
| 1568 |
703 | | - |
704 | | - |
705 | | - |
706 | | - |
707 | QAbstractItemModel::QAbstractItemModel(QAbstractItemModelPrivate &dd, QObject *parent) | - |
708 | : QObject(dd, parent) | - |
709 | { | - |
710 | }executed 3826 times by 44 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLayout
- ...
| 3826 |
711 | | - |
712 | | - |
713 | | - |
714 | | - |
715 | QAbstractItemModel::~QAbstractItemModel() | - |
716 | { | - |
717 | d_func()->invalidatePersistentIndexes(); | - |
718 | }executed 5227 times by 98 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- 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_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- ...
| 5227 |
719 | bool QAbstractItemModel::hasIndex(int row, int column, const QModelIndex &parent) const | - |
720 | { | - |
721 | if (row < 0TRUE | evaluated 586 times by 10 testsEvaluated by:- tst_ModelTest
- tst_QAccessibility
- tst_QComboBox
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
| FALSE | evaluated 226416 times by 32 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- ...
|
|| column < 0TRUE | evaluated 1340 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAccessibility
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
| FALSE | evaluated 225076 times by 32 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- ...
|
) | 586-226416 |
722 | returnexecuted 1926 times by 10 tests: return false; Executed by:- tst_ModelTest
- tst_QAccessibility
- tst_QComboBox
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
false;executed 1926 times by 10 tests: return false; Executed by:- tst_ModelTest
- tst_QAccessibility
- tst_QComboBox
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
| 1926 |
723 | returnexecuted 225076 times by 32 tests: return row < rowCount(parent) && column < columnCount(parent); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- ...
row < rowCount(parent) && column < columnCount(parent);executed 225076 times by 32 tests: return row < rowCount(parent) && column < columnCount(parent); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- ...
| 225076 |
724 | } | - |
725 | bool QAbstractItemModel::hasChildren(const QModelIndex &parent) const | - |
726 | { | - |
727 | returnexecuted 2127 times by 5 tests: return (rowCount(parent) > 0) && (columnCount(parent) > 0); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
- tst_QTreeView
(rowCount(parent) > 0) && (columnCount(parent) > 0);executed 2127 times by 5 tests: return (rowCount(parent) > 0) && (columnCount(parent) > 0); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
- tst_QTreeView
| 2127 |
728 | } | - |
729 | QModelIndex QAbstractItemModel::sibling(int row, int column, const QModelIndex &idx) const | - |
730 | { | - |
731 | returnexecuted 32937 times by 16 tests: return (row == idx.row() && column == idx.column()) ? idx : index(row, column, parent(idx)); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
(row == idx.row() && column == idx.column()) ? idx : index(row, column, parent(idx));executed 32937 times by 16 tests: return (row == idx.row() && column == idx.column()) ? idx : index(row, column, parent(idx)); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 32937 |
732 | } | - |
733 | QMap<int, QVariant> QAbstractItemModel::itemData(const QModelIndex &index) const | - |
734 | { | - |
735 | QMap<int, QVariant> roles; | - |
736 | for (int i = 0; i < Qt::UserRoleTRUE | evaluated 116480 times by 6 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 455 times by 6 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
|
; ++i) { | 455-116480 |
737 | QVariant variantData = data(index, i); | - |
738 | if (variantData.isValid()TRUE | evaluated 101145 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 15335 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractProxyModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
|
) | 15335-101145 |
739 | roles.insert(i, variantData);executed 101145 times by 5 tests: roles.insert(i, variantData); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| 101145 |
740 | }executed 116480 times by 6 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| 116480 |
741 | returnexecuted 455 times by 6 tests: return roles; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
roles;executed 455 times by 6 tests: return roles; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| 455 |
742 | } | - |
743 | bool QAbstractItemModel::setData(const QModelIndex &index, const QVariant &value, int role) | - |
744 | { | - |
745 | (void)index;; | - |
746 | (void)value;; | - |
747 | (void)role;; | - |
748 | returnexecuted 25 times by 3 tests: return false; Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QSortFilterProxyModel
false;executed 25 times by 3 tests: return false; Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QSortFilterProxyModel
| 25 |
749 | } | - |
750 | bool QAbstractItemModel::setItemData(const QModelIndex &index, const QMap<int, QVariant> &roles) | - |
751 | { | - |
752 | bool b = true; | - |
753 | for (QMap<int, QVariant>::ConstIterator it = roles.begin(); it != roles.end()TRUE | evaluated 11776 times by 1 test | FALSE | evaluated 59 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QItemModel
|
; ++it) | 59-11776 |
754 | b = bTRUE | evaluated 11776 times by 1 test | FALSE | never evaluated |
&& setData(index, it.value(), it.key())TRUE | evaluated 11776 times by 1 test | FALSE | never evaluated |
;executed 11776 times by 1 test: b = b && setData(index, it.value(), it.key()); | 0-11776 |
755 | returnexecuted 59 times by 2 tests: return b; Executed by:- tst_QAbstractItemModel
- tst_QItemModel
b;executed 59 times by 2 tests: return b; Executed by:- tst_QAbstractItemModel
- tst_QItemModel
| 59 |
756 | } | - |
757 | QStringList QAbstractItemModel::mimeTypes() const | - |
758 | { | - |
759 | QStringList types; | - |
760 | types << ([]() -> QString { enum { Size = sizeof(u"" "application/x-qabstractitemmodeldatalist")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "application/x-qabstractitemmodeldatalist" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 174 times by 7 tests: return qstring_literal_temp; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
qstring_literal_temp;executed 174 times by 7 tests: return qstring_literal_temp; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
}()); | 174 |
761 | returnexecuted 174 times by 7 tests: return types; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
types;executed 174 times by 7 tests: return types; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
| 174 |
762 | } | - |
763 | QMimeData *QAbstractItemModel::mimeData(const QModelIndexList &indexes) const | - |
764 | { | - |
765 | if (indexes.count() <= 0TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_QListWidget
- tst_QTableWidget
| FALSE | evaluated 28 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
|
) | 8-28 |
766 | returnexecuted 8 times by 2 tests: return 0; Executed by:- tst_QListWidget
- tst_QTableWidget
0;executed 8 times by 2 tests: return 0; Executed by:- tst_QListWidget
- tst_QTableWidget
| 8 |
767 | QStringList types = mimeTypes(); | - |
768 | if (types.isEmpty()TRUE | never evaluated | FALSE | evaluated 28 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
|
) | 0-28 |
769 | return never executed: return 0; 0;never executed: return 0; | 0 |
770 | QMimeData *data = new QMimeData(); | - |
771 | QString format = types.at(0); | - |
772 | QByteArray encoded; | - |
773 | QDataStream stream(&encoded, QIODevice::WriteOnly); | - |
774 | encodeData(indexes, stream); | - |
775 | data->setData(format, encoded); | - |
776 | returnexecuted 28 times by 4 tests: return data; Executed by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
data;executed 28 times by 4 tests: return data; Executed by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
| 28 |
777 | } | - |
778 | bool QAbstractItemModel::canDropMimeData(const QMimeData *data, Qt::DropAction action, | - |
779 | int row, int column, | - |
780 | const QModelIndex &parent) const | - |
781 | { | - |
782 | (void)row; | - |
783 | (void)column; | - |
784 | (void)parent; | - |
785 | | - |
786 | if (!(action & supportedDropActions())TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
787 | return never executed: return false; false;never executed: return false; | 0 |
788 | | - |
789 | const QStringList modelTypes = mimeTypes(); | - |
790 | for (int i = 0; i < modelTypes.count()TRUE | never evaluated | FALSE | never evaluated |
; ++i) { | 0 |
791 | if (data->hasFormat(modelTypes.at(i))TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
792 | return never executed: return true; true;never executed: return true; | 0 |
793 | } never executed: end of block | 0 |
794 | return never executed: return false; false;never executed: return false; | 0 |
795 | } | - |
796 | bool QAbstractItemModel::dropMimeData(const QMimeData *data, Qt::DropAction action, | - |
797 | int row, int column, const QModelIndex &parent) | - |
798 | { | - |
799 | | - |
800 | if (!dataTRUE | never evaluated | FALSE | evaluated 12 times by 1 test |
|| !(action == Qt::CopyActionTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
|| action == Qt::MoveActionTRUE | never evaluated | FALSE | never evaluated |
)) | 0-12 |
801 | return never executed: return false; false;never executed: return false; | 0 |
802 | | - |
803 | QStringList types = mimeTypes(); | - |
804 | if (types.isEmpty()TRUE | never evaluated | FALSE | evaluated 12 times by 1 test |
) | 0-12 |
805 | return never executed: return false; false;never executed: return false; | 0 |
806 | QString format = types.at(0); | - |
807 | if (!data->hasFormat(format)TRUE | never evaluated | FALSE | evaluated 12 times by 1 test |
) | 0-12 |
808 | return never executed: return false; false;never executed: return false; | 0 |
809 | if (row > rowCount(parent)TRUE | evaluated 4 times by 1 test | FALSE | evaluated 8 times by 1 test |
) | 4-8 |
810 | row = rowCount(parent);executed 4 times by 1 test: row = rowCount(parent); | 4 |
811 | if (row == -1TRUE | never evaluated | FALSE | evaluated 12 times by 1 test |
) | 0-12 |
812 | row = rowCount(parent); never executed: row = rowCount(parent); | 0 |
813 | if (column == -1TRUE | never evaluated | FALSE | evaluated 12 times by 1 test |
) | 0-12 |
814 | column = 0; never executed: column = 0; | 0 |
815 | | - |
816 | QByteArray encoded = data->data(format); | - |
817 | QDataStream stream(&encoded, QIODevice::ReadOnly); | - |
818 | returnexecuted 12 times by 1 test: return decodeData(row, column, parent, stream); decodeData(row, column, parent, stream);executed 12 times by 1 test: return decodeData(row, column, parent, stream); | 12 |
819 | } | - |
820 | Qt::DropActions QAbstractItemModel::supportedDropActions() const | - |
821 | { | - |
822 | returnexecuted 91 times by 4 tests: return Qt::CopyAction; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QItemModel
- tst_QSortFilterProxyModel
Qt::CopyAction;executed 91 times by 4 tests: return Qt::CopyAction; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| 91 |
823 | } | - |
824 | Qt::DropActions QAbstractItemModel::supportedDragActions() const | - |
825 | { | - |
826 | const QAbstractItemModelPrivate * const d = d_func(); | - |
827 | if (d->supportedDragActions != -1TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
) | 0-1 |
828 | return never executed: return d->supportedDragActions; d->supportedDragActions;never executed: return d->supportedDragActions; | 0 |
829 | returnexecuted 1 time by 1 test: return supportedDropActions(); supportedDropActions();executed 1 time by 1 test: return supportedDropActions(); | 1 |
830 | } | - |
831 | | - |
832 | | - |
833 | | - |
834 | | - |
835 | void QAbstractItemModel::doSetSupportedDragActions(Qt::DropActions actions) | - |
836 | { | - |
837 | QAbstractItemModelPrivate * const d = d_func(); | - |
838 | d->supportedDragActions = actions; | - |
839 | } never executed: end of block | 0 |
840 | bool QAbstractItemModel::insertRows(int, int, const QModelIndex &) | - |
841 | { | - |
842 | return never executed: return false; false;never executed: return false; | 0 |
843 | } | - |
844 | bool QAbstractItemModel::insertColumns(int, int, const QModelIndex &) | - |
845 | { | - |
846 | returnexecuted 76 times by 1 test: return false; false;executed 76 times by 1 test: return false; | 76 |
847 | } | - |
848 | bool QAbstractItemModel::removeRows(int, int, const QModelIndex &) | - |
849 | { | - |
850 | return never executed: return false; false;never executed: return false; | 0 |
851 | } | - |
852 | bool QAbstractItemModel::removeColumns(int, int, const QModelIndex &) | - |
853 | { | - |
854 | returnexecuted 132 times by 1 test: return false; false;executed 132 times by 1 test: return false; | 132 |
855 | } | - |
856 | bool QAbstractItemModel::moveRows(const QModelIndex &, int , int , const QModelIndex &, int) | - |
857 | { | - |
858 | return never executed: return false; false;never executed: return false; | 0 |
859 | } | - |
860 | bool QAbstractItemModel::moveColumns(const QModelIndex &, int , int , const QModelIndex &, int) | - |
861 | { | - |
862 | return never executed: return false; false;never executed: return false; | 0 |
863 | } | - |
864 | void QAbstractItemModel::fetchMore(const QModelIndex &) | - |
865 | { | - |
866 | | - |
867 | } | - |
868 | bool QAbstractItemModel::canFetchMore(const QModelIndex &) const | - |
869 | { | - |
870 | returnexecuted 8043 times by 37 tests: return false; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- tst_QSortFilterProxyModel
- ...
false;executed 8043 times by 37 tests: return false; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- tst_QSortFilterProxyModel
- ...
| 8043 |
871 | } | - |
872 | Qt::ItemFlags QAbstractItemModel::flags(const QModelIndex &index) const | - |
873 | { | - |
874 | const QAbstractItemModelPrivate * const d = d_func(); | - |
875 | if (!d->indexValid(index)TRUE | evaluated 38 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractProxyModel
- tst_QFileDialog2
- tst_QItemModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 45712 times by 26 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QIdentityProxyModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QTableView
- tst_QTreeView
- ...
|
) | 38-45712 |
876 | returnexecuted 38 times by 5 tests: return 0; Executed by:- tst_ModelTest
- tst_QAbstractProxyModel
- tst_QFileDialog2
- tst_QItemModel
- tst_QSortFilterProxyModel
0;executed 38 times by 5 tests: return 0; Executed by:- tst_ModelTest
- tst_QAbstractProxyModel
- tst_QFileDialog2
- tst_QItemModel
- tst_QSortFilterProxyModel
| 38 |
877 | | - |
878 | returnexecuted 45712 times by 26 tests: return Qt::ItemIsSelectable|Qt::ItemIsEnabled; Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QIdentityProxyModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QTableView
- tst_QTreeView
- ...
Qt::ItemIsSelectable|Qt::ItemIsEnabled;executed 45712 times by 26 tests: return Qt::ItemIsSelectable|Qt::ItemIsEnabled; Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QIdentityProxyModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QTableView
- tst_QTreeView
- ...
| 45712 |
879 | } | - |
880 | | - |
881 | | - |
882 | | - |
883 | | - |
884 | | - |
885 | | - |
886 | void QAbstractItemModel::sort(int column, Qt::SortOrder order) | - |
887 | { | - |
888 | (void)column;; | - |
889 | (void)order;; | - |
890 | | - |
891 | }executed 486 times by 9 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QTableView
- tst_QTreeView
- tst_languageChange
| 486 |
892 | QModelIndex QAbstractItemModel::buddy(const QModelIndex &index) const | - |
893 | { | - |
894 | returnexecuted 15196 times by 29 tests: return index; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QStyleSheetStyle
- tst_QTableView
- ...
index;executed 15196 times by 29 tests: return index; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QStyleSheetStyle
- tst_QTableView
- ...
| 15196 |
895 | } | - |
896 | QModelIndexList QAbstractItemModel::match(const QModelIndex &start, int role, | - |
897 | const QVariant &value, int hits, | - |
898 | Qt::MatchFlags flags) const | - |
899 | { | - |
900 | QModelIndexList result; | - |
901 | uint matchType = flags & 0x0F; | - |
902 | Qt::CaseSensitivity cs = flags & Qt::MatchCaseSensitiveTRUE | evaluated 274 times by 9 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QPrinter
- tst_languageChange
| FALSE | evaluated 361 times by 15 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
? Qt::CaseSensitive : Qt::CaseInsensitive; | 274-361 |
903 | bool recurse = flags & Qt::MatchRecursive; | - |
904 | bool wrap = flags & Qt::MatchWrap; | - |
905 | bool allHits = (hits == -1); | - |
906 | QString text; | - |
907 | QModelIndex p = parent(start); | - |
908 | int from = start.row(); | - |
909 | int to = rowCount(p); | - |
910 | | - |
911 | | - |
912 | for (int i = 0; (wrapTRUE | evaluated 585 times by 14 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 880 times by 13 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_languageChange
|
&& i < 2TRUE | evaluated 390 times by 14 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 195 times by 14 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
) || (!wrapTRUE | evaluated 880 times by 13 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 195 times by 14 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
&& i < 1TRUE | evaluated 440 times by 13 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 440 times by 13 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_languageChange
|
); ++i) { | 195-880 |
913 | for (int r = from; (TRUE | evaluated 3160 times by 20 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 719 times by 18 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
r < to)TRUE | evaluated 3160 times by 20 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 719 times by 18 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
&& (allHitsTRUE | evaluated 138 times by 5 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCompleter
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTreeWidget
| FALSE | evaluated 3022 times by 20 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
|| result.count() < hitsTRUE | evaluated 2911 times by 20 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 111 times by 10 testsEvaluated by:- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QInputDialog
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QTableWidget
- tst_QTreeView
|
); ++r) { | 111-3160 |
914 | QModelIndex idx = index(r, start.column(), p); | - |
915 | if (!idx.isValid()TRUE | evaluated 1899 times by 9 testsEvaluated by:- tst_ModelTest
- tst_QComboBox
- tst_QCompleter
- tst_QFiledialog
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
| FALSE | evaluated 1150 times by 18 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
) | 1150-1899 |
916 | continue;executed 1899 times by 9 tests: continue; Executed by:- tst_ModelTest
- tst_QComboBox
- tst_QCompleter
- tst_QFiledialog
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
| 1899 |
917 | QVariant v = data(idx, role); | - |
918 | | - |
919 | if (matchType == Qt::MatchExactlyTRUE | evaluated 429 times by 12 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 721 times by 10 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
|
) { | 429-721 |
920 | if (value == vTRUE | evaluated 44 times by 10 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
| FALSE | evaluated 385 times by 12 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_languageChange
|
) | 44-385 |
921 | result.append(idx);executed 44 times by 10 tests: result.append(idx); Executed by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
| 44 |
922 | }executed 429 times by 12 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_languageChange
else { | 429 |
923 | if (text.isEmpty()TRUE | evaluated 261 times by 10 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| FALSE | evaluated 460 times by 8 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
|
) | 261-460 |
924 | text = value.toString();executed 261 times by 10 tests: text = value.toString(); Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| 261 |
925 | QString t = v.toString(); | - |
926 | switch (matchType) { | - |
927 | caseexecuted 8 times by 1 test: case Qt::MatchRegExp: Qt::MatchRegExp:executed 8 times by 1 test: case Qt::MatchRegExp: | 8 |
928 | if (QRegExp(text, cs).exactMatch(t)TRUE | evaluated 2 times by 1 test | FALSE | evaluated 6 times by 1 test |
) | 2-6 |
929 | result.append(idx);executed 2 times by 1 test: result.append(idx); | 2 |
930 | break;executed 8 times by 1 test: break; | 8 |
931 | caseexecuted 4 times by 1 test: case Qt::MatchWildcard: Qt::MatchWildcard:executed 4 times by 1 test: case Qt::MatchWildcard: | 4 |
932 | if (QRegExp(text, cs, QRegExp::Wildcard).exactMatch(t)TRUE | evaluated 3 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1-3 |
933 | result.append(idx);executed 3 times by 1 test: result.append(idx); | 3 |
934 | break;executed 4 times by 1 test: break; | 4 |
935 | caseexecuted 341 times by 9 tests: case Qt::MatchStartsWith: Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
Qt::MatchStartsWith:executed 341 times by 9 tests: case Qt::MatchStartsWith: Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| 341 |
936 | if (t.startsWith(text, cs)TRUE | evaluated 47 times by 7 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QListView
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeView
| FALSE | evaluated 294 times by 8 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
|
) | 47-294 |
937 | result.append(idx);executed 47 times by 7 tests: result.append(idx); Executed by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QListView
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeView
| 47 |
938 | break;executed 341 times by 9 tests: break; Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| 341 |
939 | caseexecuted 4 times by 1 test: case Qt::MatchEndsWith: Qt::MatchEndsWith:executed 4 times by 1 test: case Qt::MatchEndsWith: | 4 |
940 | if (t.endsWith(text, cs)TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2 |
941 | result.append(idx);executed 2 times by 1 test: result.append(idx); | 2 |
942 | break;executed 4 times by 1 test: break; | 4 |
943 | caseexecuted 360 times by 4 tests: case Qt::MatchFixedString: Executed by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
Qt::MatchFixedString:executed 360 times by 4 tests: case Qt::MatchFixedString: Executed by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
| 360 |
944 | if (t.compare(text, cs) == 0TRUE | evaluated 66 times by 3 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
| FALSE | evaluated 294 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
|
) | 66-294 |
945 | result.append(idx);executed 66 times by 3 tests: result.append(idx); Executed by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
| 66 |
946 | break;executed 360 times by 4 tests: break; Executed by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
| 360 |
947 | caseexecuted 4 times by 1 test: case Qt::MatchContains: Qt::MatchContains:executed 4 times by 1 test: case Qt::MatchContains: | 4 |
948 | default never executed: default: :never executed: default: | 0 |
949 | if (t.contains(text, cs)TRUE | evaluated 3 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1-3 |
950 | result.append(idx);executed 3 times by 1 test: result.append(idx); | 3 |
951 | }executed 4 times by 1 test: end of block | 4 |
952 | } | - |
953 | if (recurseTRUE | evaluated 40 times by 2 testsEvaluated by:- tst_QStandardItemModel
- tst_QTreeWidget
| FALSE | evaluated 1110 times by 17 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_languageChange
|
&& hasChildren(idx)TRUE | evaluated 13 times by 2 testsEvaluated by:- tst_QStandardItemModel
- tst_QTreeWidget
| FALSE | evaluated 27 times by 2 testsEvaluated by:- tst_QStandardItemModel
- tst_QTreeWidget
|
) { | 13-1110 |
954 | result += match(index(0, idx.column(), idx), role, | - |
955 | (text.isEmpty() ? value : text), | - |
956 | (allHits ? -1 : hits - result.count()), flags); | - |
957 | }executed 13 times by 2 tests: end of block Executed by:- tst_QStandardItemModel
- tst_QTreeWidget
| 13 |
958 | }executed 1150 times by 18 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 1150 |
959 | | - |
960 | from = 0; | - |
961 | to = start.row(); | - |
962 | }executed 830 times by 20 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 830 |
963 | returnexecuted 635 times by 20 tests: return result; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
result;executed 635 times by 20 tests: return result; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 635 |
964 | } | - |
965 | | - |
966 | | - |
967 | | - |
968 | | - |
969 | | - |
970 | | - |
971 | | - |
972 | QSize QAbstractItemModel::span(const QModelIndex &) const | - |
973 | { | - |
974 | returnexecuted 131 times by 4 tests: return QSize(1, 1); Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
QSize(1, 1);executed 131 times by 4 tests: return QSize(1, 1); Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
| 131 |
975 | } | - |
976 | void QAbstractItemModel::doSetRoleNames(const QHash<int,QByteArray> &roleNames) | - |
977 | { | - |
978 | QAbstractItemModelPrivate * const d = d_func(); | - |
979 | d->roleNames = roleNames; | - |
980 | }executed 2 times by 2 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QAbstractProxyModel
| 2 |
981 | QHash<int,QByteArray> QAbstractItemModel::roleNames() const | - |
982 | { | - |
983 | const QAbstractItemModelPrivate * const d = d_func(); | - |
984 | returnexecuted 8131 times by 31 tests: return d->roleNames; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- ...
d->roleNames;executed 8131 times by 31 tests: return d->roleNames; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- ...
| 8131 |
985 | } | - |
986 | bool QAbstractItemModel::submit() | - |
987 | { | - |
988 | returnexecuted 2971 times by 21 tests: return true; Executed by:- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
true;executed 2971 times by 21 tests: return true; Executed by:- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 2971 |
989 | } | - |
990 | void QAbstractItemModel::revert() | - |
991 | { | - |
992 | | - |
993 | } | - |
994 | QVariant QAbstractItemModel::headerData(int section, Qt::Orientation orientation, int role) const | - |
995 | { | - |
996 | (void)orientation;; | - |
997 | if (role == Qt::DisplayRoleTRUE | evaluated 22540 times by 14 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QComboBox
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
| FALSE | evaluated 78640 times by 18 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QComboBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_languageChange
|
) | 22540-78640 |
998 | returnexecuted 22540 times by 14 tests: return section + 1; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QComboBox
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
section + 1;executed 22540 times by 14 tests: return section + 1; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QComboBox
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
| 22540 |
999 | returnexecuted 78640 times by 18 tests: return QVariant(); Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QComboBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_languageChange
QVariant();executed 78640 times by 18 tests: return QVariant(); Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QComboBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_languageChange
| 78640 |
1000 | } | - |
1001 | bool QAbstractItemModel::setHeaderData(int section, Qt::Orientation orientation, | - |
1002 | const QVariant &value, int role) | - |
1003 | { | - |
1004 | (void)section;; | - |
1005 | (void)orientation;; | - |
1006 | (void)value;; | - |
1007 | (void)role;; | - |
1008 | returnexecuted 84 times by 4 tests: return false; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QItemModel
- tst_QSortFilterProxyModel
false;executed 84 times by 4 tests: return false; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| 84 |
1009 | } | - |
1010 | void QAbstractItemModel::encodeData(const QModelIndexList &indexes, QDataStream &stream) const | - |
1011 | { | - |
1012 | QModelIndexList::ConstIterator it = indexes.begin(); | - |
1013 | for (; it != indexes.end()TRUE | evaluated 77 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
| FALSE | evaluated 28 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
|
; ++it) | 28-77 |
1014 | stream << (*it).row() << (*it).column() << itemData(*it);executed 77 times by 4 tests: stream << (*it).row() << (*it).column() << itemData(*it); Executed by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
| 77 |
1015 | }executed 28 times by 4 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
| 28 |
1016 | | - |
1017 | | - |
1018 | | - |
1019 | | - |
1020 | bool QAbstractItemModel::decodeData(int row, int column, const QModelIndex &parent, | - |
1021 | QDataStream &stream) | - |
1022 | { | - |
1023 | int top = 2147483647; | - |
1024 | int left = 2147483647; | - |
1025 | int bottom = 0; | - |
1026 | int right = 0; | - |
1027 | QVector<int> rows, columns; | - |
1028 | QVector<QMap<int, QVariant> > data; | - |
1029 | | - |
1030 | while (!stream.atEnd()TRUE | evaluated 46 times by 1 test | FALSE | evaluated 12 times by 1 test |
) { | 12-46 |
1031 | int r, c; | - |
1032 | QMap<int, QVariant> v; | - |
1033 | stream >> r >> c >> v; | - |
1034 | rows.append(r); | - |
1035 | columns.append(c); | - |
1036 | data.append(v); | - |
1037 | top = qMin(r, top); | - |
1038 | left = qMin(c, left); | - |
1039 | bottom = qMax(r, bottom); | - |
1040 | right = qMax(c, right); | - |
1041 | }executed 46 times by 1 test: end of block | 46 |
1042 | | - |
1043 | | - |
1044 | | - |
1045 | int dragRowCount = 0; | - |
1046 | int dragColumnCount = right - left + 1; | - |
1047 | | - |
1048 | | - |
1049 | QVector<int> rowsToInsert(bottom + 1); | - |
1050 | for (int i = 0; i < rows.count()TRUE | evaluated 46 times by 1 test | FALSE | evaluated 12 times by 1 test |
; ++i) | 12-46 |
1051 | rowsToInsert[rows.at(i)] = 1;executed 46 times by 1 test: rowsToInsert[rows.at(i)] = 1; | 46 |
1052 | for (int i = 0; i < rowsToInsert.count()TRUE | evaluated 24 times by 1 test | FALSE | evaluated 12 times by 1 test |
; ++i) { | 12-24 |
1053 | if (rowsToInsert.at(i) == 1TRUE | evaluated 22 times by 1 test | FALSE | evaluated 2 times by 1 test |
){ | 2-22 |
1054 | rowsToInsert[i] = dragRowCount; | - |
1055 | ++dragRowCount; | - |
1056 | }executed 22 times by 1 test: end of block | 22 |
1057 | }executed 24 times by 1 test: end of block | 24 |
1058 | for (int i = 0; i < rows.count()TRUE | evaluated 46 times by 1 test | FALSE | evaluated 12 times by 1 test |
; ++i) | 12-46 |
1059 | rows[i] = top + rowsToInsert.at(rows.at(i));executed 46 times by 1 test: rows[i] = top + rowsToInsert.at(rows.at(i)); | 46 |
1060 | | - |
1061 | QBitArray isWrittenTo(dragRowCount * dragColumnCount); | - |
1062 | | - |
1063 | | - |
1064 | int colCount = columnCount(parent); | - |
1065 | if (colCount == 0TRUE | never evaluated | FALSE | evaluated 12 times by 1 test |
) { | 0-12 |
1066 | insertColumns(colCount, dragColumnCount - colCount, parent); | - |
1067 | colCount = columnCount(parent); | - |
1068 | } never executed: end of block | 0 |
1069 | insertRows(row, dragRowCount, parent); | - |
1070 | | - |
1071 | row = qMax(0, row); | - |
1072 | column = qMax(0, column); | - |
1073 | | - |
1074 | QVector<QPersistentModelIndex> newIndexes(data.size()); | - |
1075 | | - |
1076 | for (int j = 0; j < data.size()TRUE | evaluated 46 times by 1 test | FALSE | evaluated 12 times by 1 test |
; ++j) { | 12-46 |
1077 | int relativeRow = rows.at(j) - top; | - |
1078 | int relativeColumn = columns.at(j) - left; | - |
1079 | int destinationRow = relativeRow + row; | - |
1080 | int destinationColumn = relativeColumn + column; | - |
1081 | int flat = (relativeRow * dragColumnCount) + relativeColumn; | - |
1082 | | - |
1083 | if (destinationColumn >= colCountTRUE | evaluated 9 times by 1 test | FALSE | evaluated 37 times by 1 test |
|| isWrittenTo.testBit(flat)TRUE | evaluated 3 times by 1 test | FALSE | evaluated 34 times by 1 test |
) { | 3-37 |
1084 | destinationColumn = qBound(column, destinationColumn, colCount - 1); | - |
1085 | destinationRow = row + dragRowCount; | - |
1086 | insertRows(row + dragRowCount, 1, parent); | - |
1087 | flat = (dragRowCount * dragColumnCount) + relativeColumn; | - |
1088 | isWrittenTo.resize(++dragRowCount * dragColumnCount); | - |
1089 | }executed 12 times by 1 test: end of block | 12 |
1090 | if (!isWrittenTo.testBit(flat)TRUE | evaluated 46 times by 1 test | FALSE | never evaluated |
) { | 0-46 |
1091 | newIndexes[j] = index(destinationRow, destinationColumn, parent); | - |
1092 | isWrittenTo.setBit(flat); | - |
1093 | }executed 46 times by 1 test: end of block | 46 |
1094 | }executed 46 times by 1 test: end of block | 46 |
1095 | | - |
1096 | for(int k = 0; k < newIndexes.size()TRUE | evaluated 46 times by 1 test | FALSE | evaluated 12 times by 1 test |
; k++) { | 12-46 |
1097 | if (newIndexes.at(k).isValid()TRUE | evaluated 46 times by 1 test | FALSE | never evaluated |
) | 0-46 |
1098 | setItemData(newIndexes.at(k), data.at(k));executed 46 times by 1 test: setItemData(newIndexes.at(k), data.at(k)); | 46 |
1099 | }executed 46 times by 1 test: end of block | 46 |
1100 | | - |
1101 | returnexecuted 12 times by 1 test: return true; true;executed 12 times by 1 test: return true; | 12 |
1102 | } | - |
1103 | void QAbstractItemModel::beginInsertRows(const QModelIndex &parent, int first, int last) | - |
1104 | { | - |
1105 | ((!(first >= 0)) ? qt_assert("first >= 0",__FILE__,2640) : qt_noop()); | - |
1106 | ((!(last >= first)) ? qt_assert("last >= first",__FILE__,2641) : qt_noop()); | - |
1107 | QAbstractItemModelPrivate * const d = d_func(); | - |
1108 | d->changes.push(QAbstractItemModelPrivate::Change(parent, first, last)); | - |
1109 | rowsAboutToBeInserted(parent, first, last, QPrivateSignal()); | - |
1110 | d->rowsAboutToBeInserted(parent, first, last); | - |
1111 | }executed 121996 times by 45 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- ...
| 121996 |
1112 | void QAbstractItemModel::endInsertRows() | - |
1113 | { | - |
1114 | QAbstractItemModelPrivate * const d = d_func(); | - |
1115 | QAbstractItemModelPrivate::Change change = d->changes.pop(); | - |
1116 | d->rowsInserted(change.parent, change.first, change.last); | - |
1117 | rowsInserted(change.parent, change.first, change.last, QPrivateSignal()); | - |
1118 | }executed 121996 times by 45 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- ...
| 121996 |
1119 | void QAbstractItemModel::beginRemoveRows(const QModelIndex &parent, int first, int last) | - |
1120 | { | - |
1121 | ((!(first >= 0)) ? qt_assert("first >= 0",__FILE__,2694) : qt_noop()); | - |
1122 | ((!(last >= first)) ? qt_assert("last >= first",__FILE__,2695) : qt_noop()); | - |
1123 | QAbstractItemModelPrivate * const d = d_func(); | - |
1124 | d->changes.push(QAbstractItemModelPrivate::Change(parent, first, last)); | - |
1125 | rowsAboutToBeRemoved(parent, first, last, QPrivateSignal()); | - |
1126 | d->rowsAboutToBeRemoved(parent, first, last); | - |
1127 | }executed 2893 times by 30 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- tst_QTableView
- ...
| 2893 |
1128 | void QAbstractItemModel::endRemoveRows() | - |
1129 | { | - |
1130 | QAbstractItemModelPrivate * const d = d_func(); | - |
1131 | QAbstractItemModelPrivate::Change change = d->changes.pop(); | - |
1132 | d->rowsRemoved(change.parent, change.first, change.last); | - |
1133 | rowsRemoved(change.parent, change.first, change.last, QPrivateSignal()); | - |
1134 | }executed 2893 times by 30 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- tst_QTableView
- ...
| 2893 |
1135 | bool QAbstractItemModelPrivate::allowMove(const QModelIndex &srcParent, int start, int end, const QModelIndex &destinationParent, int destinationStart, Qt::Orientation orientation) | - |
1136 | { | - |
1137 | | - |
1138 | if (destinationParent == srcParentTRUE | evaluated 53 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
| FALSE | evaluated 106 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
|
) | 53-106 |
1139 | returnexecuted 53 times by 2 tests: return !(destinationStart >= start && destinationStart <= end + 1); Executed by:- tst_QAbstractItemModel
- tst_QListWidget
!(destinationStart >= start && destinationStart <= end + 1);executed 53 times by 2 tests: return !(destinationStart >= start && destinationStart <= end + 1); Executed by:- tst_QAbstractItemModel
- tst_QListWidget
| 53 |
1140 | | - |
1141 | QModelIndex destinationAncestor = destinationParent; | - |
1142 | int pos = (TRUE | evaluated 106 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| FALSE | never evaluated |
Qt::Vertical == orientation)TRUE | evaluated 106 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| FALSE | never evaluated |
? destinationAncestor.row() : destinationAncestor.column(); | 0-106 |
1143 | for(;;) { | - |
1144 | if (destinationAncestor == srcParentTRUE | evaluated 75 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | evaluated 270 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
|
) { | 75-270 |
1145 | if (pos >= startTRUE | evaluated 67 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | evaluated 8 times by 1 test |
&& pos <= endTRUE | evaluated 60 times by 1 test | FALSE | evaluated 7 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
) | 7-67 |
1146 | returnexecuted 60 times by 1 test: return false; false;executed 60 times by 1 test: return false; | 60 |
1147 | break;executed 15 times by 2 tests: break; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
| 15 |
1148 | } | - |
1149 | | - |
1150 | if (!destinationAncestor.isValid()TRUE | evaluated 31 times by 3 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 239 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
) | 31-239 |
1151 | break;executed 31 times by 3 tests: break; Executed by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| 31 |
1152 | | - |
1153 | pos = (TRUE | evaluated 239 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| FALSE | never evaluated |
Qt::Vertical == orientation)TRUE | evaluated 239 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| FALSE | never evaluated |
? destinationAncestor.row() : destinationAncestor.column(); | 0-239 |
1154 | destinationAncestor = destinationAncestor.parent(); | - |
1155 | }executed 239 times by 3 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| 239 |
1156 | | - |
1157 | returnexecuted 46 times by 4 tests: return true; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
true;executed 46 times by 4 tests: return true; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| 46 |
1158 | } | - |
1159 | bool QAbstractItemModel::beginMoveRows(const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild) | - |
1160 | { | - |
1161 | ((!(sourceFirst >= 0)) ? qt_assert("sourceFirst >= 0",__FILE__,2843) : qt_noop()); | - |
1162 | ((!(sourceLast >= sourceFirst)) ? qt_assert("sourceLast >= sourceFirst",__FILE__,2844) : qt_noop()); | - |
1163 | ((!(destinationChild >= 0)) ? qt_assert("destinationChild >= 0",__FILE__,2845) : qt_noop()); | - |
1164 | QAbstractItemModelPrivate * const d = d_func(); | - |
1165 | | - |
1166 | if (!d->allowMove(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild, Qt::Vertical)TRUE | evaluated 87 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
| FALSE | evaluated 70 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
|
) { | 70-87 |
1167 | returnexecuted 87 times by 2 tests: return false; Executed by:- tst_QAbstractItemModel
- tst_QListWidget
false;executed 87 times by 2 tests: return false; Executed by:- tst_QAbstractItemModel
- tst_QListWidget
| 87 |
1168 | } | - |
1169 | | - |
1170 | QAbstractItemModelPrivate::Change sourceChange(sourceParent, sourceFirst, sourceLast); | - |
1171 | sourceChange.needsAdjust = sourceParent.isValid()TRUE | evaluated 39 times by 3 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 31 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QListWidget
|
&& sourceParent.row() >= destinationChildTRUE | evaluated 25 times by 3 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 14 times by 1 test |
&& sourceParent.parent() == destinationParentTRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
| FALSE | evaluated 15 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
; | 10-39 |
1172 | d->changes.push(sourceChange); | - |
1173 | int destinationLast = destinationChild + (sourceLast - sourceFirst); | - |
1174 | QAbstractItemModelPrivate::Change destinationChange(destinationParent, destinationChild, destinationLast); | - |
1175 | destinationChange.needsAdjust = destinationParent.isValid()TRUE | evaluated 37 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 33 times by 3 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
|
&& destinationParent.row() >= sourceLastTRUE | evaluated 16 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| FALSE | evaluated 21 times by 1 test |
&& destinationParent.parent() == sourceParentTRUE | evaluated 7 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | evaluated 9 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
; | 7-37 |
1176 | d->changes.push(destinationChange); | - |
1177 | | - |
1178 | rowsAboutToBeMoved(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild, QPrivateSignal()); | - |
1179 | d->itemsAboutToBeMoved(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild, Qt::Vertical); | - |
1180 | returnexecuted 70 times by 5 tests: return true; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
true;executed 70 times by 5 tests: return true; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
| 70 |
1181 | } | - |
1182 | void QAbstractItemModel::endMoveRows() | - |
1183 | { | - |
1184 | QAbstractItemModelPrivate * const d = d_func(); | - |
1185 | | - |
1186 | QAbstractItemModelPrivate::Change insertChange = d->changes.pop(); | - |
1187 | QAbstractItemModelPrivate::Change removeChange = d->changes.pop(); | - |
1188 | | - |
1189 | QModelIndex adjustedSource = removeChange.parent; | - |
1190 | QModelIndex adjustedDestination = insertChange.parent; | - |
1191 | | - |
1192 | const int numMoved = removeChange.last - removeChange.first + 1; | - |
1193 | if (insertChange.needsAdjustTRUE | evaluated 7 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| FALSE | evaluated 63 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
|
) | 7-63 |
1194 | adjustedDestination = createIndex(adjustedDestination.row() - numMoved, adjustedDestination.column(), adjustedDestination.internalPointer());executed 7 times by 2 tests: adjustedDestination = createIndex(adjustedDestination.row() - numMoved, adjustedDestination.column(), adjustedDestination.internalPointer()); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
| 7 |
1195 | | - |
1196 | if (removeChange.needsAdjustTRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
| FALSE | evaluated 60 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
|
) | 10-60 |
1197 | adjustedSource = createIndex(adjustedSource.row() + numMoved, adjustedSource.column(), adjustedSource.internalPointer());executed 10 times by 2 tests: adjustedSource = createIndex(adjustedSource.row() + numMoved, adjustedSource.column(), adjustedSource.internalPointer()); Executed by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
| 10 |
1198 | | - |
1199 | d->itemsMoved(adjustedSource, removeChange.first, removeChange.last, adjustedDestination, insertChange.first, Qt::Vertical); | - |
1200 | | - |
1201 | rowsMoved(adjustedSource, removeChange.first, removeChange.last, adjustedDestination, insertChange.first, QPrivateSignal()); | - |
1202 | }executed 70 times by 5 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
| 70 |
1203 | void QAbstractItemModel::beginInsertColumns(const QModelIndex &parent, int first, int last) | - |
1204 | { | - |
1205 | ((!(first >= 0)) ? qt_assert("first >= 0",__FILE__,2941) : qt_noop()); | - |
1206 | ((!(last >= first)) ? qt_assert("last >= first",__FILE__,2942) : qt_noop()); | - |
1207 | QAbstractItemModelPrivate * const d = d_func(); | - |
1208 | d->changes.push(QAbstractItemModelPrivate::Change(parent, first, last)); | - |
1209 | columnsAboutToBeInserted(parent, first, last, QPrivateSignal()); | - |
1210 | d->columnsAboutToBeInserted(parent, first, last); | - |
1211 | }executed 13532 times by 33 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItem
- tst_QStandardItemModel
- ...
| 13532 |
1212 | void QAbstractItemModel::endInsertColumns() | - |
1213 | { | - |
1214 | QAbstractItemModelPrivate * const d = d_func(); | - |
1215 | QAbstractItemModelPrivate::Change change = d->changes.pop(); | - |
1216 | d->columnsInserted(change.parent, change.first, change.last); | - |
1217 | columnsInserted(change.parent, change.first, change.last, QPrivateSignal()); | - |
1218 | }executed 13532 times by 33 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItem
- tst_QStandardItemModel
- ...
| 13532 |
1219 | void QAbstractItemModel::beginRemoveColumns(const QModelIndex &parent, int first, int last) | - |
1220 | { | - |
1221 | ((!(first >= 0)) ? qt_assert("first >= 0",__FILE__,2996) : qt_noop()); | - |
1222 | ((!(last >= first)) ? qt_assert("last >= first",__FILE__,2997) : qt_noop()); | - |
1223 | QAbstractItemModelPrivate * const d = d_func(); | - |
1224 | d->changes.push(QAbstractItemModelPrivate::Change(parent, first, last)); | - |
1225 | columnsAboutToBeRemoved(parent, first, last, QPrivateSignal()); | - |
1226 | d->columnsAboutToBeRemoved(parent, first, last); | - |
1227 | }executed 210 times by 16 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 210 |
1228 | void QAbstractItemModel::endRemoveColumns() | - |
1229 | { | - |
1230 | QAbstractItemModelPrivate * const d = d_func(); | - |
1231 | QAbstractItemModelPrivate::Change change = d->changes.pop(); | - |
1232 | d->columnsRemoved(change.parent, change.first, change.last); | - |
1233 | columnsRemoved(change.parent, change.first, change.last, QPrivateSignal()); | - |
1234 | }executed 210 times by 16 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 210 |
1235 | bool QAbstractItemModel::beginMoveColumns(const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild) | - |
1236 | { | - |
1237 | ((!(sourceFirst >= 0)) ? qt_assert("sourceFirst >= 0",__FILE__,3060) : qt_noop()); | - |
1238 | ((!(sourceLast >= sourceFirst)) ? qt_assert("sourceLast >= sourceFirst",__FILE__,3061) : qt_noop()); | - |
1239 | ((!(destinationChild >= 0)) ? qt_assert("destinationChild >= 0",__FILE__,3062) : qt_noop()); | - |
1240 | QAbstractItemModelPrivate * const d = d_func(); | - |
1241 | | - |
1242 | if (!d->allowMove(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild, Qt::Horizontal)TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) { | 0-2 |
1243 | return never executed: return false; false;never executed: return false; | 0 |
1244 | } | - |
1245 | | - |
1246 | QAbstractItemModelPrivate::Change sourceChange(sourceParent, sourceFirst, sourceLast); | - |
1247 | sourceChange.needsAdjust = sourceParent.isValid()TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
&& sourceParent.row() >= destinationChildTRUE | never evaluated | FALSE | never evaluated |
&& sourceParent.parent() == destinationParentTRUE | never evaluated | FALSE | never evaluated |
; | 0-2 |
1248 | d->changes.push(sourceChange); | - |
1249 | int destinationLast = destinationChild + (sourceLast - sourceFirst); | - |
1250 | QAbstractItemModelPrivate::Change destinationChange(destinationParent, destinationChild, destinationLast); | - |
1251 | destinationChange.needsAdjust = destinationParent.isValid()TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
&& destinationParent.row() >= sourceLastTRUE | never evaluated | FALSE | never evaluated |
&& destinationParent.parent() == sourceParentTRUE | never evaluated | FALSE | never evaluated |
; | 0-2 |
1252 | d->changes.push(destinationChange); | - |
1253 | | - |
1254 | d->itemsAboutToBeMoved(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild, Qt::Horizontal); | - |
1255 | | - |
1256 | columnsAboutToBeMoved(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild, QPrivateSignal()); | - |
1257 | returnexecuted 2 times by 1 test: return true; true;executed 2 times by 1 test: return true; | 2 |
1258 | } | - |
1259 | void QAbstractItemModel::endMoveColumns() | - |
1260 | { | - |
1261 | QAbstractItemModelPrivate * const d = d_func(); | - |
1262 | | - |
1263 | QAbstractItemModelPrivate::Change insertChange = d->changes.pop(); | - |
1264 | QAbstractItemModelPrivate::Change removeChange = d->changes.pop(); | - |
1265 | | - |
1266 | QModelIndex adjustedSource = removeChange.parent; | - |
1267 | QModelIndex adjustedDestination = insertChange.parent; | - |
1268 | | - |
1269 | const int numMoved = removeChange.last - removeChange.first + 1; | - |
1270 | if (insertChange.needsAdjustTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
1271 | adjustedDestination = createIndex(adjustedDestination.row(), adjustedDestination.column() - numMoved, adjustedDestination.internalPointer()); never executed: adjustedDestination = createIndex(adjustedDestination.row(), adjustedDestination.column() - numMoved, adjustedDestination.internalPointer()); | 0 |
1272 | | - |
1273 | if (removeChange.needsAdjustTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
1274 | adjustedSource = createIndex(adjustedSource.row(), adjustedSource.column() + numMoved, adjustedSource.internalPointer()); never executed: adjustedSource = createIndex(adjustedSource.row(), adjustedSource.column() + numMoved, adjustedSource.internalPointer()); | 0 |
1275 | | - |
1276 | d->itemsMoved(adjustedSource, removeChange.first, removeChange.last, adjustedDestination, insertChange.first, Qt::Horizontal); | - |
1277 | | - |
1278 | columnsMoved(adjustedSource, removeChange.first, removeChange.last, adjustedDestination, insertChange.first, QPrivateSignal()); | - |
1279 | }executed 2 times by 1 test: end of block | 2 |
1280 | void QAbstractItemModel::beginResetModel() | - |
1281 | { | - |
1282 | modelAboutToBeReset(QPrivateSignal()); | - |
1283 | }executed 8999 times by 41 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- tst_QSidebar
- tst_QSortFilterProxyModel
- ...
| 8999 |
1284 | void QAbstractItemModel::endResetModel() | - |
1285 | { | - |
1286 | QAbstractItemModelPrivate * const d = d_func(); | - |
1287 | d->invalidatePersistentIndexes(); | - |
1288 | QMetaObject::invokeMethod(this, "resetInternalData"); | - |
1289 | modelReset(QPrivateSignal()); | - |
1290 | }executed 8998 times by 41 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- tst_QSidebar
- tst_QSortFilterProxyModel
- ...
| 8998 |
1291 | void QAbstractItemModel::changePersistentIndex(const QModelIndex &from, const QModelIndex &to) | - |
1292 | { | - |
1293 | QAbstractItemModelPrivate * const d = d_func(); | - |
1294 | if (d->persistent.indexes.isEmpty()TRUE | never evaluated | FALSE | evaluated 12 times by 1 test |
) | 0-12 |
1295 | return; never executed: return; | 0 |
1296 | | - |
1297 | const auto it = d->persistent.indexes.constFind(from); | - |
1298 | if (it != d->persistent.indexes.cend()TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
) { | 0-12 |
1299 | QPersistentModelIndexData *data = *it; | - |
1300 | d->persistent.indexes.erase(it); | - |
1301 | data->index = to; | - |
1302 | if (to.isValid()TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
) | 0-12 |
1303 | d->persistent.insertMultiAtEnd(to, data);executed 12 times by 1 test: d->persistent.insertMultiAtEnd(to, data); | 12 |
1304 | else | - |
1305 | data->model = 0; never executed: data->model = 0; | 0 |
1306 | } | - |
1307 | }executed 12 times by 1 test: end of block | 12 |
1308 | void QAbstractItemModel::changePersistentIndexList(const QModelIndexList &from, | - |
1309 | const QModelIndexList &to) | - |
1310 | { | - |
1311 | QAbstractItemModelPrivate * const d = d_func(); | - |
1312 | if (d->persistent.indexes.isEmpty()TRUE | evaluated 4679 times by 24 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItem
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| FALSE | evaluated 735 times by 18 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItem
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
) | 735-4679 |
1313 | return;executed 4679 times by 24 tests: return; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItem
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| 4679 |
1314 | QVector<QPersistentModelIndexData *> toBeReinserted; | - |
1315 | toBeReinserted.reserve(to.count()); | - |
1316 | for (int i = 0; i < from.count()TRUE | evaluated 1672 times by 17 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 735 times by 18 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItem
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
; ++i) { | 735-1672 |
1317 | if (from.at(i) == to.at(i)TRUE | evaluated 1012 times by 16 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 660 times by 13 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
) | 660-1012 |
1318 | continue;executed 1012 times by 16 tests: continue; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 1012 |
1319 | const auto it = d->persistent.indexes.constFind(from.at(i)); | - |
1320 | if (it != d->persistent.indexes.cend()TRUE | evaluated 534 times by 13 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 126 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QTableWidget
|
) { | 126-534 |
1321 | QPersistentModelIndexData *data = *it; | - |
1322 | d->persistent.indexes.erase(it); | - |
1323 | data->index = to.at(i); | - |
1324 | if (data->index.isValid()TRUE | evaluated 534 times by 13 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | never evaluated |
) | 0-534 |
1325 | toBeReinserted << data;executed 534 times by 13 tests: toBeReinserted << data; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 534 |
1326 | else | - |
1327 | data->model = 0; never executed: data->model = 0; | 0 |
1328 | } | - |
1329 | }executed 660 times by 13 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 660 |
1330 | | - |
1331 | for (QVector<QPersistentModelIndexData *>::const_iterator it = toBeReinserted.constBegin(); | - |
1332 | it != toBeReinserted.constEnd()TRUE | evaluated 534 times by 13 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 735 times by 18 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItem
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
; ++it) { | 534-735 |
1333 | QPersistentModelIndexData *data = *it; | - |
1334 | d->persistent.insertMultiAtEnd(data->index, data); | - |
1335 | }executed 534 times by 13 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 534 |
1336 | }executed 735 times by 18 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItem
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 735 |
1337 | | - |
1338 | | - |
1339 | | - |
1340 | | - |
1341 | | - |
1342 | | - |
1343 | QModelIndexList QAbstractItemModel::persistentIndexList() const | - |
1344 | { | - |
1345 | const QAbstractItemModelPrivate * const d = d_func(); | - |
1346 | QModelIndexList result; | - |
1347 | result.reserve(d->persistent.indexes.count()); | - |
1348 | for (QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it = d->persistent.indexes.constBegin(); | - |
1349 | it != d->persistent.indexes.constEnd()TRUE | evaluated 1242 times by 11 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| FALSE | evaluated 1234 times by 15 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QListWidget
- tst_QPrinter
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
; ++it) { | 1234-1242 |
1350 | QPersistentModelIndexData *data = *it; | - |
1351 | result.append(data->index); | - |
1352 | }executed 1242 times by 11 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 1242 |
1353 | returnexecuted 1234 times by 15 tests: return result; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QListWidget
- tst_QPrinter
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
result;executed 1234 times by 15 tests: return result; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QListWidget
- tst_QPrinter
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| 1234 |
1354 | } | - |
1355 | QAbstractTableModel::QAbstractTableModel(QObject *parent) | - |
1356 | : QAbstractItemModel(parent) | - |
1357 | { | - |
1358 | | - |
1359 | }executed 430 times by 14 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| 430 |
1360 | | - |
1361 | | - |
1362 | | - |
1363 | | - |
1364 | | - |
1365 | | - |
1366 | | - |
1367 | QAbstractTableModel::QAbstractTableModel(QAbstractItemModelPrivate &dd, QObject *parent) | - |
1368 | : QAbstractItemModel(dd, parent) | - |
1369 | { | - |
1370 | | - |
1371 | }executed 287 times by 4 tests: end of block Executed by:- tst_QItemModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
| 287 |
1372 | | - |
1373 | | - |
1374 | | - |
1375 | | - |
1376 | | - |
1377 | QAbstractTableModel::~QAbstractTableModel() | - |
1378 | { | - |
1379 | | - |
1380 | } | - |
1381 | QModelIndex QAbstractTableModel::index(int row, int column, const QModelIndex &parent) const | - |
1382 | { | - |
1383 | returnexecuted 61784 times by 16 tests: return hasIndex(row, column, parent) ? createIndex(row, column) : QModelIndex(); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
hasIndex(row, column, parent) ? createIndex(row, column) : QModelIndex();executed 61784 times by 16 tests: return hasIndex(row, column, parent) ? createIndex(row, column) : QModelIndex(); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
| 61784 |
1384 | } | - |
1385 | QModelIndex QAbstractTableModel::parent(const QModelIndex &) const | - |
1386 | { | - |
1387 | returnexecuted 41542 times by 13 tests: return QModelIndex(); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
QModelIndex();executed 41542 times by 13 tests: return QModelIndex(); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| 41542 |
1388 | } | - |
1389 | | - |
1390 | | - |
1391 | | - |
1392 | | - |
1393 | QModelIndex QAbstractTableModel::sibling(int row, int column, const QModelIndex &) const | - |
1394 | { | - |
1395 | returnexecuted 7902 times by 5 tests: return index(row, column); Executed by:- tst_QAccessibility
- tst_QItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
index(row, column);executed 7902 times by 5 tests: return index(row, column); Executed by:- tst_QAccessibility
- tst_QItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| 7902 |
1396 | } | - |
1397 | | - |
1398 | bool QAbstractTableModel::hasChildren(const QModelIndex &parent) const | - |
1399 | { | - |
1400 | if (parent.model() == thisTRUE | evaluated 2459 times by 2 testsEvaluated by:- tst_QComboBox
- tst_QItemModel
| FALSE | evaluated 254 times by 2 testsEvaluated by:- tst_QItemModel
- tst_QTreeView
|
|| !parent.isValid()TRUE | evaluated 254 times by 2 testsEvaluated by:- tst_QItemModel
- tst_QTreeView
| FALSE | never evaluated |
) | 0-2459 |
1401 | returnexecuted 2713 times by 3 tests: return rowCount(parent) > 0 && columnCount(parent) > 0; Executed by:- tst_QComboBox
- tst_QItemModel
- tst_QTreeView
rowCount(parent) > 0 && columnCount(parent) > 0;executed 2713 times by 3 tests: return rowCount(parent) > 0 && columnCount(parent) > 0; Executed by:- tst_QComboBox
- tst_QItemModel
- tst_QTreeView
| 2713 |
1402 | return never executed: return false; false;never executed: return false; | 0 |
1403 | } | - |
1404 | | - |
1405 | | - |
1406 | | - |
1407 | | - |
1408 | Qt::ItemFlags QAbstractTableModel::flags(const QModelIndex &index) const | - |
1409 | { | - |
1410 | Qt::ItemFlags f = QAbstractItemModel::flags(index); | - |
1411 | if (index.isValid()TRUE | evaluated 10749 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QTableView
- tst_QTreeView
| FALSE | evaluated 2 times by 1 test |
) | 2-10749 |
1412 | f |= Qt::ItemNeverHasChildren;executed 10749 times by 8 tests: f |= Qt::ItemNeverHasChildren; Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QTableView
- tst_QTreeView
| 10749 |
1413 | returnexecuted 10751 times by 9 tests: return f; Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QTableView
- tst_QTreeView
f;executed 10751 times by 9 tests: return f; Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QTableView
- tst_QTreeView
| 10751 |
1414 | } | - |
1415 | QAbstractListModel::QAbstractListModel(QObject *parent) | - |
1416 | : QAbstractItemModel(parent) | - |
1417 | { | - |
1418 | | - |
1419 | }executed 594 times by 23 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QObject
- tst_QSortFilterProxyModel
- tst_QStringListModel
- tst_QTableView
- tst_QTreeView
| 594 |
1420 | | - |
1421 | | - |
1422 | | - |
1423 | | - |
1424 | | - |
1425 | | - |
1426 | | - |
1427 | QAbstractListModel::QAbstractListModel(QAbstractItemModelPrivate &dd, QObject *parent) | - |
1428 | : QAbstractItemModel(dd, parent) | - |
1429 | { | - |
1430 | | - |
1431 | } never executed: end of block | 0 |
1432 | | - |
1433 | | - |
1434 | | - |
1435 | | - |
1436 | | - |
1437 | QAbstractListModel::~QAbstractListModel() | - |
1438 | { | - |
1439 | | - |
1440 | } | - |
1441 | QModelIndex QAbstractListModel::index(int row, int column, const QModelIndex &parent) const | - |
1442 | { | - |
1443 | returnexecuted 99398 times by 20 tests: return hasIndex(row, column, parent) ? createIndex(row, column) : QModelIndex(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStringListModel
- tst_QTableView
- tst_QTreeView
hasIndex(row, column, parent) ? createIndex(row, column) : QModelIndex();executed 99398 times by 20 tests: return hasIndex(row, column, parent) ? createIndex(row, column) : QModelIndex(); Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStringListModel
- tst_QTableView
- tst_QTreeView
| 99398 |
1444 | } | - |
1445 | | - |
1446 | | - |
1447 | | - |
1448 | | - |
1449 | | - |
1450 | | - |
1451 | | - |
1452 | QModelIndex QAbstractListModel::parent(const QModelIndex & ) const | - |
1453 | { | - |
1454 | returnexecuted 33454 times by 17 tests: return QModelIndex(); Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontDialog
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
QModelIndex();executed 33454 times by 17 tests: return QModelIndex(); Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontDialog
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
| 33454 |
1455 | } | - |
1456 | | - |
1457 | | - |
1458 | | - |
1459 | | - |
1460 | QModelIndex QAbstractListModel::sibling(int row, int column, const QModelIndex &) const | - |
1461 | { | - |
1462 | returnexecuted 261 times by 5 tests: return index(row, column); Executed by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QItemModel
- tst_QListView
- tst_QListWidget
index(row, column);executed 261 times by 5 tests: return index(row, column); Executed by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QItemModel
- tst_QListView
- tst_QListWidget
| 261 |
1463 | } | - |
1464 | | - |
1465 | | - |
1466 | | - |
1467 | | - |
1468 | Qt::ItemFlags QAbstractListModel::flags(const QModelIndex &index) const | - |
1469 | { | - |
1470 | Qt::ItemFlags f = QAbstractItemModel::flags(index); | - |
1471 | if (index.isValid()TRUE | evaluated 12060 times by 14 testsEvaluated by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QIdentityProxyModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTreeView
| FALSE | evaluated 18 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QItemModel
- tst_QSortFilterProxyModel
|
) | 18-12060 |
1472 | f |= Qt::ItemNeverHasChildren;executed 12060 times by 14 tests: f |= Qt::ItemNeverHasChildren; Executed by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QIdentityProxyModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTreeView
| 12060 |
1473 | returnexecuted 12078 times by 16 tests: return f; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTreeView
f;executed 12078 times by 16 tests: return f; Executed by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTreeView
| 12078 |
1474 | } | - |
1475 | int QAbstractListModel::columnCount(const QModelIndex &parent) const | - |
1476 | { | - |
1477 | returnexecuted 134235 times by 22 tests: return parent.isValid() ? 0 : 1; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QStringListModel
- tst_QTableView
- tst_QTreeView
parent.isValid() ? 0 : 1;executed 134235 times by 22 tests: return parent.isValid() ? 0 : 1; Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QStringListModel
- tst_QTableView
- tst_QTreeView
| 134235 |
1478 | } | - |
1479 | | - |
1480 | bool QAbstractListModel::hasChildren(const QModelIndex &parent) const | - |
1481 | { | - |
1482 | returnexecuted 1661 times by 7 tests: return parent.isValid() ? false : (rowCount() > 0); Executed by:- tst_ModelTest
- tst_QColumnView
- tst_QComboBox
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QTreeView
parent.isValid() ? false : (rowCount() > 0);executed 1661 times by 7 tests: return parent.isValid() ? false : (rowCount() > 0); Executed by:- tst_ModelTest
- tst_QColumnView
- tst_QComboBox
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QTreeView
| 1661 |
1483 | } | - |
1484 | bool QAbstractTableModel::dropMimeData(const QMimeData *data, Qt::DropAction action, | - |
1485 | int row, int column, const QModelIndex &parent) | - |
1486 | { | - |
1487 | if (!dataTRUE | never evaluated | FALSE | never evaluated |
|| !(action == Qt::CopyActionTRUE | never evaluated | FALSE | never evaluated |
|| action == Qt::MoveActionTRUE | never evaluated | FALSE | never evaluated |
)) | 0 |
1488 | return never executed: return false; false;never executed: return false; | 0 |
1489 | | - |
1490 | QStringList types = mimeTypes(); | - |
1491 | if (types.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1492 | return never executed: return false; false;never executed: return false; | 0 |
1493 | QString format = types.at(0); | - |
1494 | if (!data->hasFormat(format)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1495 | return never executed: return false; false;never executed: return false; | 0 |
1496 | | - |
1497 | QByteArray encoded = data->data(format); | - |
1498 | QDataStream stream(&encoded, QIODevice::ReadOnly); | - |
1499 | | - |
1500 | | - |
1501 | if (parent.isValid()TRUE | never evaluated | FALSE | never evaluated |
&& row == -1TRUE | never evaluated | FALSE | never evaluated |
&& column == -1TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
1502 | int top = 2147483647; | - |
1503 | int left = 2147483647; | - |
1504 | QVector<int> rows, columns; | - |
1505 | QVector<QMap<int, QVariant> > data; | - |
1506 | | - |
1507 | while (!stream.atEnd()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
1508 | int r, c; | - |
1509 | QMap<int, QVariant> v; | - |
1510 | stream >> r >> c >> v; | - |
1511 | rows.append(r); | - |
1512 | columns.append(c); | - |
1513 | data.append(v); | - |
1514 | top = qMin(r, top); | - |
1515 | left = qMin(c, left); | - |
1516 | } never executed: end of block | 0 |
1517 | | - |
1518 | for (int i = 0; i < data.size()TRUE | never evaluated | FALSE | never evaluated |
; ++i) { | 0 |
1519 | int r = (rows.at(i) - top) + parent.row(); | - |
1520 | int c = (columns.at(i) - left) + parent.column(); | - |
1521 | if (hasIndex(r, c)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1522 | setItemData(index(r, c), data.at(i)); never executed: setItemData(index(r, c), data.at(i)); | 0 |
1523 | } never executed: end of block | 0 |
1524 | | - |
1525 | return never executed: return true; true;never executed: return true; | 0 |
1526 | } | - |
1527 | | - |
1528 | | - |
1529 | return never executed: return decodeData(row, column, parent, stream); decodeData(row, column, parent, stream);never executed: return decodeData(row, column, parent, stream); | 0 |
1530 | } | - |
1531 | | - |
1532 | | - |
1533 | | - |
1534 | | - |
1535 | bool QAbstractListModel::dropMimeData(const QMimeData *data, Qt::DropAction action, | - |
1536 | int row, int column, const QModelIndex &parent) | - |
1537 | { | - |
1538 | if (!dataTRUE | never evaluated | FALSE | never evaluated |
|| !(action == Qt::CopyActionTRUE | never evaluated | FALSE | never evaluated |
|| action == Qt::MoveActionTRUE | never evaluated | FALSE | never evaluated |
)) | 0 |
1539 | return never executed: return false; false;never executed: return false; | 0 |
1540 | | - |
1541 | QStringList types = mimeTypes(); | - |
1542 | if (types.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1543 | return never executed: return false; false;never executed: return false; | 0 |
1544 | QString format = types.at(0); | - |
1545 | if (!data->hasFormat(format)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1546 | return never executed: return false; false;never executed: return false; | 0 |
1547 | | - |
1548 | QByteArray encoded = data->data(format); | - |
1549 | QDataStream stream(&encoded, QIODevice::ReadOnly); | - |
1550 | | - |
1551 | | - |
1552 | if (parent.isValid()TRUE | never evaluated | FALSE | never evaluated |
&& row == -1TRUE | never evaluated | FALSE | never evaluated |
&& column == -1TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
1553 | int top = 2147483647; | - |
1554 | int left = 2147483647; | - |
1555 | QVector<int> rows, columns; | - |
1556 | QVector<QMap<int, QVariant> > data; | - |
1557 | | - |
1558 | while (!stream.atEnd()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
1559 | int r, c; | - |
1560 | QMap<int, QVariant> v; | - |
1561 | stream >> r >> c >> v; | - |
1562 | rows.append(r); | - |
1563 | columns.append(c); | - |
1564 | data.append(v); | - |
1565 | top = qMin(r, top); | - |
1566 | left = qMin(c, left); | - |
1567 | } never executed: end of block | 0 |
1568 | | - |
1569 | for (int i = 0; i < data.size()TRUE | never evaluated | FALSE | never evaluated |
; ++i) { | 0 |
1570 | int r = (rows.at(i) - top) + parent.row(); | - |
1571 | if (columns.at(i) == leftTRUE | never evaluated | FALSE | never evaluated |
&& hasIndex(r, 0)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1572 | setItemData(index(r), data.at(i)); never executed: setItemData(index(r), data.at(i)); | 0 |
1573 | } never executed: end of block | 0 |
1574 | | - |
1575 | return never executed: return true; true;never executed: return true; | 0 |
1576 | } | - |
1577 | | - |
1578 | if (row == -1TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1579 | row = rowCount(parent); never executed: row = rowCount(parent); | 0 |
1580 | | - |
1581 | | - |
1582 | return never executed: return decodeData(row, column, parent, stream); decodeData(row, column, parent, stream);never executed: return decodeData(row, column, parent, stream); | 0 |
1583 | } | - |
1584 | void QAbstractItemModelPrivate::Persistent::insertMultiAtEnd(const QModelIndex& key, QPersistentModelIndexData *data) | - |
1585 | { | - |
1586 | QHash<QModelIndex,QPersistentModelIndexData *>::iterator newIt = | - |
1587 | indexes.insertMulti(key, data); | - |
1588 | QHash<QModelIndex,QPersistentModelIndexData *>::iterator it = newIt + 1; | - |
1589 | while (it != indexes.end()TRUE | evaluated 6622 times by 14 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| FALSE | evaluated 2424 times by 20 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
&& it.key() == keyTRUE | evaluated 31 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QStandardItemModel
| FALSE | evaluated 6591 times by 14 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
) { | 31-6622 |
1590 | qSwap(*newIt,*it); | - |
1591 | newIt = it; | - |
1592 | ++it; | - |
1593 | }executed 31 times by 4 tests: end of block Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QStandardItemModel
| 31 |
1594 | }executed 9015 times by 21 tests: end of block Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| 9015 |
1595 | | - |
1596 | | - |
| | |