MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / nodeFromIndex

Method nodeFromIndex

src/document/UBDocumentController.cpp:1468–1475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1466}
1467
1468UBDocumentTreeNode *UBDocumentTreeModel::nodeFromIndex(const QModelIndex &pIndex) const
1469{
1470 if (pIndex.isValid()) {
1471 return static_cast<UBDocumentTreeNode*>(pIndex.internalPointer());
1472 } else {
1473 return mRootNode;
1474 }
1475}
1476
1477bool UBDocumentTreeModel::nodeLessThan(const UBDocumentTreeNode *firstIndex, const UBDocumentTreeNode *secondIndex)
1478{

Callers 6

persistMethod · 0.80
saveFoldersTreeToXmlMethod · 0.80
createEditorMethod · 0.80
deleteMultipleItemsMethod · 0.80
deleteSingleItemMethod · 0.80
moveIndexesToTrashMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected