| 391 | } |
| 392 | |
| 393 | QModelIndex ModListByPriorityProxy::index(int row, int column, |
| 394 | const QModelIndex& parent) const |
| 395 | { |
| 396 | if (!hasIndex(row, column, parent)) { |
| 397 | return QModelIndex(); |
| 398 | } |
| 399 | |
| 400 | const TreeItem* parentItem; |
| 401 | if (!parent.isValid()) { |
| 402 | parentItem = &m_Root; |
| 403 | } else { |
| 404 | parentItem = static_cast<TreeItem*>(parent.internalPointer()); |
| 405 | } |
| 406 | |
| 407 | return createIndex(row, column, parentItem->children[row]); |
| 408 | } |
| 409 | |
| 410 | void ModListByPriorityProxy::onDropEnter(const QMimeData*, bool dropExpanded, |
| 411 | ModListView::DropPosition dropPosition) |
no test coverage detected