MCPcopy Create free account
hub / github.com/SOUI2/soui / OnDataSetChanged

Method OnDataSetChanged

SOUI/src/helper/SListViewItemLocator.cpp:223–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 }
222
223 void SListViewItemLocatorFlex::OnDataSetChanged()
224 {
225 Clear();
226 if(m_adapter)
227 {
228 int nTreeSize = m_adapter->getCount();
229 int nBranchSize = SEGMENT_SIZE;
230 int nTreeDeep = GetIndexDeep();
231 for(int i=0;i<nTreeDeep;i++)
232 nBranchSize *= INDEX_WIDTH;
233 InitIndex(STVI_ROOT,nTreeSize,nBranchSize);
234 }
235 }
236
237 void SListViewItemLocatorFlex::InitIndex(HSTREEITEM hParent,int nItems,int nBranchSize)
238 {

Callers 3

onDataSetChangedMethod · 0.80
onDataSetChangedMethod · 0.80
onDataSetChangedMethod · 0.80

Calls 2

ClearFunction · 0.50
getCountMethod · 0.45

Tested by

no test coverage detected