| 199 | } |
| 200 | |
| 201 | void 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 | } |
nothing calls this directly
no test coverage detected