MCPcopy Create free account
hub / github.com/baldurk/renderdoc / parent

Method parent

qrenderdoc/Windows/Dialogs/ConfigEditor.cpp:101–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 QModelIndex parent(const QModelIndex &index) const override
102 {
103 SDObject *o = obj(index);
104
105 if(o == m_Viewer->m_Config)
106 return QModelIndex();
107
108 QModelIndex ret = parents[o];
109
110 if(!ret.isValid())
111 return ret;
112
113 return createIndex(ret.row(), index.column(), ret.internalPointer());
114 }
115
116 int rowCount(const QModelIndex &parent = QModelIndex()) const override
117 {

Callers 4

on_deleteHost_clickedMethod · 0.45
expandToNodeMethod · 0.45

Calls 5

createIndexFunction · 0.85
QModelIndexClass · 0.50
isValidMethod · 0.45
rowMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected