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

Method setDeferredHidden

ui/deferredtreeview.cpp:117–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void 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
135bool DeferredTreeView::expandNewContent() const
136{

Callers 4

setObjectBaseNameMethod · 0.80
hasValuesChangedMethod · 0.80
ResourceBrowserWidgetMethod · 0.80
StandardPathsWidgetMethod · 0.80

Calls 2

endMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected