Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 99 → Rev 100

/trunk/DBViewer/mainwindow.cpp
327,6 → 327,9
 
}
 
 
 
 
}
 
 
369,10 → 372,30
}
 
void MainWindow::addChildsItems(QTreeWidgetItem *perent_class_item){ // äîáîâëÿåì ê ýëåìåíòó äåðåâà â êà÷åñòâå äî÷åðíèõ ýëåìåíòîâ âñå êëàññû, äëÿ êîòîðûõ êëàññ ýëåìåíòà ÿâëÿåòñÿ êîíòåéíåðîì
QStringList chields_list;
QString parent_ID;
QTreeWidgetItem *Item_tmp;
parent_ID = perent_class_item->text(1);
int chields_count, i;
 
chields_list = MainWindow::classChields(parent_ID);
if(chields_list.isEmpty()) return;
chields_count = chields_list.size();
for (int l = 0; l < chields_count; ++l){
QString chield_class_name, chield_id;
chield_id = chields_list.at(l);
chield_class_name = MainWindow::ClassName(chield_id);
Item_tmp = new QTreeWidgetItem(perent_class_item);
Item_tmp->setText(0, chield_class_name);
Item_tmp->setText(1, chield_id);
Item_tmp->setCheckState(0, Qt::Checked);
}
 
i++;
 
}
 
 
/********************************************************
* Ôóíêöèÿ âîçâðàùàåò ñïèñîê "äî÷åðíèõ" êëàññîâ
*