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

Method GetMaxNameLength

qrenderdoc/Windows/EventBrowser.cpp:5482–5496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5480}
5481
5482void EventBrowser::GetMaxNameLength(int &maxNameLength, int indent, bool firstchild,
5483 const QModelIndex &idx)
5484{
5485 QString nameString = GetExportString(indent, firstchild, idx);
5486
5487 maxNameLength = qMax(maxNameLength, nameString.count());
5488
5489 firstchild = true;
5490
5491 for(int i = 0, rowCount = idx.model()->rowCount(idx); i < rowCount; i++)
5492 {
5493 GetMaxNameLength(maxNameLength, indent + 1, firstchild, idx.child(i, COL_NAME));
5494 firstchild = false;
5495 }
5496}
5497
5498void EventBrowser::ExportAction(QTextStream &writer, int maxNameLength, int indent, bool firstchild,
5499 const QModelIndex &idx)

Callers

nothing calls this directly

Calls 4

countMethod · 0.45
rowCountMethod · 0.45
modelMethod · 0.45
childMethod · 0.45

Tested by

no test coverage detected