MCPcopy Create free account
hub / github.com/KDAB/GammaRay / index

Method index

plugins/widgetinspector/widget3dwindowmodel.cpp:66–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66QModelIndex Widget3DWindowModel::index(int row, int column, const QModelIndex &parent) const
67{
68 if (parent.isValid()) {
69 return QModelIndex();
70 }
71
72 if (row < 0 || row >= mNodes.size() || column != 0) {
73 return QModelIndex();
74 }
75
76 return createIndex(row, column, mNodes.at(row));
77}
78
79QModelIndex Widget3DWindowModel::parent(const QModelIndex &) const
80{

Callers 5

widgetSelectedMethod · 0.45
filterAcceptsRowMethod · 0.45
filterAcceptsRowMethod · 0.45
populateMethod · 0.45

Calls 3

QModelIndexClass · 0.70
isValidMethod · 0.45
sizeMethod · 0.45

Tested by 1

widgetSelectedMethod · 0.36