void UIListTreeType::RefreshCurrentLevel(void) { if (currentlevel) { UIListBtnType::iterator it = currentlevel->begin(); for (; it != currentlevel->end(); ++it) { UIListGenericTree *ui = (UIListGenericTree*)((*it)->getData()); ui->setActive(ui->getActive()); } } }
void UIListTreeType::RefreshCurrentLevel(void) { if (currentlevel) { QPtrListIterator<UIListBtnTypeItem> it = currentlevel->GetIterator(); UIListBtnTypeItem *item; while ((item = it.current())) { UIListGenericTree *ui = (UIListGenericTree *)item->getData(); ui->setActive(ui->getActive()); ++it; } } }