qabstractitemmodel.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qabstractitemmodel.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5QPersistentModelIndexData *QPersistentModelIndexData::create(const QModelIndex &index)-
6{-
7 ((!(index.isValid())) ? qt_assert("index.isValid()",__FILE__,51) : 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 QHash<QModelIndex, QPersistentModelIndexData *>::iterator it = indexes.find(index);-
12 if (it != indexes.end()
it != indexes.end()Description
TRUEevaluated 81850 times by 34 tests
Evaluated 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
  • ...
FALSEevaluated 25692 times by 41 tests
Evaluated 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
  • ...
) {
25692-81850
13 d = (*it);-
14 }
executed 81850 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 {
81850
15 d = new QPersistentModelIndexData(index);-
16 indexes.insert(index, d);-
17 }
executed 25692 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
  • ...
25692
18 ((!(d)) ? qt_assert("d",__FILE__,62) : qt_noop());-
19 return
executed 107542 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 107542 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
  • ...
107542
20}-
21-
22void QPersistentModelIndexData::destroy(QPersistentModelIndexData *data)-
23{-
24 ((!(data)) ? qt_assert("data",__FILE__,68) : qt_noop());-
25 ((!(data->ref.load() == 0)) ? qt_assert("data->ref.load() == 0",__FILE__,69) : qt_noop());-
26 QAbstractItemModel *model = const_cast<QAbstractItemModel *>(data->model);-
27-
28 if (model
modelDescription
TRUEevaluated 21152 times by 38 tests
Evaluated 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
  • ...
FALSEevaluated 4526 times by 39 tests
Evaluated 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
  • ...
) {
4526-21152
29 QAbstractItemModelPrivate *p = model->d_func();-
30 ((!(p)) ? qt_assert("p",__FILE__,74) : qt_noop());-
31 p->removePersistentIndexData(data);-
32 }
executed 21152 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
  • ...
21152
33 delete data;-
34}
executed 25678 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
  • ...
25678
35QPersistentModelIndex::QPersistentModelIndex()-
36 : d(0)-
37{-
38}
executed 37895 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
  • ...
37895
39QPersistentModelIndex::QPersistentModelIndex(const QPersistentModelIndex &other)-
40 : d(other.d)-
41{-
42 if (d
dDescription
TRUEevaluated 85101 times by 34 tests
Evaluated 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
  • ...
FALSEevaluated 1764 times by 36 tests
Evaluated 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 85101 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
  • ...
1764-85101
43}
executed 86865 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
  • ...
86865
44-
45-
46-
47-
48-
49QPersistentModelIndex::QPersistentModelIndex(const QModelIndex &index)-
50 : d(0)-
51{-
52 if (index.isValid()
index.isValid()Description
TRUEevaluated 99822 times by 41 tests
Evaluated 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
  • ...
FALSEevaluated 612 times by 23 tests
Evaluated 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
) {
612-99822
53 d = QPersistentModelIndexData::create(index);-
54 d->ref.ref();-
55 }
executed 99822 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
  • ...
99822
56}
executed 100434 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
  • ...
100434
57-
58-
59-
60-
61-
62-
63-
64QPersistentModelIndex::~QPersistentModelIndex()-
65{-
66 if (d
dDescription
TRUEevaluated 187982 times by 43 tests
Evaluated 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
  • ...
FALSEevaluated 34542 times by 52 tests
Evaluated 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()
!d->ref.deref()Description
TRUEevaluated 17662 times by 43 tests
Evaluated 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
  • ...
FALSEevaluated 170320 times by 36 tests
Evaluated 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
  • ...
) {
17662-187982
67 QPersistentModelIndexData::destroy(d);-
68 d = 0;-
69 }
executed 17662 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
  • ...
17662
70}
executed 222524 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
  • ...
222524
71bool QPersistentModelIndex::operator==(const QPersistentModelIndex &other) const-
72{-
73 if (d
dDescription
TRUEevaluated 41174 times by 27 tests
Evaluated 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
  • ...
FALSEevaluated 703 times by 15 tests
Evaluated 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.d
other.dDescription
TRUEevaluated 39583 times by 27 tests
Evaluated 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
  • ...
FALSEevaluated 1591 times by 6 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QListView
  • tst_QTreeView
  • tst_QTreeWidget
)
703-41174
74 return
executed 39583 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 39583 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
  • ...
39583
75 return
executed 2294 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 2294 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
2294
76}-
77bool QPersistentModelIndex::operator<(const QPersistentModelIndex &other) const-
78{-
79 if (d
dDescription
TRUEevaluated 1896 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEnever evaluated
&& other.d
other.dDescription
TRUEevaluated 1896 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
FALSEnever evaluated
)
0-1896
80 return
executed 1896 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 1896 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
1896
81-
82 return
never executed: return d < other.d;
d < other.d;
never executed: return d < other.d;
0
83}-
84QPersistentModelIndex &QPersistentModelIndex::operator=(const QPersistentModelIndex &other)-
85{-
86 if (d == other.d
d == other.dDescription
TRUEevaluated 152 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QColumnView
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemView
  • tst_QListView
  • tst_QSidebar
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 14713 times by 21 tests
Evaluated 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-14713
87 return
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
*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 (d
dDescription
TRUEevaluated 14431 times by 15 tests
Evaluated 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
FALSEevaluated 282 times by 18 tests
Evaluated 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()
!d->ref.deref()Description
TRUEevaluated 5981 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QItemView
  • tst_QListView
  • tst_QTableWidget
  • tst_QTreeView
FALSEevaluated 8450 times by 15 tests
Evaluated 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
)
282-14431
89 QPersistentModelIndexData::destroy(d);
executed 5981 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
5981
90 d = other.d;-
91 if (d
dDescription
TRUEevaluated 14696 times by 21 tests
Evaluated 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
FALSEevaluated 17 times by 5 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QListView
  • tst_QTreeView
  • tst_QTreeWidget
) d->ref.ref();
executed 14696 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
17-14696
92 return
executed 14713 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 14713 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
14713
93}-
94QPersistentModelIndex &QPersistentModelIndex::operator=(const QModelIndex &other)-
95{-
96 if (d
dDescription
TRUEevaluated 4900 times by 28 tests
Evaluated 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_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • ...
FALSEevaluated 22786 times by 44 tests
Evaluated 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()
!d->ref.deref()Description
TRUEevaluated 2035 times by 26 tests
Evaluated 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_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 2865 times by 24 tests
Evaluated 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
)
2035-22786
97 QPersistentModelIndexData::destroy(d);
executed 2035 times by 26 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_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
2035
98 if (other.isValid()
other.isValid()Description
TRUEevaluated 7720 times by 32 tests
Evaluated 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
  • ...
FALSEevaluated 19966 times by 43 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
) {
7720-19966
99 d = QPersistentModelIndexData::create(other);-
100 if (d
dDescription
TRUEevaluated 7720 times by 32 tests
Evaluated 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
  • ...
FALSEnever evaluated
) d->ref.ref();
executed 7720 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-7720
101 }
executed 7720 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 {
7720
102 d = 0;-
103 }
executed 19966 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
  • ...
19966
104 return
executed 27686 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 27686 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
  • ...
27686
105}-
106-
107-
108-
109-
110-
111-
112-
113QPersistentModelIndex::operator const QModelIndex&() const-
114{-
115 static const QModelIndex invalid;-
116 if (d
dDescription
TRUEevaluated 112865 times by 40 tests
Evaluated 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
  • ...
FALSEevaluated 524411 times by 48 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLayout
  • tst_QLineEdit
  • ...
)
112865-524411
117 return
executed 112865 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 112865 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
  • ...
112865
118 return
executed 524411 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 524411 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
  • ...
524411
119}-
120bool QPersistentModelIndex::operator==(const QModelIndex &other) const-
121{-
122 if (d
dDescription
TRUEevaluated 809 times by 9 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QColumnView
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QItemModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTreeView
FALSEevaluated 1842 times by 22 tests
Evaluated 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-1842
123 return
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
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 return
executed 1842 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 1842 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
1842
125}-
126bool QPersistentModelIndex::operator!=(const QModelIndex &other) const-
127{-
128 if (d
dDescription
TRUEevaluated 179 times by 3 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemView
  • tst_QTableView
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemView
)
2-179
129 return
executed 179 times by 3 tests: return d->index != other;
Executed by:
  • tst_QAbstractItemView
  • tst_QItemView
  • tst_QTableView
d->index != other;
executed 179 times by 3 tests: return d->index != other;
Executed by:
  • tst_QAbstractItemView
  • tst_QItemView
  • tst_QTableView
179
130 return
executed 2 times by 1 test: return other.isValid();
Executed by:
  • tst_QAbstractItemView
other.isValid();
executed 2 times by 1 test: return other.isValid();
Executed by:
  • tst_QAbstractItemView
2
131}-
132-
133-
134-
135-
136-
137-
138-
139int QPersistentModelIndex::row() const-
140{-
141 if (d
dDescription
TRUEevaluated 274431 times by 39 tests
Evaluated 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
  • ...
FALSEevaluated 3910 times by 36 tests
Evaluated 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
  • ...
)
3910-274431
142 return
executed 274431 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 274431 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
  • ...
274431
143 return
executed 3910 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 3910 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
  • ...
3910
144}-
145-
146-
147-
148-
149-
150-
151-
152int QPersistentModelIndex::column() const-
153{-
154 if (d
dDescription
TRUEevaluated 207290 times by 34 tests
Evaluated 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
  • ...
FALSEevaluated 1931 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • ...
)
1931-207290
155 return
executed 207290 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 207290 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
  • ...
207290
156 return
executed 1931 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 1931 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
  • ...
1931
157}-
158void *QPersistentModelIndex::internalPointer() const-
159{-
160 if (d
dDescription
TRUEevaluated 108 times by 2 tests
Evaluated by:
  • tst_QListWidget
  • tst_QTreeWidget
FALSEnever evaluated
)
0-108
161 return
executed 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}-
164quintptr QPersistentModelIndex::internalId() const-
165{-
166 if (d
dDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEnever evaluated
)
0-4
167 return
executed 4 times by 1 test: return d->index.internalId();
Executed by:
  • tst_QAbstractItemModel
d->index.internalId();
executed 4 times by 1 test: return d->index.internalId();
Executed by:
  • tst_QAbstractItemModel
4
168 return
never executed: return 0;
0;
never executed: return 0;
0
169}-
170-
171-
172-
173-
174-
175-
176-
177QModelIndex QPersistentModelIndex::parent() const-
178{-
179 if (d
dDescription
TRUEevaluated 208739 times by 30 tests
Evaluated 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
  • ...
FALSEevaluated 3309 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
)
3309-208739
180 return
executed 208739 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 208739 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
  • ...
208739
181 return
executed 3309 times by 11 tests: return QModelIndex();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
QModelIndex();
executed 3309 times by 11 tests: return QModelIndex();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QListWidget
  • tst_QSidebar
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
3309
182}-
183QModelIndex QPersistentModelIndex::sibling(int row, int column) const-
184{-
185 if (d
dDescription
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
FALSEnever evaluated
)
0-13
186 return
executed 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}-
189QModelIndex QPersistentModelIndex::child(int row, int column) const-
190{-
191 if (d
dDescription
TRUEnever evaluated
FALSEnever 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-
202QVariant QPersistentModelIndex::data(int role) const-
203{-
204 if (d
dDescription
TRUEevaluated 232 times by 6 tests
Evaluated by:
  • tst_QComboBox
  • tst_QDataWidgetMapper
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QPrinter
  • tst_QTableWidget
FALSEnever evaluated
)
0-232
205 return
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
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-
214Qt::ItemFlags QPersistentModelIndex::flags() const-
215{-
216 if (d
dDescription
TRUEevaluated 841 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTreeView
  • tst_QTreeWidget
FALSEnever evaluated
)
0-841
217 return
executed 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-
224const QAbstractItemModel *QPersistentModelIndex::model() const-
225{-
226 if (d
dDescription
TRUEevaluated 38769 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEnever evaluated
)
0-38769
227 return
executed 38769 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 38769 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
38769
228 return
never executed: return 0;
0;
never executed: return 0;
0
229}-
230bool QPersistentModelIndex::isValid() const-
231{-
232 return
executed 148185 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
dDescription
TRUEevaluated 140945 times by 38 tests
Evaluated by:
  • 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_QListView
  • tst_QListWidget
  • tst_QMenu
  • ...
FALSEevaluated 7240 times by 38 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • 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_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSidebar
  • ...
&& d->index.isValid()
d->index.isValid()Description
TRUEevaluated 139154 times by 38 tests
Evaluated by:
  • 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_QListView
  • tst_QListWidget
  • tst_QMenu
  • ...
FALSEevaluated 1791 times by 22 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemSelectionModel
  • tst_QListWidget
  • tst_QMenu
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
;
executed 148185 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
  • ...
1791-148185
233}-
234-
235-
236QDebug 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 return
executed 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-
244QDebug operator<<(QDebug dbg, const QPersistentModelIndex &idx)-
245{-
246 if (idx.d
idx.dDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
)
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();
Executed by:
  • tst_QVariant
1
250 return
executed 1 time by 1 test: return dbg;
Executed by:
  • tst_QVariant
dbg;
executed 1 time by 1 test: return dbg;
Executed by:
  • tst_QVariant
1
251}-
252-
253-
254class QEmptyItemModel : public QAbstractItemModel-
255{-
256public:-
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 { return
executed 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 { return
executed 1601 times by 24 tests: return 0;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • 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 1601 times by 24 tests: return 0;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • 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
}
1601
261 int columnCount(const QModelIndex &) const override { return
executed 2500 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 2500 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
  • ...
}
2500
262 bool hasChildren(const QModelIndex &) const override { return
executed 252 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 252 times by 8 tests: return false;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QItemView
  • tst_QSortFilterProxyModel
  • tst_QSplitter
  • tst_QStyleSheetStyle
  • tst_QTreeView
}
252
263 QVariant data(const QModelIndex &, int) const override { return
executed 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-
266namespace { 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::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 46 times by 46 tests
Evaluated 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
  • ...
FALSEnever 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; return
executed 208548 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 208548 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-208548
267-
268-
269QAbstractItemModelPrivate::~QAbstractItemModelPrivate()-
270{-
271}-
272-
273QAbstractItemModel *QAbstractItemModelPrivate::staticEmptyModel()-
274{-
275 return
executed 208548 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 208548 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
  • ...
208548
276}-
277-
278namespace {-
279 struct DefaultRoleNames : public QHash<int, QByteArray>-
280 {-
281 DefaultRoleNames() {-
282 (*this)[Qt::DisplayRole] = "display";-
283 (*this)[Qt::DecorationRole] = "decoration";-
284 (*this)[Qt::EditRole] = "edit";-
285 (*this)[Qt::ToolTipRole] = "toolTip";-
286 (*this)[Qt::StatusTipRole] = "statusTip";-
287 (*this)[Qt::WhatsThisRole] = "whatsThis";-
288 }
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
289 };-
290}-
291-
292namespace { 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::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 54 times by 54 tests
Evaluated 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
  • ...
FALSEnever 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; return
executed 5376 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 5376 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-5376
293-
294const QHash<int,QByteArray> &QAbstractItemModelPrivate::defaultRoleNames()-
295{-
296 return
executed 5376 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 5376 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
  • ...
5376
297}-
298-
299-
300static uint typeOfVariant(const QVariant &value)-
301{-
302-
303 switch (value.userType()) {-
304 case
never executed: case QVariant::Bool:
QVariant::Bool:
never executed: case QVariant::Bool:
0
305 case
executed 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
306 case
never executed: case QVariant::UInt:
QVariant::UInt:
never executed: case QVariant::UInt:
0
307 case
never executed: case QVariant::LongLong:
QVariant::LongLong:
never executed: case QVariant::LongLong:
0
308 case
never executed: case QVariant::ULongLong:
QVariant::ULongLong:
never executed: case QVariant::ULongLong:
0
309 case
never executed: case QVariant::Char:
QVariant::Char:
never executed: case QVariant::Char:
0
310 case
never executed: case QMetaType::Short:
QMetaType::Short:
never executed: case QMetaType::Short:
0
311 case
never executed: case QMetaType::UShort:
QMetaType::UShort:
never executed: case QMetaType::UShort:
0
312 case
never executed: case QMetaType::UChar:
QMetaType::UChar:
never executed: case QMetaType::UChar:
0
313 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
314 case
never executed: case QMetaType::Long:
QMetaType::Long:
never executed: case QMetaType::Long:
0
315 return
executed 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
316 case
never executed: case QVariant::Double:
QVariant::Double:
never executed: case QVariant::Double:
0
317 case
never executed: case QMetaType::Float:
QMetaType::Float:
never executed: case QMetaType::Float:
0
318 return
never executed: return 1;
1;
never executed: return 1;
0
319 default
executed 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
320 return
executed 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
321 }-
322}-
323-
324-
325-
326-
327-
328-
329-
330bool QAbstractItemModelPrivate::variantLessThan(const QVariant &v1, const QVariant &v2)-
331{-
332 switch(qMax(typeOfVariant(v1), typeOfVariant(v2)))-
333 {-
334 case
executed 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
335 return
executed 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
336 case
never executed: case 1:
1:
never executed: case 1:
0
337 return
never executed: return v1.toReal() < v2.toReal();
v1.toReal() < v2.toReal();
never executed: return v1.toReal() < v2.toReal();
0
338 default
executed 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
339 return
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
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
340 }-
341}-
342-
343void QAbstractItemModelPrivate::removePersistentIndexData(QPersistentModelIndexData *data)-
344{-
345 if (data->index.isValid()
data->index.isValid()Description
TRUEevaluated 21150 times by 38 tests
Evaluated 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
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDirModel
) {
2-21150
346 int removed = persistent.indexes.remove(data->index);-
347 ((!(removed == 1)) ? qt_assert_x("QPersistentModelIndex::~QPersistentModelIndex", "persistent model indexes corrupted",-
348 __FILE__-
349 ,-
350 562-
351 ) : qt_noop())-
352 ;-
353-
354-
355 (void)removed;;-
356 }
executed 21150 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
  • ...
21150
357-
358 for (int i = persistent.moved.count() - 1; i >= 0
i >= 0Description
TRUEnever evaluated
FALSEevaluated 21152 times by 38 tests
Evaluated 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-21152
359 int idx = persistent.moved[i].indexOf(data);-
360 if (idx >= 0
idx >= 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
361 persistent.moved[i].remove(idx);
never executed: persistent.moved[i].remove(idx);
0
362 }
never executed: end of block
0
363-
364 for (int i = persistent.invalidated.count() - 1; i >= 0
i >= 0Description
TRUEnever evaluated
FALSEevaluated 21152 times by 38 tests
Evaluated 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-21152
365 int idx = persistent.invalidated[i].indexOf(data);-
366 if (idx >= 0
idx >= 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
367 persistent.invalidated[i].remove(idx);
never executed: persistent.invalidated[i].remove(idx);
0
368 }
never executed: end of block
0
369-
370}
executed 21152 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
  • ...
21152
371-
372void QAbstractItemModelPrivate::rowsAboutToBeInserted(const QModelIndex &parent,-
373 int first, int last)-
374{-
375 QAbstractItemModel * const q = q_func();-
376 (void)last;;-
377 QVector<QPersistentModelIndexData *> persistent_moved;-
378 if (first < q->rowCount(parent)
first < q->rowCount(parent)Description
TRUEevaluated 2725 times by 25 tests
Evaluated 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
FALSEevaluated 118212 times by 43 tests
Evaluated 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
  • ...
) {
2725-118212
379 for (QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it = persistent.indexes.constBegin();-
380 it != persistent.indexes.constEnd()
it != persiste...xes.constEnd()Description
TRUEevaluated 7851 times by 15 tests
Evaluated 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
FALSEevaluated 2725 times by 25 tests
Evaluated 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) {
2725-7851
381 QPersistentModelIndexData *data = *it;-
382 const QModelIndex &index = data->index;-
383 if (index.row() >= first
index.row() >= firstDescription
TRUEevaluated 6497 times by 15 tests
Evaluated 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
FALSEevaluated 1354 times by 9 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
&& index.isValid()
index.isValid()Description
TRUEevaluated 6497 times by 15 tests
Evaluated 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
FALSEnever evaluated
&& index.parent() == parent
index.parent() == parentDescription
TRUEevaluated 6163 times by 12 tests
Evaluated 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
FALSEevaluated 334 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QItemModel
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
) {
0-6497
384 persistent_moved.append(data);-
385 }
executed 6163 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
6163
386 }
executed 7851 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
7851
387 }
executed 2725 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
2725
388 persistent.moved.push(persistent_moved);-
389}
executed 120937 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
  • ...
120937
390-
391void QAbstractItemModelPrivate::rowsInserted(const QModelIndex &parent,-
392 int first, int last)-
393{-
394 QVector<QPersistentModelIndexData *> persistent_moved = persistent.moved.pop();-
395 int count = (last - first) + 1;-
396 for (QVector<QPersistentModelIndexData *>::const_iterator it = persistent_moved.constBegin();-
397 it != persistent_moved.constEnd()
it != persiste...ved.constEnd()Description
TRUEevaluated 6163 times by 12 tests
Evaluated 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
FALSEevaluated 120937 times by 45 tests
Evaluated 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) {
6163-120937
398 QPersistentModelIndexData *data = *it;-
399 QModelIndex old = data->index;-
400 persistent.indexes.erase(persistent.indexes.find(old));-
401 data->index = q_func()->index(old.row() + count, old.column(), parent);-
402 if (data->index.isValid()
data->index.isValid()Description
TRUEevaluated 6163 times by 12 tests
Evaluated 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
FALSEnever evaluated
) {
0-6163
403 persistent.insertMultiAtEnd(data->index, data);-
404 }
executed 6163 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 {
6163
405 QMessageLogger(__FILE__, 615, __PRETTY_FUNCTION__).warning() << "QAbstractItemModel::endInsertRows: Invalid index (" << old.row() + count << ',' << old.column() << ") in model" << q_func();-
406 }
never executed: end of block
0
407 }-
408}
executed 120937 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
  • ...
120937
409-
410void QAbstractItemModelPrivate::itemsAboutToBeMoved(const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation)-
411{-
412 QVector<QPersistentModelIndexData *> persistent_moved_explicitly;-
413 QVector<QPersistentModelIndexData *> persistent_moved_in_source;-
414 QVector<QPersistentModelIndexData *> persistent_moved_in_destination;-
415-
416 QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it;-
417 const QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator begin = persistent.indexes.constBegin();-
418 const QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator end = persistent.indexes.constEnd();-
419-
420 const bool sameParent = (srcParent == destinationParent);-
421 const bool movingUp = (srcFirst > destinationChild);-
422-
423 for ( it = begin; it != end
it != endDescription
TRUEevaluated 2617 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
FALSEevaluated 72 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
; ++it) {
72-2617
424 QPersistentModelIndexData *data = *it;-
425 const QModelIndex &index = data->index;-
426 const QModelIndex &parent = index.parent();-
427 const bool isSourceIndex = (parent == srcParent);-
428 const bool isDestinationIndex = (parent == destinationParent);-
429-
430 int childPosition;-
431 if (orientation == Qt::Vertical
orientation == Qt::VerticalDescription
TRUEevaluated 2617 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
FALSEnever evaluated
)
0-2617
432 childPosition = index.row();
executed 2617 times by 3 tests: childPosition = index.row();
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
2617
433 else-
434 childPosition = index.column();
never executed: childPosition = index.column();
0
435-
436 if (!index.isValid()
!index.isValid()Description
TRUEnever evaluated
FALSEevaluated 2617 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
|| !(isSourceIndex
isSourceIndexDescription
TRUEevaluated 1312 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEevaluated 1305 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
|| isDestinationIndex
isDestinationIndexDescription
TRUEevaluated 823 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
FALSEevaluated 482 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
) )
0-2617
437 continue;
executed 482 times by 2 tests: continue;
Executed by:
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
482
438-
439 if (!sameParent
!sameParentDescription
TRUEevaluated 1655 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
FALSEevaluated 480 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
&& isDestinationIndex
isDestinationIndexDescription
TRUEevaluated 823 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
FALSEevaluated 832 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
) {
480-1655
440 if (childPosition >= destinationChild
childPosition ...stinationChildDescription
TRUEevaluated 376 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 447 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
)
376-447
441 persistent_moved_in_destination.append(data);
executed 376 times by 1 test: persistent_moved_in_destination.append(data);
Executed by:
  • tst_QAbstractItemModel
376
442 continue;
executed 823 times by 2 tests: continue;
Executed by:
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
823
443 }-
444-
445 if (sameParent
sameParentDescription
TRUEevaluated 480 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 832 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
&& movingUp
movingUpDescription
TRUEevaluated 160 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 320 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
&& childPosition < destinationChild
childPosition ...stinationChildDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 132 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
28-832
446 continue;
executed 28 times by 1 test: continue;
Executed by:
  • tst_QAbstractItemModel
28
447-
448 if (sameParent
sameParentDescription
TRUEevaluated 452 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 832 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
&& !movingUp
!movingUpDescription
TRUEevaluated 320 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 132 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
&& childPosition < srcFirst
childPosition < srcFirstDescription
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 272 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
48-832
449 continue;
executed 48 times by 1 test: continue;
Executed by:
  • tst_QAbstractItemModel
48
450-
451 if (!sameParent
!sameParentDescription
TRUEevaluated 832 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEevaluated 404 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
&& childPosition < srcFirst
childPosition < srcFirstDescription
TRUEevaluated 386 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 446 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
)
386-832
452 continue;
executed 386 times by 1 test: continue;
Executed by:
  • tst_QAbstractItemModel
386
453-
454 if (sameParent
sameParentDescription
TRUEevaluated 404 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 446 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
&& (
(childPosition > srcLast)Description
TRUEevaluated 192 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 212 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
childPosition > srcLast)
(childPosition > srcLast)Description
TRUEevaluated 192 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 212 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
&& (
(childPosition...inationChild )Description
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 144 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
childPosition >= destinationChild )
(childPosition...inationChild )Description
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 144 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
48-446
455 continue;
executed 48 times by 1 test: continue;
Executed by:
  • tst_QAbstractItemModel
48
456-
457 if ((
(childPosition <= srcLast)Description
TRUEevaluated 463 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEevaluated 339 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
childPosition <= srcLast)
(childPosition <= srcLast)Description
TRUEevaluated 463 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEevaluated 339 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
&& (
(childPosition >= srcFirst)Description
TRUEevaluated 387 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEevaluated 76 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
childPosition >= srcFirst)
(childPosition >= srcFirst)Description
TRUEevaluated 387 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEevaluated 76 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
) {
76-463
458 persistent_moved_explicitly.append(data);-
459 }
executed 387 times by 2 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
else {
387
460 persistent_moved_in_source.append(data);-
461 }
executed 415 times by 2 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
415
462 }-
463 persistent.moved.push(persistent_moved_explicitly);-
464 persistent.moved.push(persistent_moved_in_source);-
465 persistent.moved.push(persistent_moved_in_destination);-
466}
executed 72 times by 5 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
72
467void QAbstractItemModelPrivate::movePersistentIndexes(const QVector<QPersistentModelIndexData *> &indexes, int change, const QModelIndex &parent, Qt::Orientation orientation)-
468{-
469 QVector<QPersistentModelIndexData *>::const_iterator it;-
470 const QVector<QPersistentModelIndexData *>::const_iterator begin = indexes.constBegin();-
471 const QVector<QPersistentModelIndexData *>::const_iterator end = indexes.constEnd();-
472-
473 for (it = begin; it != end
it != endDescription
TRUEevaluated 1178 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEevaluated 216 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
; ++it)
216-1178
474 {-
475 QPersistentModelIndexData *data = *it;-
476-
477 int row = data->index.row();-
478 int column = data->index.column();-
479-
480 if (Qt::Vertical == orientation
Qt::Vertical == orientationDescription
TRUEevaluated 1178 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEnever evaluated
)
0-1178
481 row += change;
executed 1178 times by 2 tests: row += change;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
1178
482 else-
483 column += change;
never executed: column += change;
0
484-
485 persistent.indexes.erase(persistent.indexes.find(data->index));-
486 data->index = q_func()->index(row, column, parent);-
487 if (data->index.isValid()
data->index.isValid()Description
TRUEevaluated 1178 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEnever evaluated
) {
0-1178
488 persistent.insertMultiAtEnd(data->index, data);-
489 }
executed 1178 times by 2 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
else {
1178
490 QMessageLogger(__FILE__, 708, __PRETTY_FUNCTION__).warning() << "QAbstractItemModel::endMoveRows: Invalid index (" << row << "," << column << ") in model" << q_func();-
491 }
never executed: end of block
0
492 }-
493}
executed 216 times by 5 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
216
494-
495void QAbstractItemModelPrivate::itemsMoved(const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation)-
496{-
497 QVector<QPersistentModelIndexData *> moved_in_destination = persistent.moved.pop();-
498 QVector<QPersistentModelIndexData *> moved_in_source = persistent.moved.pop();-
499 QVector<QPersistentModelIndexData *> moved_explicitly = persistent.moved.pop();-
500-
501 const bool sameParent = (sourceParent == destinationParent);-
502 const bool movingUp = (sourceFirst > destinationChild);-
503-
504 const int explicit_change = (!sameParent
!sameParentDescription
TRUEevaluated 46 times by 4 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
FALSEevaluated 26 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
|| movingUp
movingUpDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
) ? destinationChild - sourceFirst : destinationChild - sourceLast - 1 ;
12-46
505 const int source_change = (!sameParent
!sameParentDescription
TRUEevaluated 46 times by 4 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
FALSEevaluated 26 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
|| !movingUp
!movingUpDescription
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
) ? -1*(sourceLast - sourceFirst + 1) : sourceLast - sourceFirst + 1 ;
12-46
506 const int destination_change = sourceLast - sourceFirst + 1;-
507-
508 movePersistentIndexes(moved_explicitly, explicit_change, destinationParent, orientation);-
509 movePersistentIndexes(moved_in_source, source_change, sourceParent, orientation);-
510 movePersistentIndexes(moved_in_destination, destination_change, destinationParent, orientation);-
511}
executed 72 times by 5 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
72
512-
513void QAbstractItemModelPrivate::rowsAboutToBeRemoved(const QModelIndex &parent,-
514 int first, int last)-
515{-
516 QVector<QPersistentModelIndexData *> persistent_moved;-
517 QVector<QPersistentModelIndexData *> persistent_invalidated;-
518-
519-
520 for (QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it = persistent.indexes.constBegin();-
521 it != persistent.indexes.constEnd()
it != persiste...xes.constEnd()Description
TRUEevaluated 3516 times by 18 tests
Evaluated 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
FALSEevaluated 2687 times by 31 tests
Evaluated 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) {
2687-3516
522 QPersistentModelIndexData *data = *it;-
523 bool level_changed = false;-
524 QModelIndex current = data->index;-
525 while (current.isValid()
current.isValid()Description
TRUEevaluated 4337 times by 18 tests
Evaluated 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
FALSEevaluated 223 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
) {
223-4337
526 QModelIndex current_parent = current.parent();-
527 if (current_parent == parent
current_parent == parentDescription
TRUEevaluated 3293 times by 18 tests
Evaluated 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
FALSEevaluated 1044 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
) {
1044-3293
528 if (!level_changed
!level_changedDescription
TRUEevaluated 2977 times by 18 tests
Evaluated 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
FALSEevaluated 316 times by 6 tests
Evaluated by:
  • tst_QDirModel
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeView
&& current.row() > last
current.row() > lastDescription
TRUEevaluated 1097 times by 12 tests
Evaluated 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
FALSEevaluated 1880 times by 16 tests
Evaluated 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-2977
529 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
530 else if (current.row() <= last
current.row() <= lastDescription
TRUEevaluated 2081 times by 17 tests
Evaluated 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
FALSEevaluated 115 times by 1 test
Evaluated by:
  • tst_QStandardItemModel
&& current.row() >= first
current.row() >= firstDescription
TRUEevaluated 957 times by 15 tests
Evaluated 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
FALSEevaluated 1124 times by 11 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
)
115-2081
531 persistent_invalidated.append(data);
executed 957 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
957
532 break;
executed 3293 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
3293
533 }-
534 current = current_parent;-
535 level_changed = true;-
536 }
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
537 }
executed 3516 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
3516
538-
539 persistent.moved.push(persistent_moved);-
540 persistent.invalidated.push(persistent_invalidated);-
541}
executed 2687 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
  • ...
2687
542-
543void QAbstractItemModelPrivate::rowsRemoved(const QModelIndex &parent,-
544 int first, int last)-
545{-
546 QVector<QPersistentModelIndexData *> persistent_moved = persistent.moved.pop();-
547 int count = (last - first) + 1;-
548 for (QVector<QPersistentModelIndexData *>::const_iterator it = persistent_moved.constBegin();-
549 it != persistent_moved.constEnd()
it != persiste...ved.constEnd()Description
TRUEevaluated 1097 times by 12 tests
Evaluated 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
FALSEevaluated 2687 times by 31 tests
Evaluated 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-2687
550 QPersistentModelIndexData *data = *it;-
551 QModelIndex old = data->index;-
552 persistent.indexes.erase(persistent.indexes.find(old));-
553 data->index = q_func()->index(old.row() - count, old.column(), parent);-
554 if (data->index.isValid()
data->index.isValid()Description
TRUEevaluated 1097 times by 12 tests
Evaluated 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
FALSEnever evaluated
) {
0-1097
555 persistent.insertMultiAtEnd(data->index, data);-
556 }
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
557 QMessageLogger(__FILE__, 775, __PRETTY_FUNCTION__).warning() << "QAbstractItemModel::endRemoveRows: Invalid index (" << old.row() - count << ',' << old.column() << ") in model" << q_func();-
558 }
never executed: end of block
0
559 }-
560 QVector<QPersistentModelIndexData *> persistent_invalidated = persistent.invalidated.pop();-
561 for (QVector<QPersistentModelIndexData *>::const_iterator it = persistent_invalidated.constBegin();-
562 it != persistent_invalidated.constEnd()
it != persiste...ted.constEnd()Description
TRUEevaluated 957 times by 15 tests
Evaluated 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
FALSEevaluated 2687 times by 31 tests
Evaluated 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) {
957-2687
563 QPersistentModelIndexData *data = *it;-
564 persistent.indexes.erase(persistent.indexes.find(data->index));-
565 data->index = QModelIndex();-
566 data->model = 0;-
567 }
executed 957 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
957
568}
executed 2687 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
  • ...
2687
569-
570void QAbstractItemModelPrivate::columnsAboutToBeInserted(const QModelIndex &parent,-
571 int first, int last)-
572{-
573 QAbstractItemModel * const q = q_func();-
574 (void)last;;-
575 QVector<QPersistentModelIndexData *> persistent_moved;-
576 if (first < q->columnCount(parent)
first < q->columnCount(parent)Description
TRUEevaluated 336 times by 11 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QSqlTableModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
FALSEevaluated 13183 times by 31 tests
Evaluated 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
  • ...
) {
336-13183
577 for (QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it = persistent.indexes.constBegin();-
578 it != persistent.indexes.constEnd()
it != persiste...xes.constEnd()Description
TRUEevaluated 62 times by 5 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QItemModel
  • tst_QStandardItemModel
  • tst_QTableView
FALSEevaluated 336 times by 11 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QSqlTableModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
; ++it) {
62-336
579 QPersistentModelIndexData *data = *it;-
580 const QModelIndex &index = data->index;-
581 if (index.column() >= first
index.column() >= firstDescription
TRUEevaluated 30 times by 5 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QItemModel
  • tst_QStandardItemModel
  • tst_QTableView
FALSEevaluated 32 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QItemModel
  • tst_QTableView
&& index.isValid()
index.isValid()Description
TRUEevaluated 30 times by 5 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QItemModel
  • tst_QStandardItemModel
  • tst_QTableView
FALSEnever evaluated
&& index.parent() == parent
index.parent() == parentDescription
TRUEevaluated 15 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QStandardItemModel
  • tst_QTableView
FALSEevaluated 15 times by 1 test
Evaluated by:
  • tst_QItemModel
)
0-32
582 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
583 }
executed 62 times by 5 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QItemModel
  • tst_QStandardItemModel
  • tst_QTableView
62
584 }
executed 336 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
336
585 persistent.moved.push(persistent_moved);-
586}
executed 13519 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
  • ...
13519
587-
588void QAbstractItemModelPrivate::columnsInserted(const QModelIndex &parent,-
589 int first, int last)-
590{-
591 QVector<QPersistentModelIndexData *> persistent_moved = persistent.moved.pop();-
592 int count = (last - first) + 1;-
593 for (QVector<QPersistentModelIndexData *>::const_iterator it = persistent_moved.constBegin();-
594 it != persistent_moved.constEnd()
it != persiste...ved.constEnd()Description
TRUEevaluated 15 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QStandardItemModel
  • tst_QTableView
FALSEevaluated 13519 times by 33 tests
Evaluated 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-13519
595 QPersistentModelIndexData *data = *it;-
596 QModelIndex old = data->index;-
597 persistent.indexes.erase(persistent.indexes.find(old));-
598 data->index = q_func()->index(old.row(), old.column() + count, parent);-
599 if (data->index.isValid()
data->index.isValid()Description
TRUEevaluated 15 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QStandardItemModel
  • tst_QTableView
FALSEnever evaluated
) {
0-15
600 persistent.insertMultiAtEnd(data->index, data);-
601 }
executed 15 times by 4 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QStandardItemModel
  • tst_QTableView
else {
15
602 QMessageLogger(__FILE__, 820, __PRETTY_FUNCTION__).warning() << "QAbstractItemModel::endInsertColumns: Invalid index (" << old.row() << ',' << old.column() + count << ") in model" << q_func();-
603 }
never executed: end of block
0
604 }-
605}
executed 13519 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
  • ...
13519
606-
607void QAbstractItemModelPrivate::columnsAboutToBeRemoved(const QModelIndex &parent,-
608 int first, int last)-
609{-
610 QVector<QPersistentModelIndexData *> persistent_moved;-
611 QVector<QPersistentModelIndexData *> persistent_invalidated;-
612-
613-
614 for (QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it = persistent.indexes.constBegin();-
615 it != persistent.indexes.constEnd()
it != persiste...xes.constEnd()Description
TRUEevaluated 98 times by 10 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
FALSEevaluated 204 times by 16 tests
Evaluated 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) {
98-204
616 QPersistentModelIndexData *data = *it;-
617 bool level_changed = false;-
618 QModelIndex current = data->index;-
619 while (current.isValid()
current.isValid()Description
TRUEevaluated 99 times by 10 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
FALSEevaluated 35 times by 1 test
Evaluated by:
  • tst_QItemModel
) {
35-99
620 QModelIndex current_parent = current.parent();-
621 if (current_parent == parent
current_parent == parentDescription
TRUEevaluated 63 times by 10 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_QItemModel
  • tst_QStandardItemModel
) {
36-63
622 if (!level_changed
!level_changedDescription
TRUEevaluated 62 times by 10 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QStandardItemModel
&& current.column() > last
current.column() > lastDescription
TRUEevaluated 15 times by 6 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
FALSEevaluated 47 times by 8 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
)
1-62
623 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
624 else if (current.column() <= last
current.column() <= lastDescription
TRUEevaluated 48 times by 8 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
FALSEnever evaluated
&& current.column() >= first
current.column() >= firstDescription
TRUEevaluated 26 times by 7 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeView
FALSEevaluated 22 times by 6 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QItemModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
)
0-48
625 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
626 break;
executed 63 times by 10 tests: break;
Executed by:
  • tst_QAbstractItemModel
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
63
627 }-
628 current = current_parent;-
629 level_changed = true;-
630 }
executed 36 times by 2 tests: end of block
Executed by:
  • tst_QItemModel
  • tst_QStandardItemModel
36
631 }
executed 98 times by 10 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
98
632-
633 persistent.moved.push(persistent_moved);-
634 persistent.invalidated.push(persistent_invalidated);-
635-
636}
executed 204 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
204
637-
638void QAbstractItemModelPrivate::columnsRemoved(const QModelIndex &parent,-
639 int first, int last)-
640{-
641 QVector<QPersistentModelIndexData *> persistent_moved = persistent.moved.pop();-
642 int count = (last - first) + 1;-
643 for (QVector<QPersistentModelIndexData *>::const_iterator it = persistent_moved.constBegin();-
644 it != persistent_moved.constEnd()
it != persiste...ved.constEnd()Description
TRUEevaluated 15 times by 6 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
FALSEevaluated 204 times by 16 tests
Evaluated 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-204
645 QPersistentModelIndexData *data = *it;-
646 QModelIndex old = data->index;-
647 persistent.indexes.erase(persistent.indexes.find(old));-
648 data->index = q_func()->index(old.row(), old.column() - count, parent);-
649 if (data->index.isValid()
data->index.isValid()Description
TRUEevaluated 15 times by 6 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
FALSEnever evaluated
) {
0-15
650 persistent.insertMultiAtEnd(data->index, data);-
651 }
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
652 QMessageLogger(__FILE__, 870, __PRETTY_FUNCTION__).warning() << "QAbstractItemModel::endRemoveColumns: Invalid index (" << old.row() << ',' << old.column() - count << ") in model" << q_func();-
653 }
never executed: end of block
0
654 }-
655 QVector<QPersistentModelIndexData *> persistent_invalidated = persistent.invalidated.pop();-
656 for (QVector<QPersistentModelIndexData *>::const_iterator it = persistent_invalidated.constBegin();-
657 it != persistent_invalidated.constEnd()
it != persiste...ted.constEnd()Description
TRUEevaluated 26 times by 7 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QListView
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeView
FALSEevaluated 204 times by 16 tests
Evaluated 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-204
658 QPersistentModelIndexData *data = *it;-
659 persistent.indexes.erase(persistent.indexes.find(data->index));-
660 data->index = QModelIndex();-
661 data->model = 0;-
662 }
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
663}
executed 204 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
204
664void QAbstractItemModel::resetInternalData()-
665{-
666-
667}-
668QAbstractItemModel::QAbstractItemModel(QObject *parent)-
669 : QObject(*new QAbstractItemModelPrivate, parent)-
670{-
671}
executed 1564 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
  • ...
1564
672-
673-
674-
675-
676QAbstractItemModel::QAbstractItemModel(QAbstractItemModelPrivate &dd, QObject *parent)-
677 : QObject(dd, parent)-
678{-
679}
executed 3812 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
  • ...
3812
680-
681-
682-
683-
684QAbstractItemModel::~QAbstractItemModel()-
685{-
686 d_func()->invalidatePersistentIndexes();-
687}
executed 5209 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
  • ...
5209
688bool QAbstractItemModel::hasIndex(int row, int column, const QModelIndex &parent) const-
689{-
690 if (row < 0
row < 0Description
TRUEevaluated 578 times by 9 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableWidget
FALSEevaluated 226490 times by 32 tests
Evaluated 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 < 0
column < 0Description
TRUEevaluated 1338 times by 4 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QItemModel
  • tst_QSortFilterProxyModel
FALSEevaluated 225152 times by 32 tests
Evaluated 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
  • ...
)
578-226490
691 return
executed 1916 times by 9 tests: return false;
Executed by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableWidget
false;
executed 1916 times by 9 tests: return false;
Executed by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableWidget
1916
692 return
executed 225152 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)
row < rowCount(parent)Description
TRUEevaluated 222485 times by 32 tests
Evaluated 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
  • ...
FALSEevaluated 2667 times by 17 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QSqlTableModel
  • tst_QTableView
  • tst_QTableWidget
&& column < columnCount(parent)
column < columnCount(parent)Description
TRUEevaluated 219242 times by 32 tests
Evaluated 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
  • ...
FALSEevaluated 3243 times by 8 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QItemModel
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTableWidget
;
executed 225152 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
  • ...
2667-225152
693}-
694bool QAbstractItemModel::hasChildren(const QModelIndex &parent) const-
695{-
696 return
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
(
(rowCount(parent) > 0)Description
TRUEevaluated 1523 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
FALSEevaluated 604 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
rowCount(parent) > 0)
(rowCount(parent) > 0)Description
TRUEevaluated 1523 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
FALSEevaluated 604 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
&& (
(columnCount(parent) > 0)Description
TRUEevaluated 1522 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTreeView
columnCount(parent) > 0)
(columnCount(parent) > 0)Description
TRUEevaluated 1522 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTreeView
;
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
1-2127
697}-
698QModelIndex QAbstractItemModel::sibling(int row, int column, const QModelIndex &idx) const-
699{-
700 return
executed 33300 times by 18 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_QFileDialog2
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
(row == idx.row()
row == idx.row()Description
TRUEevaluated 19209 times by 17 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 14091 times by 9 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QColumnView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
&& column == idx.column()
column == idx.column()Description
TRUEevaluated 134 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QTableView
FALSEevaluated 19075 times by 17 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
) ? idx : index(row, column, parent(idx));
executed 33300 times by 18 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_QFileDialog2
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
134-33300
701}-
702QMap<int, QVariant> QAbstractItemModel::itemData(const QModelIndex &index) const-
703{-
704 QMap<int, QVariant> roles;-
705 for (int i = 0; i < Qt::UserRole
i < Qt::UserRoleDescription
TRUEevaluated 116480 times by 6 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractProxyModel
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QSortFilterProxyModel
FALSEevaluated 455 times by 6 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractProxyModel
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QSortFilterProxyModel
; ++i) {
455-116480
706 QVariant variantData = data(index, i);-
707 if (variantData.isValid()
variantData.isValid()Description
TRUEevaluated 101145 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QSortFilterProxyModel
FALSEevaluated 15335 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractProxyModel
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QSortFilterProxyModel
)
15335-101145
708 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
709 }
executed 116480 times by 6 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractProxyModel
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QSortFilterProxyModel
116480
710 return
executed 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
711}-
712bool QAbstractItemModel::setData(const QModelIndex &index, const QVariant &value, int role)-
713{-
714 (void)index;;-
715 (void)value;;-
716 (void)role;;-
717 return
executed 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
718}-
719bool QAbstractItemModel::setItemData(const QModelIndex &index, const QMap<int, QVariant> &roles)-
720{-
721 bool b = true;-
722 for (QMap<int, QVariant>::ConstIterator it = roles.begin(); it != roles.end()
it != roles.end()Description
TRUEevaluated 11776 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 59 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QItemModel
; ++it)
59-11776
723 b = b
bDescription
TRUEevaluated 11776 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEnever evaluated
&& setData(index, it.value(), it.key())
setData(index,...e(), it.key())Description
TRUEevaluated 11776 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEnever evaluated
;
executed 11776 times by 1 test: b = b && setData(index, it.value(), it.key());
Executed by:
  • tst_QAbstractItemModel
0-11776
724 return
executed 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
725}-
726QStringList QAbstractItemModel::mimeTypes() const-
727{-
728 QStringList types;-
729 types << QLatin1String("application/x-qabstractitemmodeldatalist");-
730 return
executed 172 times by 7 tests: return types;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QItemModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableWidget
types;
executed 172 times by 7 tests: return types;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QItemModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableWidget
172
731}-
732QMimeData *QAbstractItemModel::mimeData(const QModelIndexList &indexes) const-
733{-
734 if (indexes.count() <= 0
indexes.count() <= 0Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QListWidget
  • tst_QTableWidget
FALSEevaluated 28 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
)
8-28
735 return
executed 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
736 QStringList types = mimeTypes();-
737 if (types.isEmpty()
types.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 28 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
)
0-28
738 return
never executed: return 0;
0;
never executed: return 0;
0
739 QMimeData *data = new QMimeData();-
740 QString format = types.at(0);-
741 QByteArray encoded;-
742 QDataStream stream(&encoded, QIODevice::WriteOnly);-
743 encodeData(indexes, stream);-
744 data->setData(format, encoded);-
745 return
executed 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
746}-
747bool QAbstractItemModel::canDropMimeData(const QMimeData *data, Qt::DropAction action,-
748 int row, int column,-
749 const QModelIndex &parent) const-
750{-
751 (void)row;-
752 (void)column;-
753 (void)parent;-
754-
755 if (!(action & supportedDropActions())
!(action & sup...DropActions())Description
TRUEnever evaluated
FALSEnever evaluated
)
0
756 return
never executed: return false;
false;
never executed: return false;
0
757-
758 const QStringList modelTypes = mimeTypes();-
759 for (int i = 0; i < modelTypes.count()
i < modelTypes.count()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
760 if (data->hasFormat(modelTypes.at(i))
data->hasForma...elTypes.at(i))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
761 return
never executed: return true;
true;
never executed: return true;
0
762 }
never executed: end of block
0
763 return
never executed: return false;
false;
never executed: return false;
0
764}-
765bool QAbstractItemModel::dropMimeData(const QMimeData *data, Qt::DropAction action,-
766 int row, int column, const QModelIndex &parent)-
767{-
768-
769 if (!data
!dataDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
|| !(action == Qt::CopyAction
action == Qt::CopyActionDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEnever evaluated
|| action == Qt::MoveAction
action == Qt::MoveActionDescription
TRUEnever evaluated
FALSEnever evaluated
))
0-12
770 return
never executed: return false;
false;
never executed: return false;
0
771-
772 QStringList types = mimeTypes();-
773 if (types.isEmpty()
types.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
0-12
774 return
never executed: return false;
false;
never executed: return false;
0
775 QString format = types.at(0);-
776 if (!data->hasFormat(format)
!data->hasFormat(format)Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
0-12
777 return
never executed: return false;
false;
never executed: return false;
0
778 if (row > rowCount(parent)
row > rowCount(parent)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
4-8
779 row = rowCount(parent);
executed 4 times by 1 test: row = rowCount(parent);
Executed by:
  • tst_QAbstractItemModel
4
780 if (row == -1
row == -1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
0-12
781 row = rowCount(parent);
never executed: row = rowCount(parent);
0
782 if (column == -1
column == -1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
0-12
783 column = 0;
never executed: column = 0;
0
784-
785 QByteArray encoded = data->data(format);-
786 QDataStream stream(&encoded, QIODevice::ReadOnly);-
787 return
executed 12 times by 1 test: return decodeData(row, column, parent, stream);
Executed by:
  • tst_QAbstractItemModel
decodeData(row, column, parent, stream);
executed 12 times by 1 test: return decodeData(row, column, parent, stream);
Executed by:
  • tst_QAbstractItemModel
12
788}-
789Qt::DropActions QAbstractItemModel::supportedDropActions() const-
790{-
791 return
executed 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
792}-
793Qt::DropActions QAbstractItemModel::supportedDragActions() const-
794{-
795 const QAbstractItemModelPrivate * const d = d_func();-
796 if (d->supportedDragActions != -1
d->supportedDragActions != -1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
0-1
797 return
never executed: return d->supportedDragActions;
d->supportedDragActions;
never executed: return d->supportedDragActions;
0
798 return
executed 1 time by 1 test: return supportedDropActions();
Executed by:
  • tst_QAbstractItemModel
supportedDropActions();
executed 1 time by 1 test: return supportedDropActions();
Executed by:
  • tst_QAbstractItemModel
1
799}-
800-
801-
802-
803-
804void QAbstractItemModel::doSetSupportedDragActions(Qt::DropActions actions)-
805{-
806 QAbstractItemModelPrivate * const d = d_func();-
807 d->supportedDragActions = actions;-
808}
never executed: end of block
0
809bool QAbstractItemModel::insertRows(int, int, const QModelIndex &)-
810{-
811 return
never executed: return false;
false;
never executed: return false;
0
812}-
813bool QAbstractItemModel::insertColumns(int, int, const QModelIndex &)-
814{-
815 return
executed 76 times by 1 test: return false;
Executed by:
  • tst_QItemModel
false;
executed 76 times by 1 test: return false;
Executed by:
  • tst_QItemModel
76
816}-
817bool QAbstractItemModel::removeRows(int, int, const QModelIndex &)-
818{-
819 return
never executed: return false;
false;
never executed: return false;
0
820}-
821bool QAbstractItemModel::removeColumns(int, int, const QModelIndex &)-
822{-
823 return
executed 132 times by 1 test: return false;
Executed by:
  • tst_QItemModel
false;
executed 132 times by 1 test: return false;
Executed by:
  • tst_QItemModel
132
824}-
825bool QAbstractItemModel::moveRows(const QModelIndex &, int , int , const QModelIndex &, int)-
826{-
827 return
never executed: return false;
false;
never executed: return false;
0
828}-
829bool QAbstractItemModel::moveColumns(const QModelIndex &, int , int , const QModelIndex &, int)-
830{-
831 return
never executed: return false;
false;
never executed: return false;
0
832}-
833void QAbstractItemModel::fetchMore(const QModelIndex &)-
834{-
835-
836}-
837bool QAbstractItemModel::canFetchMore(const QModelIndex &) const-
838{-
839 return
executed 7866 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 7866 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
  • ...
7866
840}-
841Qt::ItemFlags QAbstractItemModel::flags(const QModelIndex &index) const-
842{-
843 const QAbstractItemModelPrivate * const d = d_func();-
844 if (!d->indexValid(index)
!d->indexValid(index)Description
TRUEevaluated 38 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractProxyModel
  • tst_QFileDialog2
  • tst_QItemModel
  • tst_QSortFilterProxyModel
FALSEevaluated 45466 times by 26 tests
Evaluated 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-45466
845 return
executed 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
846-
847 return
executed 45466 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 45466 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
  • ...
45466
848}-
849-
850-
851-
852-
853-
854-
855void QAbstractItemModel::sort(int column, Qt::SortOrder order)-
856{-
857 (void)column;;-
858 (void)order;;-
859-
860}
executed 484 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
484
861QModelIndex QAbstractItemModel::buddy(const QModelIndex &index) const-
862{-
863 return
executed 15166 times by 28 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_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • ...
index;
executed 15166 times by 28 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_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • ...
15166
864}-
865QModelIndexList QAbstractItemModel::match(const QModelIndex &start, int role,-
866 const QVariant &value, int hits,-
867 Qt::MatchFlags flags) const-
868{-
869 QModelIndexList result;-
870 uint matchType = flags & 0x0F;-
871 Qt::CaseSensitivity cs = flags & Qt::MatchCaseSensitive
flags & Qt::MatchCaseSensitiveDescription
TRUEevaluated 277 times by 9 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QPrinter
  • tst_languageChange
FALSEevaluated 359 times by 15 tests
Evaluated 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;
277-359
872 bool recurse = flags & Qt::MatchRecursive;-
873 bool wrap = flags & Qt::MatchWrap;-
874 bool allHits = (hits == -1);-
875 QString text;-
876 QModelIndex p = parent(start);-
877 int from = start.row();-
878 int to = rowCount(p);-
879-
880-
881 for (int i = 0; (wrap
wrapDescription
TRUEevaluated 579 times by 13 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QItemModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 886 times by 13 tests
Evaluated 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 < 2
i < 2Description
TRUEevaluated 386 times by 13 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QItemModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 193 times by 13 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QItemModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
) || (!wrap
!wrapDescription
TRUEevaluated 886 times by 13 tests
Evaluated 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
FALSEevaluated 193 times by 13 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QItemModel
  • tst_QListView
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
&& i < 1
i < 1Description
TRUEevaluated 443 times by 13 tests
Evaluated 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
FALSEevaluated 443 times by 13 tests
Evaluated 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) {
193-886
882 for (int r = from; (
(r < to)Description
TRUEevaluated 3155 times by 20 tests
Evaluated 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
FALSEevaluated 718 times by 18 tests
Evaluated 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)
(r < to)Description
TRUEevaluated 3155 times by 20 tests
Evaluated 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
FALSEevaluated 718 times by 18 tests
Evaluated 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
&& (allHits
allHitsDescription
TRUEevaluated 138 times by 5 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QCompleter
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTreeWidget
FALSEevaluated 3017 times by 19 tests
Evaluated 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_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
|| result.count() < hits
result.count() < hitsDescription
TRUEevaluated 2906 times by 19 tests
Evaluated 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_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
FALSEevaluated 111 times by 10 tests
Evaluated by:
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QListView
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSortFilterProxyModel
  • tst_QTableWidget
  • tst_QTreeView
); ++r) {
111-3155
883 QModelIndex idx = index(r, start.column(), p);-
884 if (!idx.isValid()
!idx.isValid()Description
TRUEevaluated 2119 times by 12 tests
Evaluated by:
  • tst_ModelTest
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeWidget
  • tst_languageChange
FALSEevaluated 925 times by 16 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QListView
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
)
925-2119
885 continue;
executed 2119 times by 12 tests: continue;
Executed by:
  • tst_ModelTest
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeWidget
  • tst_languageChange
2119
886 QVariant v = data(idx, role);-
887-
888 if (matchType == Qt::MatchExactly
matchType == Qt::MatchExactlyDescription
TRUEevaluated 204 times by 10 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeWidget
FALSEevaluated 721 times by 10 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
) {
204-721
889 if (value == v
value == vDescription
TRUEevaluated 46 times by 10 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeWidget
FALSEevaluated 158 times by 10 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeWidget
)
46-158
890 result.append(idx);
executed 46 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
46
891 }
executed 204 times by 10 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTreeWidget
else {
204
892 if (text.isEmpty()
text.isEmpty()Description
TRUEevaluated 261 times by 10 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
FALSEevaluated 460 times by 8 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
)
261-460
893 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
894 QString t = v.toString();-
895 switch (matchType) {-
896 case
executed 8 times by 1 test: case Qt::MatchRegExp:
Executed by:
  • tst_QAbstractItemModel
Qt::MatchRegExp:
executed 8 times by 1 test: case Qt::MatchRegExp:
Executed by:
  • tst_QAbstractItemModel
8
897 if (QRegExp(text, cs).exactMatch(t)
QRegExp(text, ....exactMatch(t)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
2-6
898 result.append(idx);
executed 2 times by 1 test: result.append(idx);
Executed by:
  • tst_QAbstractItemModel
2
899 break;
executed 8 times by 1 test: break;
Executed by:
  • tst_QAbstractItemModel
8
900 case
executed 4 times by 1 test: case Qt::MatchWildcard:
Executed by:
  • tst_QAbstractItemModel
Qt::MatchWildcard:
executed 4 times by 1 test: case Qt::MatchWildcard:
Executed by:
  • tst_QAbstractItemModel
4
901 if (QRegExp(text, cs, QRegExp::Wildcard).exactMatch(t)
QRegExp(text, ....exactMatch(t)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
1-3
902 result.append(idx);
executed 3 times by 1 test: result.append(idx);
Executed by:
  • tst_QAbstractItemModel
3
903 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QAbstractItemModel
4
904 case
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
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
905 if (t.startsWith(text, cs)
t.startsWith(text, cs)Description
TRUEevaluated 47 times by 7 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QCompleter
  • tst_QListView
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeView
FALSEevaluated 294 times by 8 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QListView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTreeView
)
47-294
906 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
907 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
908 case
executed 4 times by 1 test: case Qt::MatchEndsWith:
Executed by:
  • tst_QAbstractItemModel
Qt::MatchEndsWith:
executed 4 times by 1 test: case Qt::MatchEndsWith:
Executed by:
  • tst_QAbstractItemModel
4
909 if (t.endsWith(text, cs)
t.endsWith(text, cs)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
2
910 result.append(idx);
executed 2 times by 1 test: result.append(idx);
Executed by:
  • tst_QAbstractItemModel
2
911 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QAbstractItemModel
4
912 case
executed 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
913 if (t.compare(text, cs) == 0
t.compare(text, cs) == 0Description
TRUEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QCompleter
FALSEevaluated 294 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
)
66-294
914 result.append(idx);
executed 66 times by 3 tests: result.append(idx);
Executed by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QCompleter
66
915 break;
executed 360 times by 4 tests: break;
Executed by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
360
916 case
executed 4 times by 1 test: case Qt::MatchContains:
Executed by:
  • tst_QAbstractItemModel
Qt::MatchContains:
executed 4 times by 1 test: case Qt::MatchContains:
Executed by:
  • tst_QAbstractItemModel
4
917 default
never executed: default:
:
never executed: default:
0
918 if (t.contains(text, cs)
t.contains(text, cs)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
1-3
919 result.append(idx);
executed 3 times by 1 test: result.append(idx);
Executed by:
  • tst_QAbstractItemModel
3
920 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemModel
4
921 }-
922 if (recurse
recurseDescription
TRUEevaluated 40 times by 2 tests
Evaluated by:
  • tst_QStandardItemModel
  • tst_QTreeWidget
FALSEevaluated 885 times by 15 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QListView
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
&& hasChildren(idx)
hasChildren(idx)Description
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QStandardItemModel
  • tst_QTreeWidget
FALSEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QStandardItemModel
  • tst_QTreeWidget
) {
13-885
923 result += match(index(0, idx.column(), idx), role,-
924 (text.isEmpty() ? value : text),-
925 (allHits ? -1 : hits - result.count()), flags);-
926 }
executed 13 times by 2 tests: end of block
Executed by:
  • tst_QStandardItemModel
  • tst_QTreeWidget
13
927 }
executed 925 times by 16 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QListView
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
925
928-
929 from = 0;-
930 to = start.row();-
931 }
executed 829 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
829
932 return
executed 636 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 636 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
636
933}-
934-
935-
936-
937-
938-
939-
940-
941QSize QAbstractItemModel::span(const QModelIndex &) const-
942{-
943 return
executed 129 times by 3 tests: return QSize(1, 1);
Executed by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QSortFilterProxyModel
QSize(1, 1);
executed 129 times by 3 tests: return QSize(1, 1);
Executed by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QSortFilterProxyModel
129
944}-
945void QAbstractItemModel::doSetRoleNames(const QHash<int,QByteArray> &roleNames)-
946{-
947 QAbstractItemModelPrivate * const d = d_func();-
948 d->roleNames = roleNames;-
949}
executed 2 times by 2 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractProxyModel
2
950QHash<int,QByteArray> QAbstractItemModel::roleNames() const-
951{-
952 const QAbstractItemModelPrivate * const d = d_func();-
953 return
executed 8104 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 8104 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
  • ...
8104
954}-
955bool QAbstractItemModel::submit()-
956{-
957 return
executed 2970 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 2970 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
2970
958}-
959void QAbstractItemModel::revert()-
960{-
961-
962}-
963QVariant QAbstractItemModel::headerData(int section, Qt::Orientation orientation, int role) const-
964{-
965 (void)orientation;;-
966 if (role == Qt::DisplayRole
role == Qt::DisplayRoleDescription
TRUEevaluated 21648 times by 14 tests
Evaluated 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
FALSEevaluated 75678 times by 18 tests
Evaluated 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
)
21648-75678
967 return
executed 21648 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 21648 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
21648
968 return
executed 75678 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 75678 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
75678
969}-
970bool QAbstractItemModel::setHeaderData(int section, Qt::Orientation orientation,-
971 const QVariant &value, int role)-
972{-
973 (void)section;;-
974 (void)orientation;;-
975 (void)value;;-
976 (void)role;;-
977 return
executed 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
978}-
979void QAbstractItemModel::encodeData(const QModelIndexList &indexes, QDataStream &stream) const-
980{-
981 QModelIndexList::ConstIterator it = indexes.begin();-
982 for (; it != indexes.end()
it != indexes.end()Description
TRUEevaluated 77 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
FALSEevaluated 28 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
; ++it)
28-77
983 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
984}
executed 28 times by 4 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QListWidget
  • tst_QStandardItemModel
  • tst_QTableWidget
28
985-
986-
987-
988-
989bool QAbstractItemModel::decodeData(int row, int column, const QModelIndex &parent,-
990 QDataStream &stream)-
991{-
992 int top = 2147483647;-
993 int left = 2147483647;-
994 int bottom = 0;-
995 int right = 0;-
996 QVector<int> rows, columns;-
997 QVector<QMap<int, QVariant> > data;-
998-
999 while (!stream.atEnd()
!stream.atEnd()Description
TRUEevaluated 46 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
) {
12-46
1000 int r, c;-
1001 QMap<int, QVariant> v;-
1002 stream >> r >> c >> v;-
1003 rows.append(r);-
1004 columns.append(c);-
1005 data.append(v);-
1006 top = qMin(r, top);-
1007 left = qMin(c, left);-
1008 bottom = qMax(r, bottom);-
1009 right = qMax(c, right);-
1010 }
executed 46 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemModel
46
1011-
1012-
1013-
1014 int dragRowCount = 0;-
1015 int dragColumnCount = right - left + 1;-
1016-
1017-
1018 QVector<int> rowsToInsert(bottom + 1);-
1019 for (int i = 0; i < rows.count()
i < rows.count()Description
TRUEevaluated 46 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
; ++i)
12-46
1020 rowsToInsert[rows.at(i)] = 1;
executed 46 times by 1 test: rowsToInsert[rows.at(i)] = 1;
Executed by:
  • tst_QAbstractItemModel
46
1021 for (int i = 0; i < rowsToInsert.count()
i < rowsToInsert.count()Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
; ++i) {
12-24
1022 if (rowsToInsert[i] == 1
rowsToInsert[i] == 1Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
){
2-22
1023 rowsToInsert[i] = dragRowCount;-
1024 ++dragRowCount;-
1025 }
executed 22 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemModel
22
1026 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemModel
24
1027 for (int i = 0; i < rows.count()
i < rows.count()Description
TRUEevaluated 46 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
; ++i)
12-46
1028 rows[i] = top + rowsToInsert[rows[i]];
executed 46 times by 1 test: rows[i] = top + rowsToInsert[rows[i]];
Executed by:
  • tst_QAbstractItemModel
46
1029-
1030 QBitArray isWrittenTo(dragRowCount * dragColumnCount);-
1031-
1032-
1033 int colCount = columnCount(parent);-
1034 if (colCount == 0
colCount == 0Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
) {
0-12
1035 insertColumns(colCount, dragColumnCount - colCount, parent);-
1036 colCount = columnCount(parent);-
1037 }
never executed: end of block
0
1038 insertRows(row, dragRowCount, parent);-
1039-
1040 row = qMax(0, row);-
1041 column = qMax(0, column);-
1042-
1043 QVector<QPersistentModelIndex> newIndexes(data.size());-
1044-
1045 for (int j = 0; j < data.size()
j < data.size()Description
TRUEevaluated 46 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
; ++j) {
12-46
1046 int relativeRow = rows.at(j) - top;-
1047 int relativeColumn = columns.at(j) - left;-
1048 int destinationRow = relativeRow + row;-
1049 int destinationColumn = relativeColumn + column;-
1050 int flat = (relativeRow * dragColumnCount) + relativeColumn;-
1051-
1052 if (destinationColumn >= colCount
destinationColumn >= colCountDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 37 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
|| isWrittenTo.testBit(flat)
isWrittenTo.testBit(flat)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
) {
3-37
1053 destinationColumn = qBound(column, destinationColumn, colCount - 1);-
1054 destinationRow = row + dragRowCount;-
1055 insertRows(row + dragRowCount, 1, parent);-
1056 flat = (dragRowCount * dragColumnCount) + relativeColumn;-
1057 isWrittenTo.resize(++dragRowCount * dragColumnCount);-
1058 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemModel
12
1059 if (!isWrittenTo.testBit(flat)
!isWrittenTo.testBit(flat)Description
TRUEevaluated 46 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEnever evaluated
) {
0-46
1060 newIndexes[j] = index(destinationRow, destinationColumn, parent);-
1061 isWrittenTo.setBit(flat);-
1062 }
executed 46 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemModel
46
1063 }
executed 46 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemModel
46
1064-
1065 for(int k = 0; k < newIndexes.size()
k < newIndexes.size()Description
TRUEevaluated 46 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
; k++) {
12-46
1066 if (newIndexes.at(k).isValid()
newIndexes.at(k).isValid()Description
TRUEevaluated 46 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEnever evaluated
)
0-46
1067 setItemData(newIndexes.at(k), data.at(k));
executed 46 times by 1 test: setItemData(newIndexes.at(k), data.at(k));
Executed by:
  • tst_QAbstractItemModel
46
1068 }
executed 46 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemModel
46
1069-
1070 return
executed 12 times by 1 test: return true;
Executed by:
  • tst_QAbstractItemModel
true;
executed 12 times by 1 test: return true;
Executed by:
  • tst_QAbstractItemModel
12
1071}-
1072void QAbstractItemModel::beginInsertRows(const QModelIndex &parent, int first, int last)-
1073{-
1074 ((!(first >= 0)) ? qt_assert("first >= 0",__FILE__,2603) : qt_noop());-
1075 ((!(last >= first)) ? qt_assert("last >= first",__FILE__,2604) : qt_noop());-
1076 QAbstractItemModelPrivate * const d = d_func();-
1077 d->changes.push(QAbstractItemModelPrivate::Change(parent, first, last));-
1078 rowsAboutToBeInserted(parent, first, last, QPrivateSignal());-
1079 d->rowsAboutToBeInserted(parent, first, last);-
1080}
executed 120937 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
  • ...
120937
1081void QAbstractItemModel::endInsertRows()-
1082{-
1083 QAbstractItemModelPrivate * const d = d_func();-
1084 QAbstractItemModelPrivate::Change change = d->changes.pop();-
1085 d->rowsInserted(change.parent, change.first, change.last);-
1086 rowsInserted(change.parent, change.first, change.last, QPrivateSignal());-
1087}
executed 120937 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
  • ...
120937
1088void QAbstractItemModel::beginRemoveRows(const QModelIndex &parent, int first, int last)-
1089{-
1090 ((!(first >= 0)) ? qt_assert("first >= 0",__FILE__,2657) : qt_noop());-
1091 ((!(last >= first)) ? qt_assert("last >= first",__FILE__,2658) : qt_noop());-
1092 QAbstractItemModelPrivate * const d = d_func();-
1093 d->changes.push(QAbstractItemModelPrivate::Change(parent, first, last));-
1094 rowsAboutToBeRemoved(parent, first, last, QPrivateSignal());-
1095 d->rowsAboutToBeRemoved(parent, first, last);-
1096}
executed 2661 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
  • ...
2661
1097void QAbstractItemModel::endRemoveRows()-
1098{-
1099 QAbstractItemModelPrivate * const d = d_func();-
1100 QAbstractItemModelPrivate::Change change = d->changes.pop();-
1101 d->rowsRemoved(change.parent, change.first, change.last);-
1102 rowsRemoved(change.parent, change.first, change.last, QPrivateSignal());-
1103}
executed 2661 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
  • ...
2661
1104bool QAbstractItemModelPrivate::allowMove(const QModelIndex &srcParent, int start, int end, const QModelIndex &destinationParent, int destinationStart, Qt::Orientation orientation)-
1105{-
1106-
1107 if (destinationParent == srcParent
destinationParent == srcParentDescription
TRUEevaluated 53 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
FALSEevaluated 106 times by 4 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
)
53-106
1108 return
executed 53 times by 2 tests: return !(destinationStart >= start && destinationStart <= end + 1);
Executed by:
  • tst_QAbstractItemModel
  • tst_QListWidget
!(destinationStart >= start
destinationStart >= startDescription
TRUEevaluated 39 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
&& destinationStart <= end + 1
destinationStart <= end + 1Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
);
executed 53 times by 2 tests: return !(destinationStart >= start && destinationStart <= end + 1);
Executed by:
  • tst_QAbstractItemModel
  • tst_QListWidget
12-53
1109-
1110 QModelIndex destinationAncestor = destinationParent;-
1111 int pos = (
(Qt::Vertical == orientation)Description
TRUEevaluated 106 times by 4 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
FALSEnever evaluated
Qt::Vertical == orientation)
(Qt::Vertical == orientation)Description
TRUEevaluated 106 times by 4 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
FALSEnever evaluated
? destinationAncestor.row() : destinationAncestor.column();
0-106
1112 for(;;) {-
1113 if (destinationAncestor == srcParent
destinationAnc...r == srcParentDescription
TRUEevaluated 75 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEevaluated 270 times by 4 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
) {
75-270
1114 if (pos >= start
pos >= startDescription
TRUEevaluated 67 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
&& pos <= end
pos <= endDescription
TRUEevaluated 60 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
)
7-67
1115 return
executed 60 times by 1 test: return false;
Executed by:
  • tst_QAbstractItemModel
false;
executed 60 times by 1 test: return false;
Executed by:
  • tst_QAbstractItemModel
60
1116 break;
executed 15 times by 2 tests: break;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
15
1117 }-
1118-
1119 if (!destinationAncestor.isValid()
!destinationAncestor.isValid()Description
TRUEevaluated 31 times by 3 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
FALSEevaluated 239 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
)
31-239
1120 break;
executed 31 times by 3 tests: break;
Executed by:
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
31
1121-
1122 pos = (
(Qt::Vertical == orientation)Description
TRUEevaluated 239 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
FALSEnever evaluated
Qt::Vertical == orientation)
(Qt::Vertical == orientation)Description
TRUEevaluated 239 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
FALSEnever evaluated
? destinationAncestor.row() : destinationAncestor.column();
0-239
1123 destinationAncestor = destinationAncestor.parent();-
1124 }
executed 239 times by 3 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
239
1125-
1126 return
executed 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
1127}-
1128bool QAbstractItemModel::beginMoveRows(const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild)-
1129{-
1130 ((!(sourceFirst >= 0)) ? qt_assert("sourceFirst >= 0",__FILE__,2806) : qt_noop());-
1131 ((!(sourceLast >= sourceFirst)) ? qt_assert("sourceLast >= sourceFirst",__FILE__,2807) : qt_noop());-
1132 ((!(destinationChild >= 0)) ? qt_assert("destinationChild >= 0",__FILE__,2808) : qt_noop());-
1133 QAbstractItemModelPrivate * const d = d_func();-
1134-
1135 if (!d->allowMove(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild, Qt::Vertical)
!d->allowMove(... Qt::Vertical)Description
TRUEevaluated 87 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QListWidget
FALSEevaluated 70 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
) {
70-87
1136 return
executed 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
1137 }-
1138-
1139 QAbstractItemModelPrivate::Change sourceChange(sourceParent, sourceFirst, sourceLast);-
1140 sourceChange.needsAdjust = sourceParent.isValid()
sourceParent.isValid()Description
TRUEevaluated 39 times by 3 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
FALSEevaluated 31 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QListWidget
&& sourceParent.row() >= destinationChild
sourceParent.r...stinationChildDescription
TRUEevaluated 25 times by 3 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QSortFilterProxyModel
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
&& sourceParent.parent() == destinationParent
sourceParent.p...tinationParentDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
;
10-39
1141 d->changes.push(sourceChange);-
1142 int destinationLast = destinationChild + (sourceLast - sourceFirst);-
1143 QAbstractItemModelPrivate::Change destinationChange(destinationParent, destinationChild, destinationLast);-
1144 destinationChange.needsAdjust = destinationParent.isValid()
destinationParent.isValid()Description
TRUEevaluated 37 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
FALSEevaluated 33 times by 3 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QListWidget
&& destinationParent.row() >= sourceLast
destinationPar... >= sourceLastDescription
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
FALSEevaluated 21 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
&& destinationParent.parent() == sourceParent
destinationPar...= sourceParentDescription
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QSortFilterProxyModel
;
7-37
1145 d->changes.push(destinationChange);-
1146-
1147 rowsAboutToBeMoved(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild, QPrivateSignal());-
1148 d->itemsAboutToBeMoved(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild, Qt::Vertical);-
1149 return
executed 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
1150}-
1151void QAbstractItemModel::endMoveRows()-
1152{-
1153 QAbstractItemModelPrivate * const d = d_func();-
1154-
1155 QAbstractItemModelPrivate::Change insertChange = d->changes.pop();-
1156 QAbstractItemModelPrivate::Change removeChange = d->changes.pop();-
1157-
1158 QModelIndex adjustedSource = removeChange.parent;-
1159 QModelIndex adjustedDestination = insertChange.parent;-
1160-
1161 const int numMoved = removeChange.last - removeChange.first + 1;-
1162 if (insertChange.needsAdjust
insertChange.needsAdjustDescription
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
FALSEevaluated 63 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
)
7-63
1163 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
1164-
1165 if (removeChange.needsAdjust
removeChange.needsAdjustDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
FALSEevaluated 60 times by 4 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
)
10-60
1166 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
1167-
1168 d->itemsMoved(adjustedSource, removeChange.first, removeChange.last, adjustedDestination, insertChange.first, Qt::Vertical);-
1169-
1170 rowsMoved(adjustedSource, removeChange.first, removeChange.last, adjustedDestination, insertChange.first, QPrivateSignal());-
1171}
executed 70 times by 5 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QIdentityProxyModel
  • tst_QListWidget
  • tst_QSortFilterProxyModel
70
1172void QAbstractItemModel::beginInsertColumns(const QModelIndex &parent, int first, int last)-
1173{-
1174 ((!(first >= 0)) ? qt_assert("first >= 0",__FILE__,2904) : qt_noop());-
1175 ((!(last >= first)) ? qt_assert("last >= first",__FILE__,2905) : qt_noop());-
1176 QAbstractItemModelPrivate * const d = d_func();-
1177 d->changes.push(QAbstractItemModelPrivate::Change(parent, first, last));-
1178 columnsAboutToBeInserted(parent, first, last, QPrivateSignal());-
1179 d->columnsAboutToBeInserted(parent, first, last);-
1180}
executed 13519 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
  • ...
13519
1181void QAbstractItemModel::endInsertColumns()-
1182{-
1183 QAbstractItemModelPrivate * const d = d_func();-
1184 QAbstractItemModelPrivate::Change change = d->changes.pop();-
1185 d->columnsInserted(change.parent, change.first, change.last);-
1186 columnsInserted(change.parent, change.first, change.last, QPrivateSignal());-
1187}
executed 13519 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
  • ...
13519
1188void QAbstractItemModel::beginRemoveColumns(const QModelIndex &parent, int first, int last)-
1189{-
1190 ((!(first >= 0)) ? qt_assert("first >= 0",__FILE__,2959) : qt_noop());-
1191 ((!(last >= first)) ? qt_assert("last >= first",__FILE__,2960) : qt_noop());-
1192 QAbstractItemModelPrivate * const d = d_func();-
1193 d->changes.push(QAbstractItemModelPrivate::Change(parent, first, last));-
1194 columnsAboutToBeRemoved(parent, first, last, QPrivateSignal());-
1195 d->columnsAboutToBeRemoved(parent, first, last);-
1196}
executed 204 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
204
1197void QAbstractItemModel::endRemoveColumns()-
1198{-
1199 QAbstractItemModelPrivate * const d = d_func();-
1200 QAbstractItemModelPrivate::Change change = d->changes.pop();-
1201 d->columnsRemoved(change.parent, change.first, change.last);-
1202 columnsRemoved(change.parent, change.first, change.last, QPrivateSignal());-
1203}
executed 204 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
204
1204bool QAbstractItemModel::beginMoveColumns(const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild)-
1205{-
1206 ((!(sourceFirst >= 0)) ? qt_assert("sourceFirst >= 0",__FILE__,3023) : qt_noop());-
1207 ((!(sourceLast >= sourceFirst)) ? qt_assert("sourceLast >= sourceFirst",__FILE__,3024) : qt_noop());-
1208 ((!(destinationChild >= 0)) ? qt_assert("destinationChild >= 0",__FILE__,3025) : qt_noop());-
1209 QAbstractItemModelPrivate * const d = d_func();-
1210-
1211 if (!d->allowMove(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild, Qt::Horizontal)
!d->allowMove(...t::Horizontal)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
) {
0-2
1212 return
never executed: return false;
false;
never executed: return false;
0
1213 }-
1214-
1215 QAbstractItemModelPrivate::Change sourceChange(sourceParent, sourceFirst, sourceLast);-
1216 sourceChange.needsAdjust = sourceParent.isValid()
sourceParent.isValid()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
&& sourceParent.row() >= destinationChild
sourceParent.r...stinationChildDescription
TRUEnever evaluated
FALSEnever evaluated
&& sourceParent.parent() == destinationParent
sourceParent.p...tinationParentDescription
TRUEnever evaluated
FALSEnever evaluated
;
0-2
1217 d->changes.push(sourceChange);-
1218 int destinationLast = destinationChild + (sourceLast - sourceFirst);-
1219 QAbstractItemModelPrivate::Change destinationChange(destinationParent, destinationChild, destinationLast);-
1220 destinationChange.needsAdjust = destinationParent.isValid()
destinationParent.isValid()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
&& destinationParent.row() >= sourceLast
destinationPar... >= sourceLastDescription
TRUEnever evaluated
FALSEnever evaluated
&& destinationParent.parent() == sourceParent
destinationPar...= sourceParentDescription
TRUEnever evaluated
FALSEnever evaluated
;
0-2
1221 d->changes.push(destinationChange);-
1222-
1223 d->itemsAboutToBeMoved(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild, Qt::Horizontal);-
1224-
1225 columnsAboutToBeMoved(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild, QPrivateSignal());-
1226 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_QAbstractItemModel
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_QAbstractItemModel
2
1227}-
1228void QAbstractItemModel::endMoveColumns()-
1229{-
1230 QAbstractItemModelPrivate * const d = d_func();-
1231-
1232 QAbstractItemModelPrivate::Change insertChange = d->changes.pop();-
1233 QAbstractItemModelPrivate::Change removeChange = d->changes.pop();-
1234-
1235 QModelIndex adjustedSource = removeChange.parent;-
1236 QModelIndex adjustedDestination = insertChange.parent;-
1237-
1238 const int numMoved = removeChange.last - removeChange.first + 1;-
1239 if (insertChange.needsAdjust
insertChange.needsAdjustDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
0-2
1240 adjustedDestination = createIndex(adjustedDestination.row(), adjustedDestination.column() - numMoved, adjustedDestination.internalPointer());
never executed: adjustedDestination = createIndex(adjustedDestination.row(), adjustedDestination.column() - numMoved, adjustedDestination.internalPointer());
0
1241-
1242 if (removeChange.needsAdjust
removeChange.needsAdjustDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
0-2
1243 adjustedSource = createIndex(adjustedSource.row(), adjustedSource.column() + numMoved, adjustedSource.internalPointer());
never executed: adjustedSource = createIndex(adjustedSource.row(), adjustedSource.column() + numMoved, adjustedSource.internalPointer());
0
1244-
1245 d->itemsMoved(adjustedSource, removeChange.first, removeChange.last, adjustedDestination, insertChange.first, Qt::Horizontal);-
1246-
1247 columnsMoved(adjustedSource, removeChange.first, removeChange.last, adjustedDestination, insertChange.first, QPrivateSignal());-
1248}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemModel
2
1249void QAbstractItemModel::beginResetModel()-
1250{-
1251 modelAboutToBeReset(QPrivateSignal());-
1252}
executed 8962 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
  • ...
8962
1253void QAbstractItemModel::endResetModel()-
1254{-
1255 QAbstractItemModelPrivate * const d = d_func();-
1256 d->invalidatePersistentIndexes();-
1257 QMetaObject::invokeMethod(this, "resetInternalData");-
1258 modelReset(QPrivateSignal());-
1259}
executed 8961 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
  • ...
8961
1260void QAbstractItemModel::changePersistentIndex(const QModelIndex &from, const QModelIndex &to)-
1261{-
1262 QAbstractItemModelPrivate * const d = d_func();-
1263 if (d->persistent.indexes.isEmpty()
d->persistent....exes.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
)
0-12
1264 return;
never executed: return;
0
1265-
1266 const QHash<QModelIndex, QPersistentModelIndexData *>::iterator it = d->persistent.indexes.find(from);-
1267 if (it != d->persistent.indexes.end()
it != d->persi....indexes.end()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEnever evaluated
) {
0-12
1268 QPersistentModelIndexData *data = *it;-
1269 d->persistent.indexes.erase(it);-
1270 data->index = to;-
1271 if (to.isValid()
to.isValid()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QAbstractItemModel
FALSEnever evaluated
)
0-12
1272 d->persistent.insertMultiAtEnd(to, data);
executed 12 times by 1 test: d->persistent.insertMultiAtEnd(to, data);
Executed by:
  • tst_QAbstractItemModel
12
1273 else-
1274 data->model = 0;
never executed: data->model = 0;
0
1275 }-
1276}
executed 12 times by 1 test: end of block
Executed by:
  • tst_QAbstractItemModel
12
1277void QAbstractItemModel::changePersistentIndexList(const QModelIndexList &from,-
1278 const QModelIndexList &to)-
1279{-
1280 QAbstractItemModelPrivate * const d = d_func();-
1281 if (d->persistent.indexes.isEmpty()
d->persistent....exes.isEmpty()Description
TRUEevaluated 4691 times by 24 tests
Evaluated 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
FALSEevaluated 734 times by 18 tests
Evaluated 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
)
734-4691
1282 return;
executed 4691 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
4691
1283 QVector<QPersistentModelIndexData *> toBeReinserted;-
1284 toBeReinserted.reserve(to.count());-
1285 for (int i = 0; i < from.count()
i < from.count()Description
TRUEevaluated 1639 times by 17 tests
Evaluated 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
FALSEevaluated 734 times by 18 tests
Evaluated 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) {
734-1639
1286 if (from.at(i) == to.at(i)
from.at(i) == to.at(i)Description
TRUEevaluated 979 times by 16 tests
Evaluated 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
FALSEevaluated 660 times by 13 tests
Evaluated 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-979
1287 continue;
executed 979 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
979
1288 const QHash<QModelIndex, QPersistentModelIndexData *>::iterator it = d->persistent.indexes.find(from.at(i));-
1289 if (it != d->persistent.indexes.end()
it != d->persi....indexes.end()Description
TRUEevaluated 534 times by 13 tests
Evaluated 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
FALSEevaluated 126 times by 2 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QTableWidget
) {
126-534
1290 QPersistentModelIndexData *data = *it;-
1291 d->persistent.indexes.erase(it);-
1292 data->index = to.at(i);-
1293 if (data->index.isValid()
data->index.isValid()Description
TRUEevaluated 534 times by 13 tests
Evaluated 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
FALSEnever evaluated
)
0-534
1294 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
1295 else-
1296 data->model = 0;
never executed: data->model = 0;
0
1297 }-
1298 }
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
1299-
1300 for (QVector<QPersistentModelIndexData *>::const_iterator it = toBeReinserted.constBegin();-
1301 it != toBeReinserted.constEnd()
it != toBeRein...ted.constEnd()Description
TRUEevaluated 534 times by 13 tests
Evaluated 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
FALSEevaluated 734 times by 18 tests
Evaluated 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-734
1302 QPersistentModelIndexData *data = *it;-
1303 d->persistent.insertMultiAtEnd(data->index, data);-
1304 }
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
1305}
executed 734 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
734
1306-
1307-
1308-
1309-
1310-
1311-
1312QModelIndexList QAbstractItemModel::persistentIndexList() const-
1313{-
1314 const QAbstractItemModelPrivate * const d = d_func();-
1315 QModelIndexList result;-
1316 result.reserve(d->persistent.indexes.count());-
1317 for (QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it = d->persistent.indexes.constBegin();-
1318 it != d->persistent.indexes.constEnd()
it != d->persi...xes.constEnd()Description
TRUEevaluated 975 times by 11 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
FALSEevaluated 1011 times by 15 tests
Evaluated 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) {
975-1011
1319 QPersistentModelIndexData *data = *it;-
1320 result.append(data->index);-
1321 }
executed 975 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
975
1322 return
executed 1011 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 1011 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
1011
1323}-
1324QAbstractTableModel::QAbstractTableModel(QObject *parent)-
1325 : QAbstractItemModel(parent)-
1326{-
1327-
1328}
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
1329-
1330-
1331-
1332-
1333-
1334-
1335-
1336QAbstractTableModel::QAbstractTableModel(QAbstractItemModelPrivate &dd, QObject *parent)-
1337 : QAbstractItemModel(dd, parent)-
1338{-
1339-
1340}
executed 287 times by 4 tests: end of block
Executed by:
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
287
1341-
1342-
1343-
1344-
1345-
1346QAbstractTableModel::~QAbstractTableModel()-
1347{-
1348-
1349}-
1350QModelIndex QAbstractTableModel::index(int row, int column, const QModelIndex &parent) const-
1351{-
1352 return
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
hasIndex(row, column, parent)
hasIndex(row, column, parent)Description
TRUEevaluated 59500 times by 16 tests
Evaluated 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
FALSEevaluated 2284 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTableView
  • tst_QTableWidget
? 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
2284-61784
1353}-
1354QModelIndex QAbstractTableModel::parent(const QModelIndex &) const-
1355{-
1356 return
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
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
1357}-
1358-
1359-
1360-
1361-
1362QModelIndex QAbstractTableModel::sibling(int row, int column, const QModelIndex &) const-
1363{-
1364 return
executed 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
1365}-
1366-
1367bool QAbstractTableModel::hasChildren(const QModelIndex &parent) const-
1368{-
1369 if (parent.model() == this
parent.model() == thisDescription
TRUEevaluated 2459 times by 2 tests
Evaluated by:
  • tst_QComboBox
  • tst_QItemModel
FALSEevaluated 254 times by 2 tests
Evaluated by:
  • tst_QItemModel
  • tst_QTreeView
|| !parent.isValid()
!parent.isValid()Description
TRUEevaluated 254 times by 2 tests
Evaluated by:
  • tst_QItemModel
  • tst_QTreeView
FALSEnever evaluated
)
0-2459
1370 return
executed 2713 times by 3 tests: return rowCount(parent) > 0 && columnCount(parent) > 0;
Executed by:
  • tst_QComboBox
  • tst_QItemModel
  • tst_QTreeView
rowCount(parent) > 0
rowCount(parent) > 0Description
TRUEevaluated 234 times by 2 tests
Evaluated by:
  • tst_QItemModel
  • tst_QTreeView
FALSEevaluated 2479 times by 2 tests
Evaluated by:
  • tst_QComboBox
  • tst_QItemModel
&& columnCount(parent) > 0
columnCount(parent) > 0Description
TRUEevaluated 234 times by 2 tests
Evaluated by:
  • tst_QItemModel
  • tst_QTreeView
FALSEnever evaluated
;
executed 2713 times by 3 tests: return rowCount(parent) > 0 && columnCount(parent) > 0;
Executed by:
  • tst_QComboBox
  • tst_QItemModel
  • tst_QTreeView
0-2713
1371 return
never executed: return false;
false;
never executed: return false;
0
1372}-
1373-
1374-
1375-
1376-
1377Qt::ItemFlags QAbstractTableModel::flags(const QModelIndex &index) const-
1378{-
1379 Qt::ItemFlags f = QAbstractItemModel::flags(index);-
1380 if (index.isValid()
index.isValid()Description
TRUEevaluated 10749 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QItemSelectionModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QItemModel
)
2-10749
1381 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
1382 return
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
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
1383}-
1384QAbstractListModel::QAbstractListModel(QObject *parent)-
1385 : QAbstractItemModel(parent)-
1386{-
1387-
1388}
executed 591 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
591
1389-
1390-
1391-
1392-
1393-
1394-
1395-
1396QAbstractListModel::QAbstractListModel(QAbstractItemModelPrivate &dd, QObject *parent)-
1397 : QAbstractItemModel(dd, parent)-
1398{-
1399-
1400}
never executed: end of block
0
1401-
1402-
1403-
1404-
1405-
1406QAbstractListModel::~QAbstractListModel()-
1407{-
1408-
1409}-
1410QModelIndex QAbstractListModel::index(int row, int column, const QModelIndex &parent) const-
1411{-
1412 return
executed 99747 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)
hasIndex(row, column, parent)Description
TRUEevaluated 99101 times by 20 tests
Evaluated 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
FALSEevaluated 646 times by 7 tests
Evaluated by:
  • tst_ModelTest
  • tst_QComboBox
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QListView
? createIndex(row, column) : QModelIndex();
executed 99747 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
646-99747
1413}-
1414-
1415-
1416-
1417-
1418-
1419-
1420-
1421QModelIndex QAbstractListModel::parent(const QModelIndex & ) const-
1422{-
1423 return
executed 33511 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 33511 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
33511
1424}-
1425-
1426-
1427-
1428-
1429QModelIndex QAbstractListModel::sibling(int row, int column, const QModelIndex &) const-
1430{-
1431 return
executed 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
1432}-
1433-
1434-
1435-
1436-
1437Qt::ItemFlags QAbstractListModel::flags(const QModelIndex &index) const-
1438{-
1439 Qt::ItemFlags f = QAbstractItemModel::flags(index);-
1440 if (index.isValid()
index.isValid()Description
TRUEevaluated 12064 times by 14 tests
Evaluated 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
FALSEevaluated 18 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QSortFilterProxyModel
)
18-12064
1441 f |= Qt::ItemNeverHasChildren;
executed 12064 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
12064
1442 return
executed 12082 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 12082 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
12082
1443}-
1444int QAbstractListModel::columnCount(const QModelIndex &parent) const-
1445{-
1446 return
executed 134423 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()
parent.isValid()Description
TRUEevaluated 7 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QSortFilterProxyModel
FALSEevaluated 134416 times by 22 tests
Evaluated 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
? 0 : 1;
executed 134423 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
7-134423
1447}-
1448-
1449bool QAbstractListModel::hasChildren(const QModelIndex &parent) const-
1450{-
1451 return
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
parent.isValid()
parent.isValid()Description
TRUEevaluated 1365 times by 6 tests
Evaluated by:
  • tst_ModelTest
  • tst_QColumnView
  • tst_QComboBox
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QSortFilterProxyModel
FALSEevaluated 296 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QColumnView
  • tst_QItemModel
  • tst_QSortFilterProxyModel
  • tst_QTreeView
? 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
296-1661
1452}-
1453bool QAbstractTableModel::dropMimeData(const QMimeData *data, Qt::DropAction action,-
1454 int row, int column, const QModelIndex &parent)-
1455{-
1456 if (!data
!dataDescription
TRUEnever evaluated
FALSEnever evaluated
|| !(action == Qt::CopyAction
action == Qt::CopyActionDescription
TRUEnever evaluated
FALSEnever evaluated
|| action == Qt::MoveAction
action == Qt::MoveActionDescription
TRUEnever evaluated
FALSEnever evaluated
))
0
1457 return
never executed: return false;
false;
never executed: return false;
0
1458-
1459 QStringList types = mimeTypes();-
1460 if (types.isEmpty()
types.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1461 return
never executed: return false;
false;
never executed: return false;
0
1462 QString format = types.at(0);-
1463 if (!data->hasFormat(format)
!data->hasFormat(format)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1464 return
never executed: return false;
false;
never executed: return false;
0
1465-
1466 QByteArray encoded = data->data(format);-
1467 QDataStream stream(&encoded, QIODevice::ReadOnly);-
1468-
1469-
1470 if (parent.isValid()
parent.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
&& row == -1
row == -1Description
TRUEnever evaluated
FALSEnever evaluated
&& column == -1
column == -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1471 int top = 2147483647;-
1472 int left = 2147483647;-
1473 QVector<int> rows, columns;-
1474 QVector<QMap<int, QVariant> > data;-
1475-
1476 while (!stream.atEnd()
!stream.atEnd()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1477 int r, c;-
1478 QMap<int, QVariant> v;-
1479 stream >> r >> c >> v;-
1480 rows.append(r);-
1481 columns.append(c);-
1482 data.append(v);-
1483 top = qMin(r, top);-
1484 left = qMin(c, left);-
1485 }
never executed: end of block
0
1486-
1487 for (int i = 0; i < data.size()
i < data.size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1488 int r = (rows.at(i) - top) + parent.row();-
1489 int c = (columns.at(i) - left) + parent.column();-
1490 if (hasIndex(r, c)
hasIndex(r, c)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1491 setItemData(index(r, c), data.at(i));
never executed: setItemData(index(r, c), data.at(i));
0
1492 }
never executed: end of block
0
1493-
1494 return
never executed: return true;
true;
never executed: return true;
0
1495 }-
1496-
1497-
1498 return
never executed: return decodeData(row, column, parent, stream);
decodeData(row, column, parent, stream);
never executed: return decodeData(row, column, parent, stream);
0
1499}-
1500-
1501-
1502-
1503-
1504bool QAbstractListModel::dropMimeData(const QMimeData *data, Qt::DropAction action,-
1505 int row, int column, const QModelIndex &parent)-
1506{-
1507 if (!data
!dataDescription
TRUEnever evaluated
FALSEnever evaluated
|| !(action == Qt::CopyAction
action == Qt::CopyActionDescription
TRUEnever evaluated
FALSEnever evaluated
|| action == Qt::MoveAction
action == Qt::MoveActionDescription
TRUEnever evaluated
FALSEnever evaluated
))
0
1508 return
never executed: return false;
false;
never executed: return false;
0
1509-
1510 QStringList types = mimeTypes();-
1511 if (types.isEmpty()
types.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1512 return
never executed: return false;
false;
never executed: return false;
0
1513 QString format = types.at(0);-
1514 if (!data->hasFormat(format)
!data->hasFormat(format)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1515 return
never executed: return false;
false;
never executed: return false;
0
1516-
1517 QByteArray encoded = data->data(format);-
1518 QDataStream stream(&encoded, QIODevice::ReadOnly);-
1519-
1520-
1521 if (parent.isValid()
parent.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
&& row == -1
row == -1Description
TRUEnever evaluated
FALSEnever evaluated
&& column == -1
column == -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1522 int top = 2147483647;-
1523 int left = 2147483647;-
1524 QVector<int> rows, columns;-
1525 QVector<QMap<int, QVariant> > data;-
1526-
1527 while (!stream.atEnd()
!stream.atEnd()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1528 int r, c;-
1529 QMap<int, QVariant> v;-
1530 stream >> r >> c >> v;-
1531 rows.append(r);-
1532 columns.append(c);-
1533 data.append(v);-
1534 top = qMin(r, top);-
1535 left = qMin(c, left);-
1536 }
never executed: end of block
0
1537-
1538 for (int i = 0; i < data.size()
i < data.size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
1539 int r = (rows.at(i) - top) + parent.row();-
1540 if (columns.at(i) == left
columns.at(i) == leftDescription
TRUEnever evaluated
FALSEnever evaluated
&& hasIndex(r, 0)
hasIndex(r, 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1541 setItemData(index(r), data.at(i));
never executed: setItemData(index(r), data.at(i));
0
1542 }
never executed: end of block
0
1543-
1544 return
never executed: return true;
true;
never executed: return true;
0
1545 }-
1546-
1547 if (row == -1
row == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1548 row = rowCount(parent);
never executed: row = rowCount(parent);
0
1549-
1550-
1551 return
never executed: return decodeData(row, column, parent, stream);
decodeData(row, column, parent, stream);
never executed: return decodeData(row, column, parent, stream);
0
1552}-
1553void QAbstractItemModelPrivate::Persistent::insertMultiAtEnd(const QModelIndex& key, QPersistentModelIndexData *data)-
1554{-
1555 QHash<QModelIndex,QPersistentModelIndexData *>::iterator newIt =-
1556 indexes.insertMulti(key, data);-
1557 QHash<QModelIndex,QPersistentModelIndexData *>::iterator it = newIt + 1;-
1558 while (it != indexes.end()
it != indexes.end()Description
TRUEevaluated 8524 times by 14 tests
Evaluated 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
FALSEevaluated 519 times by 20 tests
Evaluated 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() == key
it.key() == keyDescription
TRUEevaluated 29 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
FALSEevaluated 8495 times by 14 tests
Evaluated 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
) {
29-8524
1559 qSwap(*newIt,*it);-
1560 newIt = it;-
1561 ++it;-
1562 }
executed 29 times by 4 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QItemSelectionModel
  • tst_QStandardItemModel
29
1563}
executed 9014 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
9014
1564-
1565-
Switch to Source codePreprocessed file

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