MCPcopy Create free account
hub / github.com/LongSoft/UEFITool / index

Method index

treemodel.cpp:82–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82QModelIndex TreeModel::index(int row, int column, const QModelIndex &parent)
83const
84{
85 if (!hasIndex(row, column, parent))
86 return QModelIndex();
87
88 TreeItem *parentItem;
89
90 if (!parent.isValid())
91 parentItem = rootItem;
92 else
93 parentItem = static_cast<TreeItem*>(parent.internalPointer());
94
95 TreeItem *childItem = parentItem->child(row);
96 if (childItem)
97 return createIndex(row, column, childItem);
98 else
99 return QModelIndex();
100}
101
102QModelIndex TreeModel::parent(const QModelIndex &index) const
103{

Callers 8

setActionMethod · 0.95
setDictionarySizeMethod · 0.95
reconstructImageFileMethod · 0.45
searchMethod · 0.45
scrollTreeViewMethod · 0.45
patchFromFileMethod · 0.45
patchFromArgMethod · 0.45
replaceMethod · 0.45

Calls 1

childMethod · 0.80

Tested by

no test coverage detected