void ProjectTreeViewBase::addSubItems() { for (int i = 0; i < item.getNumChildren(); ++i) { ProjectTreeViewBase* p = createSubItem (item.getChild(i)); if (p != nullptr) addSubItem (p); } }
void CatalogView::addSubWidgetByColumn(int rows, int cols) { ContentView * p = 0; int index = 0; for (int j = 0; j < cols; ++j) { for (int i = 0; i < rows; ++i) { if (index < sub_items_.size()) { p = sub_items_.at(index); layout_.addWidget(p, i, j); p->show(); } else { p = createSubItem(); layout_.addWidget(p, i, j); } ++index; } } }