| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | QPersistentModelIndexData *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()| TRUE | evaluated 81850 times by 34 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- ...
| | FALSE | evaluated 25692 times by 41 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
|
) { | 25692-81850 |
| 13 | d = (*it); | - |
| 14 | }executed 81850 times by 34 tests: end of blockExecuted 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 blockExecuted 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 | returnexecuted 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 | | - |
| 22 | void 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| TRUE | evaluated 21152 times by 38 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- ...
| | FALSE | evaluated 4526 times by 39 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- ...
|
) { | 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 blockExecuted 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 blockExecuted 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 |
| 35 | QPersistentModelIndex::QPersistentModelIndex() | - |
| 36 | : d(0) | - |
| 37 | { | - |
| 38 | }executed 37895 times by 49 tests: end of blockExecuted 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 |
| 39 | QPersistentModelIndex::QPersistentModelIndex(const QPersistentModelIndex &other) | - |
| 40 | : d(other.d) | - |
| 41 | { | - |
| 42 | if (d| TRUE | evaluated 85101 times by 34 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- ...
| | FALSE | evaluated 1764 times by 36 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QMetaType
- ...
|
) d->ref.ref();executed 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 blockExecuted 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 | | - |
| 49 | QPersistentModelIndex::QPersistentModelIndex(const QModelIndex &index) | - |
| 50 | : d(0) | - |
| 51 | { | - |
| 52 | if (index.isValid()| TRUE | evaluated 99822 times by 41 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| | FALSE | evaluated 612 times by 23 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItem
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
- tst_QVariant
|
) { | 612-99822 |
| 53 | d = QPersistentModelIndexData::create(index); | - |
| 54 | d->ref.ref(); | - |
| 55 | }executed 99822 times by 41 tests: end of blockExecuted 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 blockExecuted 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 | | - |
| 64 | QPersistentModelIndex::~QPersistentModelIndex() | - |
| 65 | { | - |
| 66 | if (d| TRUE | evaluated 187982 times by 43 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| | FALSE | evaluated 34542 times by 52 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLayout
- ...
|
&& !d->ref.deref()| TRUE | evaluated 17662 times by 43 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| | FALSE | evaluated 170320 times by 36 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- ...
|
) { | 17662-187982 |
| 67 | QPersistentModelIndexData::destroy(d); | - |
| 68 | d = 0; | - |
| 69 | }executed 17662 times by 43 tests: end of blockExecuted 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 blockExecuted 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 |
| 71 | bool QPersistentModelIndex::operator==(const QPersistentModelIndex &other) const | - |
| 72 | { | - |
| 73 | if (d| TRUE | evaluated 41174 times by 27 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- ...
| | FALSE | evaluated 703 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMetaType
- tst_QSqlQueryModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
&& other.d| TRUE | evaluated 39583 times by 27 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- ...
| | FALSE | evaluated 1591 times by 6 testsEvaluated by:- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFiledialog
- tst_QListView
- tst_QTreeView
- tst_QTreeWidget
|
) | 703-41174 |
| 74 | returnexecuted 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 | returnexecuted 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 | } | - |
| 77 | bool QPersistentModelIndex::operator<(const QPersistentModelIndex &other) const | - |
| 78 | { | - |
| 79 | if (d| TRUE | evaluated 1896 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | never evaluated |
&& other.d| TRUE | evaluated 1896 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeWidget
| | FALSE | never evaluated |
) | 0-1896 |
| 80 | returnexecuted 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 | } | - |
| 84 | QPersistentModelIndex &QPersistentModelIndex::operator=(const QPersistentModelIndex &other) | - |
| 85 | { | - |
| 86 | if (d == other.d| TRUE | evaluated 152 times by 10 testsEvaluated by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemView
- tst_QListView
- tst_QSidebar
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 14713 times by 21 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
) | 152-14713 |
| 87 | returnexecuted 152 times by 10 tests: return *this;Executed by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemView
- tst_QListView
- tst_QSidebar
- tst_QTreeView
- tst_QTreeWidget
*this;executed 152 times by 10 tests: return *this;Executed by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemView
- tst_QListView
- tst_QSidebar
- tst_QTreeView
- tst_QTreeWidget
| 152 |
| 88 | if (d| TRUE | evaluated 14431 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 282 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
&& !d->ref.deref()| TRUE | evaluated 5981 times by 8 testsEvaluated by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QItemView
- tst_QListView
- tst_QTableWidget
- tst_QTreeView
| | FALSE | evaluated 8450 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
) | 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| TRUE | evaluated 14696 times by 21 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 17 times by 5 testsEvaluated 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 | returnexecuted 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 | } | - |
| 94 | QPersistentModelIndex &QPersistentModelIndex::operator=(const QModelIndex &other) | - |
| 95 | { | - |
| 96 | if (d| TRUE | evaluated 4900 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_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
- ...
| | FALSE | evaluated 22786 times by 44 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- ...
|
&& !d->ref.deref()| TRUE | evaluated 2035 times by 26 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_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
- ...
| | FALSE | evaluated 2865 times by 24 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
) | 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()| TRUE | evaluated 7720 times by 32 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- ...
| | FALSE | evaluated 19966 times by 43 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
|
) { | 7720-19966 |
| 99 | d = QPersistentModelIndexData::create(other); | - |
| 100 | if (d| TRUE | evaluated 7720 times by 32 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- ...
| | FALSE | never evaluated |
) d->ref.ref();executed 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 blockExecuted 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 blockExecuted by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
| 19966 |
| 104 | returnexecuted 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 | | - |
| 113 | QPersistentModelIndex::operator const QModelIndex&() const | - |
| 114 | { | - |
| 115 | static const QModelIndex invalid; | - |
| 116 | if (d| TRUE | evaluated 112865 times by 40 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- ...
| | FALSE | evaluated 524411 times by 48 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLayout
- tst_QLineEdit
- ...
|
) | 112865-524411 |
| 117 | returnexecuted 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 | returnexecuted 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 | } | - |
| 120 | bool QPersistentModelIndex::operator==(const QModelIndex &other) const | - |
| 121 | { | - |
| 122 | if (d| TRUE | evaluated 809 times by 9 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeView
| | FALSE | evaluated 1842 times by 22 testsEvaluated by:- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QLayout
- tst_QPrinter
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QWidgetAction
- tst_QWizard
- tst_languageChange
- tst_qapplication - unknown status
|
) | 809-1842 |
| 123 | returnexecuted 809 times by 9 tests: return d->index == other;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeView
d->index == other;executed 809 times by 9 tests: return d->index == other;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QColumnView
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QTreeView
| 809 |
| 124 | returnexecuted 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 | } | - |
| 126 | bool QPersistentModelIndex::operator!=(const QModelIndex &other) const | - |
| 127 | { | - |
| 128 | if (d| TRUE | evaluated 179 times by 3 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemView
- tst_QTableView
| | FALSE | evaluated 2 times by 1 test |
) | 2-179 |
| 129 | returnexecuted 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 | returnexecuted 2 times by 1 test: return other.isValid(); other.isValid();executed 2 times by 1 test: return other.isValid(); | 2 |
| 131 | } | - |
| 132 | | - |
| 133 | | - |
| 134 | | - |
| 135 | | - |
| 136 | | - |
| 137 | | - |
| 138 | | - |
| 139 | int QPersistentModelIndex::row() const | - |
| 140 | { | - |
| 141 | if (d| TRUE | evaluated 274431 times by 39 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- ...
| | FALSE | evaluated 3910 times by 36 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QPrinter
- ...
|
) | 3910-274431 |
| 142 | returnexecuted 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 | returnexecuted 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 | | - |
| 152 | int QPersistentModelIndex::column() const | - |
| 153 | { | - |
| 154 | if (d| TRUE | evaluated 207290 times by 34 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- ...
| | FALSE | evaluated 1931 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- ...
|
) | 1931-207290 |
| 155 | returnexecuted 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 | returnexecuted 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 | } | - |
| 158 | void *QPersistentModelIndex::internalPointer() const | - |
| 159 | { | - |
| 160 | if (d| TRUE | evaluated 108 times by 2 testsEvaluated by:- tst_QListWidget
- tst_QTreeWidget
| | FALSE | never evaluated |
) | 0-108 |
| 161 | returnexecuted 108 times by 2 tests: return d->index.internalPointer();Executed by:- tst_QListWidget
- tst_QTreeWidget
d->index.internalPointer();executed 108 times by 2 tests: return d->index.internalPointer();Executed by:- tst_QListWidget
- tst_QTreeWidget
| 108 |
| 162 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 163 | } | - |
| 164 | quintptr QPersistentModelIndex::internalId() const | - |
| 165 | { | - |
| 166 | if (d| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
) | 0-4 |
| 167 | returnexecuted 4 times by 1 test: return d->index.internalId(); d->index.internalId();executed 4 times by 1 test: return d->index.internalId(); | 4 |
| 168 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 169 | } | - |
| 170 | | - |
| 171 | | - |
| 172 | | - |
| 173 | | - |
| 174 | | - |
| 175 | | - |
| 176 | | - |
| 177 | QModelIndex QPersistentModelIndex::parent() const | - |
| 178 | { | - |
| 179 | if (d| TRUE | evaluated 208739 times by 30 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- ...
| | FALSE | evaluated 3309 times by 11 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | } | - |
| 183 | QModelIndex QPersistentModelIndex::sibling(int row, int column) const | - |
| 184 | { | - |
| 185 | if (d| TRUE | evaluated 13 times by 2 testsEvaluated by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| | FALSE | never evaluated |
) | 0-13 |
| 186 | returnexecuted 13 times by 2 tests: return d->index.sibling(row, column);Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
d->index.sibling(row, column);executed 13 times by 2 tests: return d->index.sibling(row, column);Executed by:- tst_QAbstractItemView
- tst_QItemSelectionModel
| 13 |
| 187 | return never executed: return QModelIndex(); QModelIndex();never executed: return QModelIndex(); | 0 |
| 188 | } | - |
| 189 | QModelIndex QPersistentModelIndex::child(int row, int column) const | - |
| 190 | { | - |
| 191 | if (d| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 192 | return never executed: return d->index.child(row, column); d->index.child(row, column);never executed: return d->index.child(row, column); | 0 |
| 193 | return never executed: return QModelIndex(); QModelIndex();never executed: return QModelIndex(); | 0 |
| 194 | } | - |
| 195 | | - |
| 196 | | - |
| 197 | | - |
| 198 | | - |
| 199 | | - |
| 200 | | - |
| 201 | | - |
| 202 | QVariant QPersistentModelIndex::data(int role) const | - |
| 203 | { | - |
| 204 | if (d| TRUE | evaluated 232 times by 6 testsEvaluated by:- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDirModel
- tst_QFileDialog2
- tst_QPrinter
- tst_QTableWidget
| | FALSE | never evaluated |
) | 0-232 |
| 205 | returnexecuted 232 times by 6 tests: return d->index.data(role);Executed by:- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDirModel
- tst_QFileDialog2
- tst_QPrinter
- tst_QTableWidget
d->index.data(role);executed 232 times by 6 tests: return d->index.data(role);Executed by:- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDirModel
- tst_QFileDialog2
- tst_QPrinter
- tst_QTableWidget
| 232 |
| 206 | return never executed: return QVariant(); QVariant();never executed: return QVariant(); | 0 |
| 207 | } | - |
| 208 | | - |
| 209 | | - |
| 210 | | - |
| 211 | | - |
| 212 | | - |
| 213 | | - |
| 214 | Qt::ItemFlags QPersistentModelIndex::flags() const | - |
| 215 | { | - |
| 216 | if (d| TRUE | evaluated 841 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | never evaluated |
) | 0-841 |
| 217 | returnexecuted 841 times by 3 tests: return d->index.flags();Executed by:- tst_QAccessibility
- tst_QTreeView
- tst_QTreeWidget
d->index.flags();executed 841 times by 3 tests: return d->index.flags();Executed by:- tst_QAccessibility
- tst_QTreeView
- tst_QTreeWidget
| 841 |
| 218 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 219 | } | - |
| 220 | | - |
| 221 | | - |
| 222 | | - |
| 223 | | - |
| 224 | const QAbstractItemModel *QPersistentModelIndex::model() const | - |
| 225 | { | - |
| 226 | if (d| TRUE | evaluated 38769 times by 23 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QItemDelegate
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| | FALSE | never evaluated |
) | 0-38769 |
| 227 | returnexecuted 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 | } | - |
| 230 | bool QPersistentModelIndex::isValid() const | - |
| 231 | { | - |
| 232 | returnexecuted 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| TRUE | evaluated 140945 times by 38 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_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
- ...
| | FALSE | evaluated 7240 times by 38 testsEvaluated 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()| TRUE | evaluated 139154 times by 38 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_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
- ...
| | FALSE | evaluated 1791 times by 22 testsEvaluated 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 | | - |
| 236 | QDebug operator<<(QDebug dbg, const QModelIndex &idx) | - |
| 237 | { | - |
| 238 | QDebugStateSaver saver(dbg); | - |
| 239 | dbg.nospace() << "QModelIndex(" << idx.row() << ',' << idx.column() | - |
| 240 | << ',' << idx.internalPointer() << ',' << idx.model() << ')'; | - |
| 241 | returnexecuted 15 times by 3 tests: return dbg;Executed by:- tst_ModelTest
- tst_QAccessibility
- tst_QVariant
dbg;executed 15 times by 3 tests: return dbg;Executed by:- tst_ModelTest
- tst_QAccessibility
- tst_QVariant
| 15 |
| 242 | } | - |
| 243 | | - |
| 244 | QDebug operator<<(QDebug dbg, const QPersistentModelIndex &idx) | - |
| 245 | { | - |
| 246 | if (idx.d| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
) | 0-1 |
| 247 | dbg << idx.d->index; never executed: dbg << idx.d->index; | 0 |
| 248 | else | - |
| 249 | dbg << QModelIndex();executed 1 time by 1 test: dbg << QModelIndex(); | 1 |
| 250 | returnexecuted 1 time by 1 test: return dbg; dbg;executed 1 time by 1 test: return dbg; | 1 |
| 251 | } | - |
| 252 | | - |
| 253 | | - |
| 254 | class QEmptyItemModel : public QAbstractItemModel | - |
| 255 | { | - |
| 256 | public: | - |
| 257 | explicit QEmptyItemModel(QObject *parent = 0) : QAbstractItemModel(parent) {}executed 45 times by 45 tests: end of blockExecuted by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- ...
| 45 |
| 258 | QModelIndex index(int, int, const QModelIndex &) const override { returnexecuted 56 times by 5 tests: return QModelIndex();Executed by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QItemView
- tst_QListView
- tst_QTreeView
QModelIndex();executed 56 times by 5 tests: return QModelIndex();Executed by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QItemView
- tst_QListView
- tst_QTreeView
} | 56 |
| 259 | QModelIndex parent(const QModelIndex &) const override { return never executed: return QModelIndex(); QModelIndex();never executed: return QModelIndex(); } | 0 |
| 260 | int rowCount(const QModelIndex &) const override { returnexecuted 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 { returnexecuted 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 { returnexecuted 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 { returnexecuted 1030 times by 2 tests: return QVariant();Executed by:- tst_ModelTest
- tst_QAbstractProxyModel
QVariant();executed 1030 times by 2 tests: return QVariant();Executed by:- tst_ModelTest
- tst_QAbstractProxyModel
} | 1030 |
| 264 | }; | - |
| 265 | | - |
| 266 | namespace { namespace Q_QGS_qEmptyModel { typedef QEmptyItemModel Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized| TRUE | evaluated 46 times by 46 testsEvaluated by:- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qaccessibility - unknown status
- tst_qapplication - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdirmodel - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qheaderview - unknown status
- tst_qidentityproxymodel - unknown status
- tst_qinputdialog - unknown status
- tst_qitemdelegate - unknown status
- tst_qitemmodel - unknown status
- ...
| | FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 46 times by 46 tests: guard.store(QtGlobalStatic::Destroyed);Executed by:- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qaccessibility - unknown status
- tst_qapplication - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdirmodel - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qheaderview - unknown status
- tst_qidentityproxymodel - unknown status
- tst_qinputdialog - unknown status
- tst_qitemdelegate - unknown status
- tst_qitemmodel - unknown status
- ...
}executed 46 times by 46 tests: end of blockExecuted by:- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qaccessibility - unknown status
- tst_qapplication - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdirmodel - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qheaderview - unknown status
- tst_qidentityproxymodel - unknown status
- tst_qinputdialog - unknown status
- tst_qitemdelegate - unknown status
- tst_qitemmodel - unknown status
- ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 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 | | - |
| 269 | QAbstractItemModelPrivate::~QAbstractItemModelPrivate() | - |
| 270 | { | - |
| 271 | } | - |
| 272 | | - |
| 273 | QAbstractItemModel *QAbstractItemModelPrivate::staticEmptyModel() | - |
| 274 | { | - |
| 275 | returnexecuted 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 | | - |
| 278 | namespace { | - |
| 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 blockExecuted 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 | | - |
| 292 | namespace { namespace Q_QGS_qDefaultRoleNames { typedef DefaultRoleNames Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized| TRUE | evaluated 54 times by 54 testsEvaluated by:- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qaccessibility - unknown status
- tst_qapplication - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdirmodel - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgridlayout - unknown status
- tst_qheaderview - unknown status
- tst_qidentityproxymodel - unknown status
- tst_qinputdialog - unknown status
- tst_qitemdelegate - unknown status
- ...
| | FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 54 times by 54 tests: guard.store(QtGlobalStatic::Destroyed);Executed by:- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qaccessibility - unknown status
- tst_qapplication - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdirmodel - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgridlayout - unknown status
- tst_qheaderview - unknown status
- tst_qidentityproxymodel - unknown status
- tst_qinputdialog - unknown status
- tst_qitemdelegate - unknown status
- ...
}executed 54 times by 54 tests: end of blockExecuted by:- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qaccessibility - unknown status
- tst_qapplication - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolumnview - unknown status
- tst_qcombobox - unknown status
- tst_qcompleter - unknown status
- tst_qdatawidgetmapper - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdirmodel - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qfontcombobox - unknown status
- tst_qfontdialog - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qgridlayout - unknown status
- tst_qheaderview - unknown status
- tst_qidentityproxymodel - unknown status
- tst_qinputdialog - unknown status
- tst_qitemdelegate - unknown status
- ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 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 | | - |
| 294 | const QHash<int,QByteArray> &QAbstractItemModelPrivate::defaultRoleNames() | - |
| 295 | { | - |
| 296 | returnexecuted 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 | | - |
| 300 | static 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 | caseexecuted 26 times by 2 tests: case QVariant::Int:Executed by:- tst_QListWidget
- tst_QTreeWidget
QVariant::Int:executed 26 times by 2 tests: case QVariant::Int:Executed by:- tst_QListWidget
- tst_QTreeWidget
| 26 |
| 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 | returnexecuted 26 times by 2 tests: return 0;Executed by:- tst_QListWidget
- tst_QTreeWidget
0;executed 26 times by 2 tests: return 0;Executed by:- tst_QListWidget
- tst_QTreeWidget
| 26 |
| 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 | defaultexecuted 22804 times by 6 tests: default:Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
:executed 22804 times by 6 tests: default:Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 22804 |
| 320 | returnexecuted 22804 times by 6 tests: return 2;Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
2;executed 22804 times by 6 tests: return 2;Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 22804 |
| 321 | } | - |
| 322 | } | - |
| 323 | | - |
| 324 | | - |
| 325 | | - |
| 326 | | - |
| 327 | | - |
| 328 | | - |
| 329 | | - |
| 330 | bool QAbstractItemModelPrivate::variantLessThan(const QVariant &v1, const QVariant &v2) | - |
| 331 | { | - |
| 332 | switch(qMax(typeOfVariant(v1), typeOfVariant(v2))) | - |
| 333 | { | - |
| 334 | caseexecuted 13 times by 2 tests: case 0:Executed by:- tst_QListWidget
- tst_QTreeWidget
0:executed 13 times by 2 tests: case 0:Executed by:- tst_QListWidget
- tst_QTreeWidget
| 13 |
| 335 | returnexecuted 13 times by 2 tests: return v1.toLongLong() < v2.toLongLong();Executed by:- tst_QListWidget
- tst_QTreeWidget
v1.toLongLong() < v2.toLongLong();executed 13 times by 2 tests: return v1.toLongLong() < v2.toLongLong();Executed by:- tst_QListWidget
- tst_QTreeWidget
| 13 |
| 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 | defaultexecuted 11402 times by 6 tests: default:Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
:executed 11402 times by 6 tests: default:Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 11402 |
| 339 | returnexecuted 11402 times by 6 tests: return v1.toString().localeAwareCompare(v2.toString()) < 0;Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
v1.toString().localeAwareCompare(v2.toString()) < 0;executed 11402 times by 6 tests: return v1.toString().localeAwareCompare(v2.toString()) < 0;Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
| 11402 |
| 340 | } | - |
| 341 | } | - |
| 342 | | - |
| 343 | void QAbstractItemModelPrivate::removePersistentIndexData(QPersistentModelIndexData *data) | - |
| 344 | { | - |
| 345 | if (data->index.isValid()| TRUE | evaluated 21150 times by 38 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- ...
| | FALSE | evaluated 2 times by 1 test |
) { | 2-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 blockExecuted 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| TRUE | never evaluated | | FALSE | evaluated 21152 times by 38 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- ...
|
; --i) { | 0-21152 |
| 359 | int idx = persistent.moved[i].indexOf(data); | - |
| 360 | if (idx >= 0| TRUE | never evaluated | | FALSE | never 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| TRUE | never evaluated | | FALSE | evaluated 21152 times by 38 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QListView
- tst_QListWidget
- ...
|
; --i) { | 0-21152 |
| 365 | int idx = persistent.invalidated[i].indexOf(data); | - |
| 366 | if (idx >= 0| TRUE | never evaluated | | FALSE | never 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 blockExecuted 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 | | - |
| 372 | void 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)| TRUE | evaluated 2725 times by 25 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 118212 times by 43 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- ...
|
) { | 2725-118212 |
| 379 | for (QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it = persistent.indexes.constBegin(); | - |
| 380 | it != persistent.indexes.constEnd()| TRUE | evaluated 7851 times by 15 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 2725 times by 25 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
; ++it) { | 2725-7851 |
| 381 | QPersistentModelIndexData *data = *it; | - |
| 382 | const QModelIndex &index = data->index; | - |
| 383 | if (index.row() >= first| TRUE | evaluated 6497 times by 15 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 1354 times by 9 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QComboBox
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
|
&& index.isValid()| TRUE | evaluated 6497 times by 15 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | never evaluated |
&& index.parent() == parent| TRUE | evaluated 6163 times by 12 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeWidget
| | FALSE | evaluated 334 times by 5 testsEvaluated by:- tst_QFileDialog2
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
|
) { | 0-6497 |
| 384 | persistent_moved.append(data); | - |
| 385 | }executed 6163 times by 12 tests: end of blockExecuted 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 blockExecuted 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 blockExecuted 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 blockExecuted 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 | | - |
| 391 | void 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()| TRUE | evaluated 6163 times by 12 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeWidget
| | FALSE | evaluated 120937 times by 45 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QGridLayout
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- ...
|
; ++it) { | 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()| TRUE | evaluated 6163 times by 12 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFiledialog
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeWidget
| | FALSE | never evaluated |
) { | 0-6163 |
| 403 | persistent.insertMultiAtEnd(data->index, data); | - |
| 404 | }executed 6163 times by 12 tests: end of blockExecuted 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 blockExecuted 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 | | - |
| 410 | void 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| TRUE | evaluated 2617 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 72 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
|
; ++it) { | 72-2617 |
| 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| TRUE | evaluated 2617 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| | FALSE | never 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()| TRUE | never evaluated | | FALSE | evaluated 2617 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
|| !(isSourceIndex| TRUE | evaluated 1312 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | evaluated 1305 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
|| isDestinationIndex| TRUE | evaluated 823 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 482 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
) ) | 0-2617 |
| 437 | continue;executed 482 times by 2 tests: continue;Executed by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| 482 |
| 438 | | - |
| 439 | if (!sameParent| TRUE | evaluated 1655 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 480 times by 1 test |
&& isDestinationIndex| TRUE | evaluated 823 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 832 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
) { | 480-1655 |
| 440 | if (childPosition >= destinationChild| TRUE | evaluated 376 times by 1 test | | FALSE | evaluated 447 times by 2 testsEvaluated 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); | 376 |
| 442 | continue;executed 823 times by 2 tests: continue;Executed by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| 823 |
| 443 | } | - |
| 444 | | - |
| 445 | if (sameParent| TRUE | evaluated 480 times by 1 test | | FALSE | evaluated 832 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
&& movingUp| TRUE | evaluated 160 times by 1 test | | FALSE | evaluated 320 times by 1 test |
&& childPosition < destinationChild| TRUE | evaluated 28 times by 1 test | | FALSE | evaluated 132 times by 1 test |
) | 28-832 |
| 446 | continue;executed 28 times by 1 test: continue; | 28 |
| 447 | | - |
| 448 | if (sameParent| TRUE | evaluated 452 times by 1 test | | FALSE | evaluated 832 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
&& !movingUp| TRUE | evaluated 320 times by 1 test | | FALSE | evaluated 132 times by 1 test |
&& childPosition < srcFirst| TRUE | evaluated 48 times by 1 test | | FALSE | evaluated 272 times by 1 test |
) | 48-832 |
| 449 | continue;executed 48 times by 1 test: continue; | 48 |
| 450 | | - |
| 451 | if (!sameParent| TRUE | evaluated 832 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | evaluated 404 times by 1 test |
&& childPosition < srcFirst| TRUE | evaluated 386 times by 1 test | | FALSE | evaluated 446 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
) | 386-832 |
| 452 | continue;executed 386 times by 1 test: continue; | 386 |
| 453 | | - |
| 454 | if (sameParent| TRUE | evaluated 404 times by 1 test | | FALSE | evaluated 446 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
&& (| TRUE | evaluated 192 times by 1 test | | FALSE | evaluated 212 times by 1 test |
childPosition > srcLast)| TRUE | evaluated 192 times by 1 test | | FALSE | evaluated 212 times by 1 test |
&& (| TRUE | evaluated 48 times by 1 test | | FALSE | evaluated 144 times by 1 test |
childPosition >= destinationChild )| TRUE | evaluated 48 times by 1 test | | FALSE | evaluated 144 times by 1 test |
) | 48-446 |
| 455 | continue;executed 48 times by 1 test: continue; | 48 |
| 456 | | - |
| 457 | if ((| TRUE | evaluated 463 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | evaluated 339 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
childPosition <= srcLast)| TRUE | evaluated 463 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | evaluated 339 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
&& (| TRUE | evaluated 387 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | evaluated 76 times by 1 test |
childPosition >= srcFirst)| TRUE | evaluated 387 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | evaluated 76 times by 1 test |
) { | 76-463 |
| 458 | persistent_moved_explicitly.append(data); | - |
| 459 | }executed 387 times by 2 tests: end of blockExecuted by:- tst_ModelTest
- tst_QAbstractItemModel
else { | 387 |
| 460 | persistent_moved_in_source.append(data); | - |
| 461 | }executed 415 times by 2 tests: end of blockExecuted 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 blockExecuted by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
| 72 |
| 467 | void 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| TRUE | evaluated 1178 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | evaluated 216 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
|
; ++it) | 216-1178 |
| 474 | { | - |
| 475 | QPersistentModelIndexData *data = *it; | - |
| 476 | | - |
| 477 | int row = data->index.row(); | - |
| 478 | int column = data->index.column(); | - |
| 479 | | - |
| 480 | if (Qt::Vertical == orientation| TRUE | evaluated 1178 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | never 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()| TRUE | evaluated 1178 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | never evaluated |
) { | 0-1178 |
| 488 | persistent.insertMultiAtEnd(data->index, data); | - |
| 489 | }executed 1178 times by 2 tests: end of blockExecuted 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 blockExecuted by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
| 216 |
| 494 | | - |
| 495 | void 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| TRUE | evaluated 46 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
|
|| movingUp| TRUE | evaluated 14 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
| | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
|
) ? destinationChild - sourceFirst : destinationChild - sourceLast - 1 ; | 12-46 |
| 505 | const int source_change = (!sameParent| TRUE | evaluated 46 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
|
|| !movingUp| TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
| | FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
|
) ? -1*(sourceLast - sourceFirst + 1) : sourceLast - sourceFirst + 1 ; | 12-46 |
| 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 blockExecuted by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
| 72 |
| 512 | | - |
| 513 | void 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()| TRUE | evaluated 3516 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 2687 times by 31 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- ...
|
; ++it) { | 2687-3516 |
| 522 | QPersistentModelIndexData *data = *it; | - |
| 523 | bool level_changed = false; | - |
| 524 | QModelIndex current = data->index; | - |
| 525 | while (current.isValid()| TRUE | evaluated 4337 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 223 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
|
) { | 223-4337 |
| 526 | QModelIndex current_parent = current.parent(); | - |
| 527 | if (current_parent == parent| TRUE | evaluated 3293 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 1044 times by 9 testsEvaluated by:- tst_QAbstractItemView
- tst_QDirModel
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
|
) { | 1044-3293 |
| 528 | if (!level_changed| TRUE | evaluated 2977 times by 18 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 316 times by 6 testsEvaluated by:- tst_QDirModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
|
&& current.row() > last| TRUE | evaluated 1097 times by 12 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 1880 times by 16 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
) | 316-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| TRUE | evaluated 2081 times by 17 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 115 times by 1 test |
&& current.row() >= first| TRUE | evaluated 957 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 1124 times by 11 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
) | 115-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 blockExecuted 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 blockExecuted 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 blockExecuted 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 | | - |
| 543 | void 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()| TRUE | evaluated 1097 times by 12 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 2687 times by 31 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- ...
|
; ++it) { | 1097-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()| TRUE | evaluated 1097 times by 12 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QFileDialog2
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | never evaluated |
) { | 0-1097 |
| 555 | persistent.insertMultiAtEnd(data->index, data); | - |
| 556 | }executed 1097 times by 12 tests: end of blockExecuted 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()| TRUE | evaluated 957 times by 15 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QComboBox
- tst_QDirModel
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 2687 times by 31 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QStringListModel
- ...
|
; ++it) { | 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 blockExecuted 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 blockExecuted 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 | | - |
| 570 | void 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)| TRUE | evaluated 336 times by 11 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
| | FALSE | evaluated 13183 times by 31 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItem
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- ...
|
) { | 336-13183 |
| 577 | for (QHash<QModelIndex, QPersistentModelIndexData *>::const_iterator it = persistent.indexes.constBegin(); | - |
| 578 | it != persistent.indexes.constEnd()| TRUE | evaluated 62 times by 5 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QItemModel
- tst_QStandardItemModel
- tst_QTableView
| | FALSE | evaluated 336 times by 11 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QHeaderView
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
|
; ++it) { | 62-336 |
| 579 | QPersistentModelIndexData *data = *it; | - |
| 580 | const QModelIndex &index = data->index; | - |
| 581 | if (index.column() >= first| TRUE | evaluated 30 times by 5 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QItemModel
- tst_QStandardItemModel
- tst_QTableView
| | FALSE | evaluated 32 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QItemModel
- tst_QTableView
|
&& index.isValid()| TRUE | evaluated 30 times by 5 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QItemModel
- tst_QStandardItemModel
- tst_QTableView
| | FALSE | never evaluated |
&& index.parent() == parent| TRUE | evaluated 15 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QStandardItemModel
- tst_QTableView
| | FALSE | evaluated 15 times by 1 test |
) | 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 blockExecuted by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QItemModel
- tst_QStandardItemModel
- tst_QTableView
| 62 |
| 584 | }executed 336 times by 11 tests: end of blockExecuted 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 blockExecuted 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 | | - |
| 588 | void 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()| TRUE | evaluated 15 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QStandardItemModel
- tst_QTableView
| | FALSE | evaluated 13519 times by 33 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QAccessibility
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItem
- tst_QStandardItemModel
- ...
|
; ++it) { | 15-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()| TRUE | evaluated 15 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QStandardItemModel
- tst_QTableView
| | FALSE | never evaluated |
) { | 0-15 |
| 600 | persistent.insertMultiAtEnd(data->index, data); | - |
| 601 | }executed 15 times by 4 tests: end of blockExecuted 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 blockExecuted 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 | | - |
| 607 | void 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()| TRUE | evaluated 98 times by 10 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| | FALSE | evaluated 204 times by 16 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
; ++it) { | 98-204 |
| 616 | QPersistentModelIndexData *data = *it; | - |
| 617 | bool level_changed = false; | - |
| 618 | QModelIndex current = data->index; | - |
| 619 | while (current.isValid()| TRUE | evaluated 99 times by 10 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| | FALSE | evaluated 35 times by 1 test |
) { | 35-99 |
| 620 | QModelIndex current_parent = current.parent(); | - |
| 621 | if (current_parent == parent| TRUE | evaluated 63 times by 10 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| | FALSE | evaluated 36 times by 2 testsEvaluated by:- tst_QItemModel
- tst_QStandardItemModel
|
) { | 36-63 |
| 622 | if (!level_changed| TRUE | evaluated 62 times by 10 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| | FALSE | evaluated 1 time by 1 test |
&& current.column() > last| TRUE | evaluated 15 times by 6 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
| | FALSE | evaluated 47 times by 8 testsEvaluated 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| TRUE | evaluated 48 times by 8 testsEvaluated by:- tst_QAbstractItemModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| | FALSE | never evaluated |
&& current.column() >= first| TRUE | evaluated 26 times by 7 testsEvaluated by:- tst_QAbstractItemModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
| | FALSE | evaluated 22 times by 6 testsEvaluated 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 blockExecuted by:- tst_QItemModel
- tst_QStandardItemModel
| 36 |
| 631 | }executed 98 times by 10 tests: end of blockExecuted 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 blockExecuted 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 | | - |
| 638 | void 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()| TRUE | evaluated 15 times by 6 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
| | FALSE | evaluated 204 times by 16 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
; ++it) { | 15-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()| TRUE | evaluated 15 times by 6 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
| | FALSE | never evaluated |
) { | 0-15 |
| 650 | persistent.insertMultiAtEnd(data->index, data); | - |
| 651 | }executed 15 times by 6 tests: end of blockExecuted 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()| TRUE | evaluated 26 times by 7 testsEvaluated by:- tst_QAbstractItemModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
| | FALSE | evaluated 204 times by 16 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
; ++it) { | 26-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 blockExecuted 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 blockExecuted 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 |
| 664 | void QAbstractItemModel::resetInternalData() | - |
| 665 | { | - |
| 666 | | - |
| 667 | } | - |
| 668 | QAbstractItemModel::QAbstractItemModel(QObject *parent) | - |
| 669 | : QObject(*new QAbstractItemModelPrivate, parent) | - |
| 670 | { | - |
| 671 | }executed 1564 times by 48 tests: end of blockExecuted 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 | | - |
| 676 | QAbstractItemModel::QAbstractItemModel(QAbstractItemModelPrivate &dd, QObject *parent) | - |
| 677 | : QObject(dd, parent) | - |
| 678 | { | - |
| 679 | }executed 3812 times by 44 tests: end of blockExecuted 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 | | - |
| 684 | QAbstractItemModel::~QAbstractItemModel() | - |
| 685 | { | - |
| 686 | d_func()->invalidatePersistentIndexes(); | - |
| 687 | }executed 5209 times by 98 tests: end of blockExecuted 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 |
| 688 | bool QAbstractItemModel::hasIndex(int row, int column, const QModelIndex &parent) const | - |
| 689 | { | - |
| 690 | if (row < 0| TRUE | evaluated 578 times by 9 testsEvaluated by:- tst_ModelTest
- tst_QAccessibility
- tst_QComboBox
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableWidget
| | FALSE | evaluated 226490 times by 32 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- ...
|
|| column < 0| TRUE | evaluated 1338 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAccessibility
- tst_QItemModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 225152 times by 32 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- ...
|
) | 578-226490 |
| 691 | returnexecuted 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 | returnexecuted 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)| TRUE | evaluated 222485 times by 32 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- ...
| | FALSE | evaluated 2667 times by 17 testsEvaluated 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)| TRUE | evaluated 219242 times by 32 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QIdentityProxyModel
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- ...
| | FALSE | evaluated 3243 times by 8 testsEvaluated 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 | } | - |
| 694 | bool QAbstractItemModel::hasChildren(const QModelIndex &parent) const | - |
| 695 | { | - |
| 696 | returnexecuted 2127 times by 5 tests: return (rowCount(parent) > 0) && (columnCount(parent) > 0);Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
- tst_QTreeView
(| TRUE | evaluated 1523 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
- tst_QTreeView
| | FALSE | evaluated 604 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
- tst_QTreeView
|
rowCount(parent) > 0)| TRUE | evaluated 1523 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
- tst_QTreeView
| | FALSE | evaluated 604 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
- tst_QTreeView
|
&& (| TRUE | evaluated 1522 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
- tst_QTreeView
| | FALSE | evaluated 1 time by 1 test |
columnCount(parent) > 0)| TRUE | evaluated 1522 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
- tst_QTreeView
| | FALSE | evaluated 1 time by 1 test |
;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 | } | - |
| 698 | QModelIndex QAbstractItemModel::sibling(int row, int column, const QModelIndex &idx) const | - |
| 699 | { | - |
| 700 | returnexecuted 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()| TRUE | evaluated 19209 times by 17 testsEvaluated 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
| | FALSE | evaluated 14091 times by 9 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QColumnView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
|
&& column == idx.column()| TRUE | evaluated 134 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QItemModel
- tst_QTableView
| | FALSE | evaluated 19075 times by 17 testsEvaluated 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 | } | - |
| 702 | QMap<int, QVariant> QAbstractItemModel::itemData(const QModelIndex &index) const | - |
| 703 | { | - |
| 704 | QMap<int, QVariant> roles; | - |
| 705 | for (int i = 0; i < Qt::UserRole| TRUE | evaluated 116480 times by 6 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 455 times by 6 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
|
; ++i) { | 455-116480 |
| 706 | QVariant variantData = data(index, i); | - |
| 707 | if (variantData.isValid()| TRUE | evaluated 101145 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 15335 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractProxyModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
|
) | 15335-101145 |
| 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 blockExecuted by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| 116480 |
| 710 | returnexecuted 455 times by 6 tests: return roles;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
roles;executed 455 times by 6 tests: return roles;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| 455 |
| 711 | } | - |
| 712 | bool QAbstractItemModel::setData(const QModelIndex &index, const QVariant &value, int role) | - |
| 713 | { | - |
| 714 | (void)index;; | - |
| 715 | (void)value;; | - |
| 716 | (void)role;; | - |
| 717 | returnexecuted 25 times by 3 tests: return false;Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QSortFilterProxyModel
false;executed 25 times by 3 tests: return false;Executed by:- tst_ModelTest
- tst_QItemModel
- tst_QSortFilterProxyModel
| 25 |
| 718 | } | - |
| 719 | bool 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()| TRUE | evaluated 11776 times by 1 test | | FALSE | evaluated 59 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QItemModel
|
; ++it) | 59-11776 |
| 723 | b = b| TRUE | evaluated 11776 times by 1 test | | FALSE | never evaluated |
&& setData(index, it.value(), it.key())| TRUE | evaluated 11776 times by 1 test | | FALSE | never evaluated |
;executed 11776 times by 1 test: b = b && setData(index, it.value(), it.key()); | 0-11776 |
| 724 | returnexecuted 59 times by 2 tests: return b;Executed by:- tst_QAbstractItemModel
- tst_QItemModel
b;executed 59 times by 2 tests: return b;Executed by:- tst_QAbstractItemModel
- tst_QItemModel
| 59 |
| 725 | } | - |
| 726 | QStringList QAbstractItemModel::mimeTypes() const | - |
| 727 | { | - |
| 728 | QStringList types; | - |
| 729 | types << QLatin1String("application/x-qabstractitemmodeldatalist"); | - |
| 730 | returnexecuted 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 | } | - |
| 732 | QMimeData *QAbstractItemModel::mimeData(const QModelIndexList &indexes) const | - |
| 733 | { | - |
| 734 | if (indexes.count() <= 0| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_QListWidget
- tst_QTableWidget
| | FALSE | evaluated 28 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
|
) | 8-28 |
| 735 | returnexecuted 8 times by 2 tests: return 0;Executed by:- tst_QListWidget
- tst_QTableWidget
0;executed 8 times by 2 tests: return 0;Executed by:- tst_QListWidget
- tst_QTableWidget
| 8 |
| 736 | QStringList types = mimeTypes(); | - |
| 737 | if (types.isEmpty()| TRUE | never evaluated | | FALSE | evaluated 28 times by 4 testsEvaluated 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 | returnexecuted 28 times by 4 tests: return data;Executed by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
data;executed 28 times by 4 tests: return data;Executed by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
| 28 |
| 746 | } | - |
| 747 | bool 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())| TRUE | never evaluated | | FALSE | never 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()| TRUE | never evaluated | | FALSE | never evaluated |
; ++i) { | 0 |
| 760 | if (data->hasFormat(modelTypes.at(i))| TRUE | never evaluated | | FALSE | never 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 | } | - |
| 765 | bool QAbstractItemModel::dropMimeData(const QMimeData *data, Qt::DropAction action, | - |
| 766 | int row, int column, const QModelIndex &parent) | - |
| 767 | { | - |
| 768 | | - |
| 769 | if (!data| TRUE | never evaluated | | FALSE | evaluated 12 times by 1 test |
|| !(action == Qt::CopyAction| TRUE | evaluated 12 times by 1 test | | FALSE | never evaluated |
|| action == Qt::MoveAction| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0-12 |
| 770 | return never executed: return false; false;never executed: return false; | 0 |
| 771 | | - |
| 772 | QStringList types = mimeTypes(); | - |
| 773 | if (types.isEmpty()| TRUE | never evaluated | | FALSE | evaluated 12 times by 1 test |
) | 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)| TRUE | never evaluated | | FALSE | evaluated 12 times by 1 test |
) | 0-12 |
| 777 | return never executed: return false; false;never executed: return false; | 0 |
| 778 | if (row > rowCount(parent)| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 8 times by 1 test |
) | 4-8 |
| 779 | row = rowCount(parent);executed 4 times by 1 test: row = rowCount(parent); | 4 |
| 780 | if (row == -1| TRUE | never evaluated | | FALSE | evaluated 12 times by 1 test |
) | 0-12 |
| 781 | row = rowCount(parent); never executed: row = rowCount(parent); | 0 |
| 782 | if (column == -1| TRUE | never evaluated | | FALSE | evaluated 12 times by 1 test |
) | 0-12 |
| 783 | column = 0; never executed: column = 0; | 0 |
| 784 | | - |
| 785 | QByteArray encoded = data->data(format); | - |
| 786 | QDataStream stream(&encoded, QIODevice::ReadOnly); | - |
| 787 | returnexecuted 12 times by 1 test: return decodeData(row, column, parent, stream); decodeData(row, column, parent, stream);executed 12 times by 1 test: return decodeData(row, column, parent, stream); | 12 |
| 788 | } | - |
| 789 | Qt::DropActions QAbstractItemModel::supportedDropActions() const | - |
| 790 | { | - |
| 791 | returnexecuted 91 times by 4 tests: return Qt::CopyAction;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QItemModel
- tst_QSortFilterProxyModel
Qt::CopyAction;executed 91 times by 4 tests: return Qt::CopyAction;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| 91 |
| 792 | } | - |
| 793 | Qt::DropActions QAbstractItemModel::supportedDragActions() const | - |
| 794 | { | - |
| 795 | const QAbstractItemModelPrivate * const d = d_func(); | - |
| 796 | if (d->supportedDragActions != -1| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
) | 0-1 |
| 797 | return never executed: return d->supportedDragActions; d->supportedDragActions;never executed: return d->supportedDragActions; | 0 |
| 798 | returnexecuted 1 time by 1 test: return supportedDropActions(); supportedDropActions();executed 1 time by 1 test: return supportedDropActions(); | 1 |
| 799 | } | - |
| 800 | | - |
| 801 | | - |
| 802 | | - |
| 803 | | - |
| 804 | void QAbstractItemModel::doSetSupportedDragActions(Qt::DropActions actions) | - |
| 805 | { | - |
| 806 | QAbstractItemModelPrivate * const d = d_func(); | - |
| 807 | d->supportedDragActions = actions; | - |
| 808 | } never executed: end of block | 0 |
| 809 | bool QAbstractItemModel::insertRows(int, int, const QModelIndex &) | - |
| 810 | { | - |
| 811 | return never executed: return false; false;never executed: return false; | 0 |
| 812 | } | - |
| 813 | bool QAbstractItemModel::insertColumns(int, int, const QModelIndex &) | - |
| 814 | { | - |
| 815 | returnexecuted 76 times by 1 test: return false; false;executed 76 times by 1 test: return false; | 76 |
| 816 | } | - |
| 817 | bool QAbstractItemModel::removeRows(int, int, const QModelIndex &) | - |
| 818 | { | - |
| 819 | return never executed: return false; false;never executed: return false; | 0 |
| 820 | } | - |
| 821 | bool QAbstractItemModel::removeColumns(int, int, const QModelIndex &) | - |
| 822 | { | - |
| 823 | returnexecuted 132 times by 1 test: return false; false;executed 132 times by 1 test: return false; | 132 |
| 824 | } | - |
| 825 | bool QAbstractItemModel::moveRows(const QModelIndex &, int , int , const QModelIndex &, int) | - |
| 826 | { | - |
| 827 | return never executed: return false; false;never executed: return false; | 0 |
| 828 | } | - |
| 829 | bool QAbstractItemModel::moveColumns(const QModelIndex &, int , int , const QModelIndex &, int) | - |
| 830 | { | - |
| 831 | return never executed: return false; false;never executed: return false; | 0 |
| 832 | } | - |
| 833 | void QAbstractItemModel::fetchMore(const QModelIndex &) | - |
| 834 | { | - |
| 835 | | - |
| 836 | } | - |
| 837 | bool QAbstractItemModel::canFetchMore(const QModelIndex &) const | - |
| 838 | { | - |
| 839 | returnexecuted 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 | } | - |
| 841 | Qt::ItemFlags QAbstractItemModel::flags(const QModelIndex &index) const | - |
| 842 | { | - |
| 843 | const QAbstractItemModelPrivate * const d = d_func(); | - |
| 844 | if (!d->indexValid(index)| TRUE | evaluated 38 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractProxyModel
- tst_QFileDialog2
- tst_QItemModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 45466 times by 26 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QDirModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QIdentityProxyModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QTableView
- tst_QTreeView
- ...
|
) | 38-45466 |
| 845 | returnexecuted 38 times by 5 tests: return 0;Executed by:- tst_ModelTest
- tst_QAbstractProxyModel
- tst_QFileDialog2
- tst_QItemModel
- tst_QSortFilterProxyModel
0;executed 38 times by 5 tests: return 0;Executed by:- tst_ModelTest
- tst_QAbstractProxyModel
- tst_QFileDialog2
- tst_QItemModel
- tst_QSortFilterProxyModel
| 38 |
| 846 | | - |
| 847 | returnexecuted 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 | | - |
| 855 | void QAbstractItemModel::sort(int column, Qt::SortOrder order) | - |
| 856 | { | - |
| 857 | (void)column;; | - |
| 858 | (void)order;; | - |
| 859 | | - |
| 860 | }executed 484 times by 9 tests: end of blockExecuted by:- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QTableView
- tst_QTreeView
- tst_languageChange
| 484 |
| 861 | QModelIndex QAbstractItemModel::buddy(const QModelIndex &index) const | - |
| 862 | { | - |
| 863 | returnexecuted 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 | } | - |
| 865 | QModelIndexList 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| TRUE | evaluated 277 times by 9 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QPrinter
- tst_languageChange
| | FALSE | evaluated 359 times by 15 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
? Qt::CaseSensitive : Qt::CaseInsensitive; | 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| TRUE | evaluated 579 times by 13 testsEvaluated 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
| | FALSE | evaluated 886 times by 13 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_languageChange
|
&& i < 2| TRUE | evaluated 386 times by 13 testsEvaluated 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
| | FALSE | evaluated 193 times by 13 testsEvaluated 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| TRUE | evaluated 886 times by 13 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 193 times by 13 testsEvaluated 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| TRUE | evaluated 443 times by 13 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 443 times by 13 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
- tst_languageChange
|
); ++i) { | 193-886 |
| 882 | for (int r = from; (| TRUE | evaluated 3155 times by 20 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 718 times by 18 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
r < to)| TRUE | evaluated 3155 times by 20 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 718 times by 18 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
&& (allHits| TRUE | evaluated 138 times by 5 testsEvaluated by:- tst_QAbstractItemModel
- tst_QCompleter
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTreeWidget
| | FALSE | evaluated 3017 times by 19 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
|| result.count() < hits| TRUE | evaluated 2906 times by 19 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemModel
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 111 times by 10 testsEvaluated by:- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QInputDialog
- tst_QListView
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QTableWidget
- tst_QTreeView
|
); ++r) { | 111-3155 |
| 883 | QModelIndex idx = index(r, start.column(), p); | - |
| 884 | if (!idx.isValid()| TRUE | evaluated 2119 times by 12 testsEvaluated 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
| | FALSE | evaluated 925 times by 16 testsEvaluated 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| TRUE | evaluated 204 times by 10 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
| | FALSE | evaluated 721 times by 10 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
|
) { | 204-721 |
| 889 | if (value == v| TRUE | evaluated 46 times by 10 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
| | FALSE | evaluated 158 times by 10 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QFileDialog2
- tst_QFiledialog
- tst_QInputDialog
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTreeWidget
|
) | 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 blockExecuted 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()| TRUE | evaluated 261 times by 10 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| | FALSE | evaluated 460 times by 8 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
|
) | 261-460 |
| 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 | caseexecuted 8 times by 1 test: case Qt::MatchRegExp: Qt::MatchRegExp:executed 8 times by 1 test: case Qt::MatchRegExp: | 8 |
| 897 | if (QRegExp(text, cs).exactMatch(t)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) | 2-6 |
| 898 | result.append(idx);executed 2 times by 1 test: result.append(idx); | 2 |
| 899 | break;executed 8 times by 1 test: break; | 8 |
| 900 | caseexecuted 4 times by 1 test: case Qt::MatchWildcard: Qt::MatchWildcard:executed 4 times by 1 test: case Qt::MatchWildcard: | 4 |
| 901 | if (QRegExp(text, cs, QRegExp::Wildcard).exactMatch(t)| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 1 time by 1 test |
) | 1-3 |
| 902 | result.append(idx);executed 3 times by 1 test: result.append(idx); | 3 |
| 903 | break;executed 4 times by 1 test: break; | 4 |
| 904 | caseexecuted 341 times by 9 tests: case Qt::MatchStartsWith:Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
Qt::MatchStartsWith:executed 341 times by 9 tests: case Qt::MatchStartsWith:Executed by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| 341 |
| 905 | if (t.startsWith(text, cs)| TRUE | evaluated 47 times by 7 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QListView
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeView
| | FALSE | evaluated 294 times by 8 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QComboBox
- tst_QCompleter
- tst_QListView
- tst_QListWidget
- tst_QTableView
- tst_QTreeView
|
) | 47-294 |
| 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 | caseexecuted 4 times by 1 test: case Qt::MatchEndsWith: Qt::MatchEndsWith:executed 4 times by 1 test: case Qt::MatchEndsWith: | 4 |
| 909 | if (t.endsWith(text, cs)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 2 |
| 910 | result.append(idx);executed 2 times by 1 test: result.append(idx); | 2 |
| 911 | break;executed 4 times by 1 test: break; | 4 |
| 912 | caseexecuted 360 times by 4 tests: case Qt::MatchFixedString:Executed by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
Qt::MatchFixedString:executed 360 times by 4 tests: case Qt::MatchFixedString:Executed by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
| 360 |
| 913 | if (t.compare(text, cs) == 0| TRUE | evaluated 66 times by 3 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
| | FALSE | evaluated 294 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QComboBox
- tst_QCompleter
- tst_QFileDialog2
|
) | 66-294 |
| 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 | caseexecuted 4 times by 1 test: case Qt::MatchContains: Qt::MatchContains:executed 4 times by 1 test: case Qt::MatchContains: | 4 |
| 917 | default never executed: default: :never executed: default: | 0 |
| 918 | if (t.contains(text, cs)| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 1 time by 1 test |
) | 1-3 |
| 919 | result.append(idx);executed 3 times by 1 test: result.append(idx); | 3 |
| 920 | }executed 4 times by 1 test: end of block | 4 |
| 921 | } | - |
| 922 | if (recurse| TRUE | evaluated 40 times by 2 testsEvaluated by:- tst_QStandardItemModel
- tst_QTreeWidget
| | FALSE | evaluated 885 times by 15 testsEvaluated 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)| TRUE | evaluated 13 times by 2 testsEvaluated by:- tst_QStandardItemModel
- tst_QTreeWidget
| | FALSE | evaluated 27 times by 2 testsEvaluated by:- tst_QStandardItemModel
- tst_QTreeWidget
|
) { | 13-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 blockExecuted by:- tst_QStandardItemModel
- tst_QTreeWidget
| 13 |
| 927 | }executed 925 times by 16 tests: end of blockExecuted 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 blockExecuted 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 | returnexecuted 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 | | - |
| 941 | QSize QAbstractItemModel::span(const QModelIndex &) const | - |
| 942 | { | - |
| 943 | returnexecuted 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 | } | - |
| 945 | void 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 blockExecuted by:- tst_QAbstractItemModel
- tst_QAbstractProxyModel
| 2 |
| 950 | QHash<int,QByteArray> QAbstractItemModel::roleNames() const | - |
| 951 | { | - |
| 952 | const QAbstractItemModelPrivate * const d = d_func(); | - |
| 953 | returnexecuted 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 | } | - |
| 955 | bool QAbstractItemModel::submit() | - |
| 956 | { | - |
| 957 | returnexecuted 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 | } | - |
| 959 | void QAbstractItemModel::revert() | - |
| 960 | { | - |
| 961 | | - |
| 962 | } | - |
| 963 | QVariant QAbstractItemModel::headerData(int section, Qt::Orientation orientation, int role) const | - |
| 964 | { | - |
| 965 | (void)orientation;; | - |
| 966 | if (role == Qt::DisplayRole| TRUE | evaluated 21648 times by 14 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QComboBox
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
| | FALSE | evaluated 75678 times by 18 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractProxyModel
- tst_QComboBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemView
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlTableModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTreeView
- tst_languageChange
|
) | 21648-75678 |
| 967 | returnexecuted 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 | returnexecuted 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 | } | - |
| 970 | bool 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 | returnexecuted 84 times by 4 tests: return false;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QItemModel
- tst_QSortFilterProxyModel
false;executed 84 times by 4 tests: return false;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| 84 |
| 978 | } | - |
| 979 | void QAbstractItemModel::encodeData(const QModelIndexList &indexes, QDataStream &stream) const | - |
| 980 | { | - |
| 981 | QModelIndexList::ConstIterator it = indexes.begin(); | - |
| 982 | for (; it != indexes.end()| TRUE | evaluated 77 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
| | FALSE | evaluated 28 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
|
; ++it) | 28-77 |
| 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 blockExecuted by:- tst_QAbstractItemModel
- tst_QListWidget
- tst_QStandardItemModel
- tst_QTableWidget
| 28 |
| 985 | | - |
| 986 | | - |
| 987 | | - |
| 988 | | - |
| 989 | bool 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()| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 12 times by 1 test |
) { | 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 | 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()| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 12 times by 1 test |
; ++i) | 12-46 |
| 1020 | rowsToInsert[rows.at(i)] = 1;executed 46 times by 1 test: rowsToInsert[rows.at(i)] = 1; | 46 |
| 1021 | for (int i = 0; i < rowsToInsert.count()| TRUE | evaluated 24 times by 1 test | | FALSE | evaluated 12 times by 1 test |
; ++i) { | 12-24 |
| 1022 | if (rowsToInsert[i] == 1| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 2 times by 1 test |
){ | 2-22 |
| 1023 | rowsToInsert[i] = dragRowCount; | - |
| 1024 | ++dragRowCount; | - |
| 1025 | }executed 22 times by 1 test: end of block | 22 |
| 1026 | }executed 24 times by 1 test: end of block | 24 |
| 1027 | for (int i = 0; i < rows.count()| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 12 times by 1 test |
; ++i) | 12-46 |
| 1028 | rows[i] = top + rowsToInsert[rows[i]];executed 46 times by 1 test: rows[i] = top + rowsToInsert[rows[i]]; | 46 |
| 1029 | | - |
| 1030 | QBitArray isWrittenTo(dragRowCount * dragColumnCount); | - |
| 1031 | | - |
| 1032 | | - |
| 1033 | int colCount = columnCount(parent); | - |
| 1034 | if (colCount == 0| TRUE | never evaluated | | FALSE | evaluated 12 times by 1 test |
) { | 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()| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 12 times by 1 test |
; ++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| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 37 times by 1 test |
|| isWrittenTo.testBit(flat)| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 34 times by 1 test |
) { | 3-37 |
| 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 | 12 |
| 1059 | if (!isWrittenTo.testBit(flat)| TRUE | evaluated 46 times by 1 test | | FALSE | never evaluated |
) { | 0-46 |
| 1060 | newIndexes[j] = index(destinationRow, destinationColumn, parent); | - |
| 1061 | isWrittenTo.setBit(flat); | - |
| 1062 | }executed 46 times by 1 test: end of block | 46 |
| 1063 | }executed 46 times by 1 test: end of block | 46 |
| 1064 | | - |
| 1065 | for(int k = 0; k < newIndexes.size()| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 12 times by 1 test |
; k++) { | 12-46 |
| 1066 | if (newIndexes.at(k).isValid()| TRUE | evaluated 46 times by 1 test | | FALSE | never evaluated |
) | 0-46 |
| 1067 | setItemData(newIndexes.at(k), data.at(k));executed 46 times by 1 test: setItemData(newIndexes.at(k), data.at(k)); | 46 |
| 1068 | }executed 46 times by 1 test: end of block | 46 |
| 1069 | | - |
| 1070 | returnexecuted 12 times by 1 test: return true; true;executed 12 times by 1 test: return true; | 12 |
| 1071 | } | - |
| 1072 | void 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 blockExecuted 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 |
| 1081 | void 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 blockExecuted 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 |
| 1088 | void 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 blockExecuted 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 |
| 1097 | void 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 blockExecuted 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 |
| 1104 | bool QAbstractItemModelPrivate::allowMove(const QModelIndex &srcParent, int start, int end, const QModelIndex &destinationParent, int destinationStart, Qt::Orientation orientation) | - |
| 1105 | { | - |
| 1106 | | - |
| 1107 | if (destinationParent == srcParent| TRUE | evaluated 53 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
| | FALSE | evaluated 106 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
|
) | 53-106 |
| 1108 | returnexecuted 53 times by 2 tests: return !(destinationStart >= start && destinationStart <= end + 1);Executed by:- tst_QAbstractItemModel
- tst_QListWidget
!(destinationStart >= start| TRUE | evaluated 39 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
| | FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
|
&& destinationStart <= end + 1| TRUE | evaluated 27 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
| | FALSE | evaluated 12 times by 2 testsEvaluated 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 = (| TRUE | evaluated 106 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| | FALSE | never evaluated |
Qt::Vertical == orientation)| TRUE | evaluated 106 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| | FALSE | never evaluated |
? destinationAncestor.row() : destinationAncestor.column(); | 0-106 |
| 1112 | for(;;) { | - |
| 1113 | if (destinationAncestor == srcParent| TRUE | evaluated 75 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | evaluated 270 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
|
) { | 75-270 |
| 1114 | if (pos >= start| TRUE | evaluated 67 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | evaluated 8 times by 1 test |
&& pos <= end| TRUE | evaluated 60 times by 1 test | | FALSE | evaluated 7 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
|
) | 7-67 |
| 1115 | returnexecuted 60 times by 1 test: return false; false;executed 60 times by 1 test: return false; | 60 |
| 1116 | break;executed 15 times by 2 tests: break;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
| 15 |
| 1117 | } | - |
| 1118 | | - |
| 1119 | if (!destinationAncestor.isValid()| TRUE | evaluated 31 times by 3 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 239 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
) | 31-239 |
| 1120 | break;executed 31 times by 3 tests: break;Executed by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| 31 |
| 1121 | | - |
| 1122 | pos = (| TRUE | evaluated 239 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| | FALSE | never evaluated |
Qt::Vertical == orientation)| TRUE | evaluated 239 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| | FALSE | never evaluated |
? destinationAncestor.row() : destinationAncestor.column(); | 0-239 |
| 1123 | destinationAncestor = destinationAncestor.parent(); | - |
| 1124 | }executed 239 times by 3 tests: end of blockExecuted by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| 239 |
| 1125 | | - |
| 1126 | returnexecuted 46 times by 4 tests: return true;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
true;executed 46 times by 4 tests: return true;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| 46 |
| 1127 | } | - |
| 1128 | bool 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)| TRUE | evaluated 87 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QListWidget
| | FALSE | evaluated 70 times by 5 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
|
) { | 70-87 |
| 1136 | returnexecuted 87 times by 2 tests: return false;Executed by:- tst_QAbstractItemModel
- tst_QListWidget
false;executed 87 times by 2 tests: return false;Executed by:- tst_QAbstractItemModel
- tst_QListWidget
| 87 |
| 1137 | } | - |
| 1138 | | - |
| 1139 | QAbstractItemModelPrivate::Change sourceChange(sourceParent, sourceFirst, sourceLast); | - |
| 1140 | sourceChange.needsAdjust = sourceParent.isValid()| TRUE | evaluated 39 times by 3 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 31 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QListWidget
|
&& sourceParent.row() >= destinationChild| TRUE | evaluated 25 times by 3 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 14 times by 1 test |
&& sourceParent.parent() == destinationParent| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
| | FALSE | evaluated 15 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
; | 10-39 |
| 1141 | d->changes.push(sourceChange); | - |
| 1142 | int destinationLast = destinationChild + (sourceLast - sourceFirst); | - |
| 1143 | QAbstractItemModelPrivate::Change destinationChange(destinationParent, destinationChild, destinationLast); | - |
| 1144 | destinationChange.needsAdjust = destinationParent.isValid()| TRUE | evaluated 37 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 33 times by 3 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
|
&& destinationParent.row() >= sourceLast| TRUE | evaluated 16 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 21 times by 1 test |
&& destinationParent.parent() == sourceParent| TRUE | evaluated 7 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | evaluated 9 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QSortFilterProxyModel
|
; | 7-37 |
| 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 | returnexecuted 70 times by 5 tests: return true;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
true;executed 70 times by 5 tests: return true;Executed by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
| 70 |
| 1150 | } | - |
| 1151 | void 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| TRUE | evaluated 7 times by 2 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
| | FALSE | evaluated 63 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
|
) | 7-63 |
| 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| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QIdentityProxyModel
| | FALSE | evaluated 60 times by 4 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QListWidget
- tst_QSortFilterProxyModel
|
) | 10-60 |
| 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 blockExecuted by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QIdentityProxyModel
- tst_QListWidget
- tst_QSortFilterProxyModel
| 70 |
| 1172 | void 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 blockExecuted 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 |
| 1181 | void 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 blockExecuted 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 |
| 1188 | void 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 blockExecuted 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 |
| 1197 | void 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 blockExecuted 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 |
| 1204 | bool 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)| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) { | 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()| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
&& sourceParent.row() >= destinationChild| TRUE | never evaluated | | FALSE | never evaluated |
&& sourceParent.parent() == destinationParent| TRUE | never evaluated | | FALSE | never 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()| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
&& destinationParent.row() >= sourceLast| TRUE | never evaluated | | FALSE | never evaluated |
&& destinationParent.parent() == sourceParent| TRUE | never evaluated | | FALSE | never 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 | returnexecuted 2 times by 1 test: return true; true;executed 2 times by 1 test: return true; | 2 |
| 1227 | } | - |
| 1228 | void 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| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 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| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 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 | 2 |
| 1249 | void QAbstractItemModel::beginResetModel() | - |
| 1250 | { | - |
| 1251 | modelAboutToBeReset(QPrivateSignal()); | - |
| 1252 | }executed 8962 times by 41 tests: end of blockExecuted 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 |
| 1253 | void 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 blockExecuted 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 |
| 1260 | void QAbstractItemModel::changePersistentIndex(const QModelIndex &from, const QModelIndex &to) | - |
| 1261 | { | - |
| 1262 | QAbstractItemModelPrivate * const d = d_func(); | - |
| 1263 | if (d->persistent.indexes.isEmpty()| TRUE | never evaluated | | FALSE | evaluated 12 times by 1 test |
) | 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()| TRUE | evaluated 12 times by 1 test | | FALSE | never evaluated |
) { | 0-12 |
| 1268 | QPersistentModelIndexData *data = *it; | - |
| 1269 | d->persistent.indexes.erase(it); | - |
| 1270 | data->index = to; | - |
| 1271 | if (to.isValid()| TRUE | evaluated 12 times by 1 test | | FALSE | never evaluated |
) | 0-12 |
| 1272 | d->persistent.insertMultiAtEnd(to, data);executed 12 times by 1 test: d->persistent.insertMultiAtEnd(to, data); | 12 |
| 1273 | else | - |
| 1274 | data->model = 0; never executed: data->model = 0; | 0 |
| 1275 | } | - |
| 1276 | }executed 12 times by 1 test: end of block | 12 |
| 1277 | void QAbstractItemModel::changePersistentIndexList(const QModelIndexList &from, | - |
| 1278 | const QModelIndexList &to) | - |
| 1279 | { | - |
| 1280 | QAbstractItemModelPrivate * const d = d_func(); | - |
| 1281 | if (d->persistent.indexes.isEmpty()| TRUE | evaluated 4691 times by 24 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListWidget
- tst_QPrinter
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QStandardItem
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_QTreeWidgetItemIterator
- tst_languageChange
| | FALSE | evaluated 734 times by 18 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItem
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
) | 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()| TRUE | evaluated 1639 times by 17 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 734 times by 18 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItem
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
; ++i) { | 734-1639 |
| 1286 | if (from.at(i) == to.at(i)| TRUE | evaluated 979 times by 16 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 660 times by 13 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
) | 660-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()| TRUE | evaluated 534 times by 13 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 126 times by 2 testsEvaluated by:- tst_QAbstractItemModel
- tst_QTableWidget
|
) { | 126-534 |
| 1290 | QPersistentModelIndexData *data = *it; | - |
| 1291 | d->persistent.indexes.erase(it); | - |
| 1292 | data->index = to.at(i); | - |
| 1293 | if (data->index.isValid()| TRUE | evaluated 534 times by 13 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | never evaluated |
) | 0-534 |
| 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 blockExecuted 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()| TRUE | evaluated 534 times by 13 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QHeaderView
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 734 times by 18 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItem
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
; ++it) { | 534-734 |
| 1302 | QPersistentModelIndexData *data = *it; | - |
| 1303 | d->persistent.insertMultiAtEnd(data->index, data); | - |
| 1304 | }executed 534 times by 13 tests: end of blockExecuted 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 blockExecuted 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 | | - |
| 1312 | QModelIndexList 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()| TRUE | evaluated 975 times by 11 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QListWidget
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
| | FALSE | evaluated 1011 times by 15 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QCompleter
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QItemModel
- tst_QListWidget
- tst_QPrinter
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
- tst_languageChange
|
; ++it) { | 975-1011 |
| 1319 | QPersistentModelIndexData *data = *it; | - |
| 1320 | result.append(data->index); | - |
| 1321 | }executed 975 times by 11 tests: end of blockExecuted 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 | returnexecuted 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 | } | - |
| 1324 | QAbstractTableModel::QAbstractTableModel(QObject *parent) | - |
| 1325 | : QAbstractItemModel(parent) | - |
| 1326 | { | - |
| 1327 | | - |
| 1328 | }executed 430 times by 14 tests: end of blockExecuted 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 | | - |
| 1336 | QAbstractTableModel::QAbstractTableModel(QAbstractItemModelPrivate &dd, QObject *parent) | - |
| 1337 | : QAbstractItemModel(dd, parent) | - |
| 1338 | { | - |
| 1339 | | - |
| 1340 | }executed 287 times by 4 tests: end of blockExecuted by:- tst_QItemModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
| 287 |
| 1341 | | - |
| 1342 | | - |
| 1343 | | - |
| 1344 | | - |
| 1345 | | - |
| 1346 | QAbstractTableModel::~QAbstractTableModel() | - |
| 1347 | { | - |
| 1348 | | - |
| 1349 | } | - |
| 1350 | QModelIndex QAbstractTableModel::index(int row, int column, const QModelIndex &parent) const | - |
| 1351 | { | - |
| 1352 | returnexecuted 61784 times by 16 tests: return hasIndex(row, column, parent) ? createIndex(row, column) : QModelIndex();Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSortFilterProxyModel
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
hasIndex(row, column, parent)| TRUE | evaluated 59500 times by 16 testsEvaluated 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
| | FALSE | evaluated 2284 times by 10 testsEvaluated 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 | } | - |
| 1354 | QModelIndex QAbstractTableModel::parent(const QModelIndex &) const | - |
| 1355 | { | - |
| 1356 | returnexecuted 41542 times by 13 tests: return QModelIndex();Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
QModelIndex();executed 41542 times by 13 tests: return QModelIndex();Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QHeaderView
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QStyleSheetStyle
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| 41542 |
| 1357 | } | - |
| 1358 | | - |
| 1359 | | - |
| 1360 | | - |
| 1361 | | - |
| 1362 | QModelIndex QAbstractTableModel::sibling(int row, int column, const QModelIndex &) const | - |
| 1363 | { | - |
| 1364 | returnexecuted 7902 times by 5 tests: return index(row, column);Executed by:- tst_QAccessibility
- tst_QItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
index(row, column);executed 7902 times by 5 tests: return index(row, column);Executed by:- tst_QAccessibility
- tst_QItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
| 7902 |
| 1365 | } | - |
| 1366 | | - |
| 1367 | bool QAbstractTableModel::hasChildren(const QModelIndex &parent) const | - |
| 1368 | { | - |
| 1369 | if (parent.model() == this| TRUE | evaluated 2459 times by 2 testsEvaluated by:- tst_QComboBox
- tst_QItemModel
| | FALSE | evaluated 254 times by 2 testsEvaluated by:- tst_QItemModel
- tst_QTreeView
|
|| !parent.isValid()| TRUE | evaluated 254 times by 2 testsEvaluated by:- tst_QItemModel
- tst_QTreeView
| | FALSE | never evaluated |
) | 0-2459 |
| 1370 | returnexecuted 2713 times by 3 tests: return rowCount(parent) > 0 && columnCount(parent) > 0;Executed by:- tst_QComboBox
- tst_QItemModel
- tst_QTreeView
rowCount(parent) > 0| TRUE | evaluated 234 times by 2 testsEvaluated by:- tst_QItemModel
- tst_QTreeView
| | FALSE | evaluated 2479 times by 2 testsEvaluated by:- tst_QComboBox
- tst_QItemModel
|
&& columnCount(parent) > 0| TRUE | evaluated 234 times by 2 testsEvaluated by:- tst_QItemModel
- tst_QTreeView
| | FALSE | never 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 | | - |
| 1377 | Qt::ItemFlags QAbstractTableModel::flags(const QModelIndex &index) const | - |
| 1378 | { | - |
| 1379 | Qt::ItemFlags f = QAbstractItemModel::flags(index); | - |
| 1380 | if (index.isValid()| TRUE | evaluated 10749 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemSelectionModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QTableView
- tst_QTreeView
| | FALSE | evaluated 2 times by 1 test |
) | 2-10749 |
| 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 | returnexecuted 10751 times by 9 tests: return f;Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QTableView
- tst_QTreeView
f;executed 10751 times by 9 tests: return f;Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDateTimeEdit
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QSqlRelationalTableModel
- tst_QSqlTableModel
- tst_QTableView
- tst_QTreeView
| 10751 |
| 1383 | } | - |
| 1384 | QAbstractListModel::QAbstractListModel(QObject *parent) | - |
| 1385 | : QAbstractItemModel(parent) | - |
| 1386 | { | - |
| 1387 | | - |
| 1388 | }executed 591 times by 23 tests: end of blockExecuted 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 | | - |
| 1396 | QAbstractListModel::QAbstractListModel(QAbstractItemModelPrivate &dd, QObject *parent) | - |
| 1397 | : QAbstractItemModel(dd, parent) | - |
| 1398 | { | - |
| 1399 | | - |
| 1400 | } never executed: end of block | 0 |
| 1401 | | - |
| 1402 | | - |
| 1403 | | - |
| 1404 | | - |
| 1405 | | - |
| 1406 | QAbstractListModel::~QAbstractListModel() | - |
| 1407 | { | - |
| 1408 | | - |
| 1409 | } | - |
| 1410 | QModelIndex QAbstractListModel::index(int row, int column, const QModelIndex &parent) const | - |
| 1411 | { | - |
| 1412 | returnexecuted 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)| TRUE | evaluated 99101 times by 20 testsEvaluated 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
| | FALSE | evaluated 646 times by 7 testsEvaluated 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 | | - |
| 1421 | QModelIndex QAbstractListModel::parent(const QModelIndex & ) const | - |
| 1422 | { | - |
| 1423 | returnexecuted 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 | | - |
| 1429 | QModelIndex QAbstractListModel::sibling(int row, int column, const QModelIndex &) const | - |
| 1430 | { | - |
| 1431 | returnexecuted 261 times by 5 tests: return index(row, column);Executed by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QItemModel
- tst_QListView
- tst_QListWidget
index(row, column);executed 261 times by 5 tests: return index(row, column);Executed by:- tst_QAbstractItemView
- tst_QComboBox
- tst_QItemModel
- tst_QListView
- tst_QListWidget
| 261 |
| 1432 | } | - |
| 1433 | | - |
| 1434 | | - |
| 1435 | | - |
| 1436 | | - |
| 1437 | Qt::ItemFlags QAbstractListModel::flags(const QModelIndex &index) const | - |
| 1438 | { | - |
| 1439 | Qt::ItemFlags f = QAbstractItemModel::flags(index); | - |
| 1440 | if (index.isValid()| TRUE | evaluated 12064 times by 14 testsEvaluated by:- tst_QAbstractItemView
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsProxyWidget
- tst_QIdentityProxyModel
- tst_QItemSelectionModel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QTreeView
| | FALSE | evaluated 18 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QItemModel
- tst_QSortFilterProxyModel
|
) | 18-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 | returnexecuted 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 | } | - |
| 1444 | int QAbstractListModel::columnCount(const QModelIndex &parent) const | - |
| 1445 | { | - |
| 1446 | returnexecuted 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()| TRUE | evaluated 7 times by 3 testsEvaluated by:- tst_ModelTest
- tst_QItemModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 134416 times by 22 testsEvaluated 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 | | - |
| 1449 | bool QAbstractListModel::hasChildren(const QModelIndex &parent) const | - |
| 1450 | { | - |
| 1451 | returnexecuted 1661 times by 7 tests: return parent.isValid() ? false : (rowCount() > 0);Executed by:- tst_ModelTest
- tst_QColumnView
- tst_QComboBox
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
- tst_QTreeView
parent.isValid()| TRUE | evaluated 1365 times by 6 testsEvaluated by:- tst_ModelTest
- tst_QColumnView
- tst_QComboBox
- tst_QIdentityProxyModel
- tst_QItemModel
- tst_QSortFilterProxyModel
| | FALSE | evaluated 296 times by 5 testsEvaluated 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 | } | - |
| 1453 | bool QAbstractTableModel::dropMimeData(const QMimeData *data, Qt::DropAction action, | - |
| 1454 | int row, int column, const QModelIndex &parent) | - |
| 1455 | { | - |
| 1456 | if (!data| TRUE | never evaluated | | FALSE | never evaluated |
|| !(action == Qt::CopyAction| TRUE | never evaluated | | FALSE | never evaluated |
|| action == Qt::MoveAction| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 1457 | return never executed: return false; false;never executed: return false; | 0 |
| 1458 | | - |
| 1459 | QStringList types = mimeTypes(); | - |
| 1460 | if (types.isEmpty()| TRUE | never evaluated | | FALSE | never 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)| TRUE | never evaluated | | FALSE | never 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()| TRUE | never evaluated | | FALSE | never evaluated |
&& row == -1| TRUE | never evaluated | | FALSE | never evaluated |
&& column == -1| TRUE | never evaluated | | FALSE | never 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()| TRUE | never evaluated | | FALSE | never 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()| TRUE | never evaluated | | FALSE | never 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)| TRUE | never evaluated | | FALSE | never 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 | | - |
| 1504 | bool QAbstractListModel::dropMimeData(const QMimeData *data, Qt::DropAction action, | - |
| 1505 | int row, int column, const QModelIndex &parent) | - |
| 1506 | { | - |
| 1507 | if (!data| TRUE | never evaluated | | FALSE | never evaluated |
|| !(action == Qt::CopyAction| TRUE | never evaluated | | FALSE | never evaluated |
|| action == Qt::MoveAction| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 1508 | return never executed: return false; false;never executed: return false; | 0 |
| 1509 | | - |
| 1510 | QStringList types = mimeTypes(); | - |
| 1511 | if (types.isEmpty()| TRUE | never evaluated | | FALSE | never 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)| TRUE | never evaluated | | FALSE | never 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()| TRUE | never evaluated | | FALSE | never evaluated |
&& row == -1| TRUE | never evaluated | | FALSE | never evaluated |
&& column == -1| TRUE | never evaluated | | FALSE | never 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()| TRUE | never evaluated | | FALSE | never 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()| TRUE | never evaluated | | FALSE | never evaluated |
; ++i) { | 0 |
| 1539 | int r = (rows.at(i) - top) + parent.row(); | - |
| 1540 | if (columns.at(i) == left| TRUE | never evaluated | | FALSE | never evaluated |
&& hasIndex(r, 0)| TRUE | never evaluated | | FALSE | never 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| TRUE | never evaluated | | FALSE | never 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 | } | - |
| 1553 | void 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()| TRUE | evaluated 8524 times by 14 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
| | FALSE | evaluated 519 times by 20 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QHeaderView
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListView
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableView
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
&& it.key() == key| TRUE | evaluated 29 times by 4 testsEvaluated by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QStandardItemModel
| | FALSE | evaluated 8495 times by 14 testsEvaluated by:- tst_ModelTest
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QItemModel
- tst_QItemSelectionModel
- tst_QListWidget
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QTableWidget
- tst_QTreeView
- tst_QTreeWidget
|
) { | 29-8524 |
| 1559 | qSwap(*newIt,*it); | - |
| 1560 | newIt = it; | - |
| 1561 | ++it; | - |
| 1562 | }executed 29 times by 4 tests: end of blockExecuted by:- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QItemSelectionModel
- tst_QStandardItemModel
| 29 |
| 1563 | }executed 9014 times by 21 tests: end of blockExecuted 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 | | - |
| | |