| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/itemmodels/qabstractproxymodel.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | - | |||||||||||||
| 4 | - | |||||||||||||
| 5 | - | |||||||||||||
| 6 | - | |||||||||||||
| 7 | void QAbstractProxyModelPrivate::_q_sourceModelDestroyed() | - | ||||||||||||
| 8 | { | - | ||||||||||||
| 9 | invalidatePersistentIndexes(); | - | ||||||||||||
| 10 | model = QAbstractItemModelPrivate::staticEmptyModel(); | - | ||||||||||||
| 11 | } executed 361 times by 22 tests: end of blockExecuted by:
| 361 | ||||||||||||
| 12 | - | |||||||||||||
| 13 | - | |||||||||||||
| 14 | - | |||||||||||||
| 15 | - | |||||||||||||
| 16 | - | |||||||||||||
| 17 | QAbstractProxyModel::QAbstractProxyModel(QObject *parent) | - | ||||||||||||
| 18 | :QAbstractItemModel(*new QAbstractProxyModelPrivate, parent) | - | ||||||||||||
| 19 | { | - | ||||||||||||
| 20 | setSourceModel(QAbstractItemModelPrivate::staticEmptyModel()); | - | ||||||||||||
| 21 | } executed 19 times by 2 tests: end of blockExecuted by:
| 19 | ||||||||||||
| 22 | - | |||||||||||||
| 23 | - | |||||||||||||
| 24 | - | |||||||||||||
| 25 | - | |||||||||||||
| 26 | - | |||||||||||||
| 27 | QAbstractProxyModel::QAbstractProxyModel(QAbstractProxyModelPrivate &dd, QObject *parent) | - | ||||||||||||
| 28 | : QAbstractItemModel(dd, parent) | - | ||||||||||||
| 29 | { | - | ||||||||||||
| 30 | setSourceModel(QAbstractItemModelPrivate::staticEmptyModel()); | - | ||||||||||||
| 31 | } executed 751 times by 27 tests: end of blockExecuted by:
| 751 | ||||||||||||
| 32 | - | |||||||||||||
| 33 | - | |||||||||||||
| 34 | - | |||||||||||||
| 35 | - | |||||||||||||
| 36 | QAbstractProxyModel::~QAbstractProxyModel() | - | ||||||||||||
| 37 | { | - | ||||||||||||
| 38 | - | |||||||||||||
| 39 | } | - | ||||||||||||
| 40 | void QAbstractProxyModel::setSourceModel(QAbstractItemModel *sourceModel) | - | ||||||||||||
| 41 | { | - | ||||||||||||
| 42 | QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 43 | if (sourceModel != d->model
| 1-2018 | ||||||||||||
| 44 | if (d->model
| 770-1248 | ||||||||||||
| 45 | disconnect(d->model, qFlagLocation("2""destroyed()" "\0" __FILE__ ":" "130"), this, qFlagLocation("1""_q_sourceModelDestroyed()" "\0" __FILE__ ":" "130")); executed 1248 times by 28 tests: disconnect(d->model, qFlagLocation("2""destroyed()" "\0" __FILE__ ":" "130"), this, qFlagLocation("1""_q_sourceModelDestroyed()" "\0" __FILE__ ":" "130"));Executed by:
| 1248 | ||||||||||||
| 46 | - | |||||||||||||
| 47 | if (sourceModel
| 367-1651 | ||||||||||||
| 48 | d->model = sourceModel; | - | ||||||||||||
| 49 | connect(d->model, qFlagLocation("2""destroyed()" "\0" __FILE__ ":" "134"), this, qFlagLocation("1""_q_sourceModelDestroyed()" "\0" __FILE__ ":" "134")); | - | ||||||||||||
| 50 | } executed 1651 times by 28 tests: else {end of blockExecuted by:
| 1651 | ||||||||||||
| 51 | d->model = QAbstractItemModelPrivate::staticEmptyModel(); | - | ||||||||||||
| 52 | } executed 367 times by 18 tests: end of blockExecuted by:
| 367 | ||||||||||||
| 53 | d->roleNames = d->model->roleNames(); | - | ||||||||||||
| 54 | sourceModelChanged(QPrivateSignal()); | - | ||||||||||||
| 55 | } executed 2018 times by 28 tests: end of blockExecuted by:
| 2018 | ||||||||||||
| 56 | } executed 2019 times by 28 tests: end of blockExecuted by:
| 2019 | ||||||||||||
| 57 | - | |||||||||||||
| 58 | - | |||||||||||||
| 59 | - | |||||||||||||
| 60 | - | |||||||||||||
| 61 | void QAbstractProxyModel::resetInternalData() | - | ||||||||||||
| 62 | { | - | ||||||||||||
| 63 | QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 64 | d->roleNames = d->model->roleNames(); | - | ||||||||||||
| 65 | } executed 6063 times by 27 tests: end of blockExecuted by:
| 6063 | ||||||||||||
| 66 | - | |||||||||||||
| 67 | - | |||||||||||||
| 68 | - | |||||||||||||
| 69 | - | |||||||||||||
| 70 | QAbstractItemModel *QAbstractProxyModel::sourceModel() const | - | ||||||||||||
| 71 | { | - | ||||||||||||
| 72 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 73 | if (d->model == QAbstractItemModelPrivate::staticEmptyModel()
| 1747-30757 | ||||||||||||
| 74 | return executed 1747 times by 19 tests: 0;return 0;Executed by:
executed 1747 times by 19 tests: return 0;Executed by:
| 1747 | ||||||||||||
| 75 | return executed 30757 times by 20 tests: d->model;return d->model;Executed by:
executed 30757 times by 20 tests: return d->model;Executed by:
| 30757 | ||||||||||||
| 76 | } | - | ||||||||||||
| 77 | - | |||||||||||||
| 78 | - | |||||||||||||
| 79 | - | |||||||||||||
| 80 | - | |||||||||||||
| 81 | bool QAbstractProxyModel::submit() | - | ||||||||||||
| 82 | { | - | ||||||||||||
| 83 | QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 84 | return executed 181 times by 6 tests: d->model->submit();return d->model->submit();Executed by:
executed 181 times by 6 tests: return d->model->submit();Executed by:
| 181 | ||||||||||||
| 85 | } | - | ||||||||||||
| 86 | - | |||||||||||||
| 87 | - | |||||||||||||
| 88 | - | |||||||||||||
| 89 | - | |||||||||||||
| 90 | void QAbstractProxyModel::revert() | - | ||||||||||||
| 91 | { | - | ||||||||||||
| 92 | QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 93 | d->model->revert(); | - | ||||||||||||
| 94 | } executed 5 times by 2 tests: end of blockExecuted by:
| 5 | ||||||||||||
| 95 | QItemSelection QAbstractProxyModel::mapSelectionToSource(const QItemSelection &proxySelection) const | - | ||||||||||||
| 96 | { | - | ||||||||||||
| 97 | QModelIndexList proxyIndexes = proxySelection.indexes(); | - | ||||||||||||
| 98 | QItemSelection sourceSelection; | - | ||||||||||||
| 99 | for (int i = 0; i < proxyIndexes.size()
| 0-3 | ||||||||||||
| 100 | const QModelIndex proxyIdx = mapToSource(proxyIndexes.at(i)); | - | ||||||||||||
| 101 | if (!proxyIdx.isValid()
| 0 | ||||||||||||
| 102 | continue; never executed: continue; | 0 | ||||||||||||
| 103 | sourceSelection << QItemSelectionRange(proxyIdx); | - | ||||||||||||
| 104 | } never executed: end of block | 0 | ||||||||||||
| 105 | return executed 3 times by 1 test: sourceSelection;return sourceSelection;Executed by:
executed 3 times by 1 test: return sourceSelection;Executed by:
| 3 | ||||||||||||
| 106 | } | - | ||||||||||||
| 107 | - | |||||||||||||
| 108 | - | |||||||||||||
| 109 | - | |||||||||||||
| 110 | - | |||||||||||||
| 111 | - | |||||||||||||
| 112 | - | |||||||||||||
| 113 | QItemSelection QAbstractProxyModel::mapSelectionFromSource(const QItemSelection &sourceSelection) const | - | ||||||||||||
| 114 | { | - | ||||||||||||
| 115 | QModelIndexList sourceIndexes = sourceSelection.indexes(); | - | ||||||||||||
| 116 | QItemSelection proxySelection; | - | ||||||||||||
| 117 | for (int i = 0; i < sourceIndexes.size()
| 3-4 | ||||||||||||
| 118 | const QModelIndex srcIdx = mapFromSource(sourceIndexes.at(i)); | - | ||||||||||||
| 119 | if (!srcIdx.isValid()
| 1-2 | ||||||||||||
| 120 | continue; executed 2 times by 1 test: continue;Executed by:
| 2 | ||||||||||||
| 121 | proxySelection << QItemSelectionRange(srcIdx); | - | ||||||||||||
| 122 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||
| 123 | return executed 4 times by 2 tests: proxySelection;return proxySelection;Executed by:
executed 4 times by 2 tests: return proxySelection;Executed by:
| 4 | ||||||||||||
| 124 | } | - | ||||||||||||
| 125 | - | |||||||||||||
| 126 | - | |||||||||||||
| 127 | - | |||||||||||||
| 128 | - | |||||||||||||
| 129 | QVariant QAbstractProxyModel::data(const QModelIndex &proxyIndex, int role) const | - | ||||||||||||
| 130 | { | - | ||||||||||||
| 131 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 132 | return executed 619 times by 2 tests: d->model->data(mapToSource(proxyIndex), role);return d->model->data(mapToSource(proxyIndex), role);Executed by:
executed 619 times by 2 tests: return d->model->data(mapToSource(proxyIndex), role);Executed by:
| 619 | ||||||||||||
| 133 | } | - | ||||||||||||
| 134 | - | |||||||||||||
| 135 | - | |||||||||||||
| 136 | - | |||||||||||||
| 137 | - | |||||||||||||
| 138 | QVariant QAbstractProxyModel::headerData(int section, Qt::Orientation orientation, int role) const | - | ||||||||||||
| 139 | { | - | ||||||||||||
| 140 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 141 | int sourceSection; | - | ||||||||||||
| 142 | if (orientation == Qt::Horizontal
| 487-1764 | ||||||||||||
| 143 | const QModelIndex proxyIndex = index(0, section); | - | ||||||||||||
| 144 | sourceSection = mapToSource(proxyIndex).column(); | - | ||||||||||||
| 145 | } executed 487 times by 8 tests: else {end of blockExecuted by:
| 487 | ||||||||||||
| 146 | const QModelIndex proxyIndex = index(section, 0); | - | ||||||||||||
| 147 | sourceSection = mapToSource(proxyIndex).row(); | - | ||||||||||||
| 148 | } executed 1764 times by 5 tests: end of blockExecuted by:
| 1764 | ||||||||||||
| 149 | return executed 2251 times by 9 tests: d->model->headerData(sourceSection, orientation, role);return d->model->headerData(sourceSection, orientation, role);Executed by:
executed 2251 times by 9 tests: return d->model->headerData(sourceSection, orientation, role);Executed by:
| 2251 | ||||||||||||
| 150 | } | - | ||||||||||||
| 151 | - | |||||||||||||
| 152 | - | |||||||||||||
| 153 | - | |||||||||||||
| 154 | - | |||||||||||||
| 155 | QMap<int, QVariant> QAbstractProxyModel::itemData(const QModelIndex &proxyIndex) const | - | ||||||||||||
| 156 | { | - | ||||||||||||
| 157 | return executed 51 times by 5 tests: QAbstractItemModel::itemData(proxyIndex);return QAbstractItemModel::itemData(proxyIndex);Executed by:
executed 51 times by 5 tests: return QAbstractItemModel::itemData(proxyIndex);Executed by:
| 51 | ||||||||||||
| 158 | } | - | ||||||||||||
| 159 | - | |||||||||||||
| 160 | - | |||||||||||||
| 161 | - | |||||||||||||
| 162 | - | |||||||||||||
| 163 | Qt::ItemFlags QAbstractProxyModel::flags(const QModelIndex &index) const | - | ||||||||||||
| 164 | { | - | ||||||||||||
| 165 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 166 | return executed 665 times by 8 tests: d->model->flags(mapToSource(index));return d->model->flags(mapToSource(index));Executed by:
executed 665 times by 8 tests: return d->model->flags(mapToSource(index));Executed by:
| 665 | ||||||||||||
| 167 | } | - | ||||||||||||
| 168 | - | |||||||||||||
| 169 | - | |||||||||||||
| 170 | - | |||||||||||||
| 171 | - | |||||||||||||
| 172 | bool QAbstractProxyModel::setData(const QModelIndex &index, const QVariant &value, int role) | - | ||||||||||||
| 173 | { | - | ||||||||||||
| 174 | QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 175 | return never executed: d->model->setData(mapToSource(index), value, role);return d->model->setData(mapToSource(index), value, role);never executed: return d->model->setData(mapToSource(index), value, role); | 0 | ||||||||||||
| 176 | } | - | ||||||||||||
| 177 | - | |||||||||||||
| 178 | - | |||||||||||||
| 179 | - | |||||||||||||
| 180 | - | |||||||||||||
| 181 | bool QAbstractProxyModel::setItemData(const QModelIndex &index, const QMap< int, QVariant >& roles) | - | ||||||||||||
| 182 | { | - | ||||||||||||
| 183 | return executed 3 times by 1 test: QAbstractItemModel::setItemData(index, roles);return QAbstractItemModel::setItemData(index, roles);Executed by:
executed 3 times by 1 test: return QAbstractItemModel::setItemData(index, roles);Executed by:
| 3 | ||||||||||||
| 184 | } | - | ||||||||||||
| 185 | - | |||||||||||||
| 186 | - | |||||||||||||
| 187 | - | |||||||||||||
| 188 | - | |||||||||||||
| 189 | bool QAbstractProxyModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role) | - | ||||||||||||
| 190 | { | - | ||||||||||||
| 191 | QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 192 | int sourceSection; | - | ||||||||||||
| 193 | if (orientation == Qt::Horizontal
| 10-92 | ||||||||||||
| 194 | const QModelIndex proxyIndex = index(0, section); | - | ||||||||||||
| 195 | sourceSection = mapToSource(proxyIndex).column(); | - | ||||||||||||
| 196 | } executed 92 times by 3 tests: else {end of blockExecuted by:
| 92 | ||||||||||||
| 197 | const QModelIndex proxyIndex = index(section, 0); | - | ||||||||||||
| 198 | sourceSection = mapToSource(proxyIndex).row(); | - | ||||||||||||
| 199 | } executed 10 times by 1 test: end of blockExecuted by:
| 10 | ||||||||||||
| 200 | return executed 102 times by 3 tests: d->model->setHeaderData(sourceSection, orientation, value, role);return d->model->setHeaderData(sourceSection, orientation, value, role);Executed by:
executed 102 times by 3 tests: return d->model->setHeaderData(sourceSection, orientation, value, role);Executed by:
| 102 | ||||||||||||
| 201 | } | - | ||||||||||||
| 202 | - | |||||||||||||
| 203 | - | |||||||||||||
| 204 | - | |||||||||||||
| 205 | - | |||||||||||||
| 206 | QModelIndex QAbstractProxyModel::buddy(const QModelIndex &index) const | - | ||||||||||||
| 207 | { | - | ||||||||||||
| 208 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 209 | return executed 97 times by 3 tests: mapFromSource(d->model->buddy(mapToSource(index)));return mapFromSource(d->model->buddy(mapToSource(index)));Executed by:
executed 97 times by 3 tests: return mapFromSource(d->model->buddy(mapToSource(index)));Executed by:
| 97 | ||||||||||||
| 210 | } | - | ||||||||||||
| 211 | - | |||||||||||||
| 212 | - | |||||||||||||
| 213 | - | |||||||||||||
| 214 | - | |||||||||||||
| 215 | bool QAbstractProxyModel::canFetchMore(const QModelIndex &parent) const | - | ||||||||||||
| 216 | { | - | ||||||||||||
| 217 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 218 | return executed 50 times by 4 tests: d->model->canFetchMore(mapToSource(parent));return d->model->canFetchMore(mapToSource(parent));Executed by:
executed 50 times by 4 tests: return d->model->canFetchMore(mapToSource(parent));Executed by:
| 50 | ||||||||||||
| 219 | } | - | ||||||||||||
| 220 | - | |||||||||||||
| 221 | - | |||||||||||||
| 222 | - | |||||||||||||
| 223 | - | |||||||||||||
| 224 | void QAbstractProxyModel::fetchMore(const QModelIndex &parent) | - | ||||||||||||
| 225 | { | - | ||||||||||||
| 226 | QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 227 | d->model->fetchMore(mapToSource(parent)); | - | ||||||||||||
| 228 | } never executed: end of block | 0 | ||||||||||||
| 229 | - | |||||||||||||
| 230 | - | |||||||||||||
| 231 | - | |||||||||||||
| 232 | - | |||||||||||||
| 233 | void QAbstractProxyModel::sort(int column, Qt::SortOrder order) | - | ||||||||||||
| 234 | { | - | ||||||||||||
| 235 | QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 236 | d->model->sort(column, order); | - | ||||||||||||
| 237 | } never executed: end of block | 0 | ||||||||||||
| 238 | - | |||||||||||||
| 239 | - | |||||||||||||
| 240 | - | |||||||||||||
| 241 | - | |||||||||||||
| 242 | QSize QAbstractProxyModel::span(const QModelIndex &index) const | - | ||||||||||||
| 243 | { | - | ||||||||||||
| 244 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 245 | return never executed: d->model->span(mapToSource(index));return d->model->span(mapToSource(index));never executed: return d->model->span(mapToSource(index)); | 0 | ||||||||||||
| 246 | } | - | ||||||||||||
| 247 | - | |||||||||||||
| 248 | - | |||||||||||||
| 249 | - | |||||||||||||
| 250 | - | |||||||||||||
| 251 | bool QAbstractProxyModel::hasChildren(const QModelIndex &parent) const | - | ||||||||||||
| 252 | { | - | ||||||||||||
| 253 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 254 | return executed 97 times by 1 test: d->model->hasChildren(mapToSource(parent));return d->model->hasChildren(mapToSource(parent));Executed by:
executed 97 times by 1 test: return d->model->hasChildren(mapToSource(parent));Executed by:
| 97 | ||||||||||||
| 255 | } | - | ||||||||||||
| 256 | - | |||||||||||||
| 257 | - | |||||||||||||
| 258 | - | |||||||||||||
| 259 | - | |||||||||||||
| 260 | QModelIndex QAbstractProxyModel::sibling(int row, int column, const QModelIndex &idx) const | - | ||||||||||||
| 261 | { | - | ||||||||||||
| 262 | return executed 62 times by 3 tests: index(row, column, idx.parent());return index(row, column, idx.parent());Executed by:
executed 62 times by 3 tests: return index(row, column, idx.parent());Executed by:
| 62 | ||||||||||||
| 263 | } | - | ||||||||||||
| 264 | - | |||||||||||||
| 265 | - | |||||||||||||
| 266 | - | |||||||||||||
| 267 | - | |||||||||||||
| 268 | QMimeData* QAbstractProxyModel::mimeData(const QModelIndexList &indexes) const | - | ||||||||||||
| 269 | { | - | ||||||||||||
| 270 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 271 | QModelIndexList list; | - | ||||||||||||
| 272 | list.reserve(indexes.count()); | - | ||||||||||||
| 273 | for (QForeachContainer<typename QtPrivate::remove_reference<decltype(indexes)>::type> _container_((indexes)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QModelIndex &index = *_container_.i; _container_.control; _container_.control = 0) | - | ||||||||||||
| 274 | list << mapToSource(index); never executed: list << mapToSource(index); | 0 | ||||||||||||
| 275 | return never executed: d->model->mimeData(list);return d->model->mimeData(list);never executed: return d->model->mimeData(list); | 0 | ||||||||||||
| 276 | } | - | ||||||||||||
| 277 | - | |||||||||||||
| 278 | void QAbstractProxyModelPrivate::mapDropCoordinatesToSource(int row, int column, const QModelIndex &parent, | - | ||||||||||||
| 279 | int *sourceRow, int *sourceColumn, QModelIndex *sourceParent) const | - | ||||||||||||
| 280 | { | - | ||||||||||||
| 281 | const QAbstractProxyModel * const q = q_func(); | - | ||||||||||||
| 282 | *sourceRow = -1; | - | ||||||||||||
| 283 | *sourceColumn = -1; | - | ||||||||||||
| 284 | if (row == -1
| 0-10 | ||||||||||||
| 285 | *sourceParent = q->mapToSource(parent); | - | ||||||||||||
| 286 | } executed 10 times by 1 test: else if (row == q->rowCount(parent)end of blockExecuted by:
| 0-10 | ||||||||||||
| 287 | *sourceParent = q->mapToSource(parent); | - | ||||||||||||
| 288 | *sourceRow = model->rowCount(*sourceParent); | - | ||||||||||||
| 289 | } never executed: else {end of block | 0 | ||||||||||||
| 290 | QModelIndex proxyIndex = q->index(row, column, parent); | - | ||||||||||||
| 291 | QModelIndex sourceIndex = q->mapToSource(proxyIndex); | - | ||||||||||||
| 292 | *sourceRow = sourceIndex.row(); | - | ||||||||||||
| 293 | *sourceColumn = sourceIndex.column(); | - | ||||||||||||
| 294 | *sourceParent = sourceIndex.parent(); | - | ||||||||||||
| 295 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||
| 296 | } | - | ||||||||||||
| 297 | - | |||||||||||||
| 298 | - | |||||||||||||
| 299 | - | |||||||||||||
| 300 | - | |||||||||||||
| 301 | - | |||||||||||||
| 302 | bool QAbstractProxyModel::canDropMimeData(const QMimeData *data, Qt::DropAction action, | - | ||||||||||||
| 303 | int row, int column, const QModelIndex &parent) const | - | ||||||||||||
| 304 | { | - | ||||||||||||
| 305 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 306 | int sourceDestinationRow; | - | ||||||||||||
| 307 | int sourceDestinationColumn; | - | ||||||||||||
| 308 | QModelIndex sourceParent; | - | ||||||||||||
| 309 | d->mapDropCoordinatesToSource(row, column, parent, &sourceDestinationRow, &sourceDestinationColumn, &sourceParent); | - | ||||||||||||
| 310 | return executed 11 times by 1 test: d->model->canDropMimeData(data, action, sourceDestinationRow, sourceDestinationColumn, sourceParent);return d->model->canDropMimeData(data, action, sourceDestinationRow, sourceDestinationColumn, sourceParent);Executed by:
executed 11 times by 1 test: return d->model->canDropMimeData(data, action, sourceDestinationRow, sourceDestinationColumn, sourceParent);Executed by:
| 11 | ||||||||||||
| 311 | } | - | ||||||||||||
| 312 | - | |||||||||||||
| 313 | - | |||||||||||||
| 314 | - | |||||||||||||
| 315 | - | |||||||||||||
| 316 | - | |||||||||||||
| 317 | bool QAbstractProxyModel::dropMimeData(const QMimeData *data, Qt::DropAction action, | - | ||||||||||||
| 318 | int row, int column, const QModelIndex &parent) | - | ||||||||||||
| 319 | { | - | ||||||||||||
| 320 | QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 321 | int sourceDestinationRow; | - | ||||||||||||
| 322 | int sourceDestinationColumn; | - | ||||||||||||
| 323 | QModelIndex sourceParent; | - | ||||||||||||
| 324 | d->mapDropCoordinatesToSource(row, column, parent, &sourceDestinationRow, &sourceDestinationColumn, &sourceParent); | - | ||||||||||||
| 325 | return executed 1 time by 1 test: d->model->dropMimeData(data, action, sourceDestinationRow, sourceDestinationColumn, sourceParent);return d->model->dropMimeData(data, action, sourceDestinationRow, sourceDestinationColumn, sourceParent);Executed by:
executed 1 time by 1 test: return d->model->dropMimeData(data, action, sourceDestinationRow, sourceDestinationColumn, sourceParent);Executed by:
| 1 | ||||||||||||
| 326 | } | - | ||||||||||||
| 327 | - | |||||||||||||
| 328 | - | |||||||||||||
| 329 | - | |||||||||||||
| 330 | - | |||||||||||||
| 331 | QStringList QAbstractProxyModel::mimeTypes() const | - | ||||||||||||
| 332 | { | - | ||||||||||||
| 333 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 334 | return executed 1 time by 1 test: d->model->mimeTypes();return d->model->mimeTypes();Executed by:
executed 1 time by 1 test: return d->model->mimeTypes();Executed by:
| 1 | ||||||||||||
| 335 | } | - | ||||||||||||
| 336 | - | |||||||||||||
| 337 | - | |||||||||||||
| 338 | - | |||||||||||||
| 339 | - | |||||||||||||
| 340 | Qt::DropActions QAbstractProxyModel::supportedDragActions() const | - | ||||||||||||
| 341 | { | - | ||||||||||||
| 342 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 343 | return executed 1 time by 1 test: d->model->supportedDragActions();return d->model->supportedDragActions();Executed by:
executed 1 time by 1 test: return d->model->supportedDragActions();Executed by:
| 1 | ||||||||||||
| 344 | } | - | ||||||||||||
| 345 | - | |||||||||||||
| 346 | - | |||||||||||||
| 347 | - | |||||||||||||
| 348 | - | |||||||||||||
| 349 | Qt::DropActions QAbstractProxyModel::supportedDropActions() const | - | ||||||||||||
| 350 | { | - | ||||||||||||
| 351 | const QAbstractProxyModelPrivate * const d = d_func(); | - | ||||||||||||
| 352 | return executed 1 time by 1 test: d->model->supportedDropActions();return d->model->supportedDropActions();Executed by:
executed 1 time by 1 test: return d->model->supportedDropActions();Executed by:
| 1 | ||||||||||||
| 353 | } | - | ||||||||||||
| 354 | - | |||||||||||||
| 355 | - | |||||||||||||
| 356 | - | |||||||||||||
| Switch to Source code | Preprocessed file |