| 115 | } |
| 116 | |
| 117 | void DeferredTreeView::setDeferredHidden(int logicalIndex, bool hidden) |
| 118 | { |
| 119 | auto it = m_sectionsProperties.find(logicalIndex); |
| 120 | |
| 121 | if (it != m_sectionsProperties.end()) { |
| 122 | (*it).hidden = hidden; |
| 123 | } else { |
| 124 | DeferredHeaderProperties properties; |
| 125 | properties.hidden = hidden ? 1 : 0; |
| 126 | m_sectionsProperties[logicalIndex] = properties; |
| 127 | } |
| 128 | |
| 129 | if (logicalIndex < header()->count()) { |
| 130 | header()->setSectionHidden(logicalIndex, hidden); |
| 131 | m_sectionsProperties[logicalIndex].initialized = true; |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | bool DeferredTreeView::expandNewContent() const |
| 136 | { |
no test coverage detected