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

Method rowCount

qrenderdoc/Windows/PixelHistoryView.cpp:126–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 return createIndex(eventRow, 0, makeTag(eventRow, QModelIndex()));
125 }
126 int rowCount(const QModelIndex &parent = QModelIndex()) const override
127 {
128 if(m_Loading)
129 return parent.isValid() ? 0 : 1;
130
131 if(!parent.isValid())
132 return m_History.count();
133
134 if(isEvent(parent))
135 {
136 const QList<PixelModification> &mods = getMods(parent);
137 const ActionDescription *action = m_Ctx.GetAction(mods.front().eventId);
138
139 if(action && action->flags & (ActionFlags::Clear | ActionFlags::PassBoundary))
140 return 0;
141
142 return mods.count();
143 }
144
145 return 0;
146 }
147 int columnCount(const QModelIndex &parent = QModelIndex()) const override { return 5; }
148 Qt::ItemFlags flags(const QModelIndex &index) const override
149 {

Callers

nothing calls this directly

Calls 5

QModelIndexClass · 0.50
isValidMethod · 0.45
countMethod · 0.45
GetActionMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected