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

Method timeout

ui/deferredtreeview.cpp:201–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void DeferredTreeView::timeout()
202{
203 const QModelIndex selectedRow = selectionModel()->selectedRows().value(0);
204
205 if (m_allExpanded) {
206 for (auto it = m_insertedRows.constBegin(), end = m_insertedRows.constEnd(); it != end;
207 ++it) {
208 if (it->isValid())
209 expand(*it);
210 }
211 } else {
212 m_allExpanded = true;
213 expandAll();
214 }
215
216 m_insertedRows.clear();
217
218 if (selectedRow.isValid())
219 scrollTo(selectedRow);
220
221 emit newContentExpanded();
222}

Callers

nothing calls this directly

Calls 5

valueMethod · 0.45
constBeginMethod · 0.45
constEndMethod · 0.45
isValidMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected