MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / index

Method index

src/modlistbypriorityproxy.cpp:393–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393QModelIndex 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
410void ModListByPriorityProxy::onDropEnter(const QMimeData*, bool dropExpanded,
411 ModListView::DropPosition dropPosition)

Callers 1

mapToSourceMethod · 0.45

Calls 2

QModelIndexClass · 0.85
isValidMethod · 0.45

Tested by

no test coverage detected