Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 107 → Rev 108

/trunk/DBViewer/mainwindow.cpp
618,8 → 618,21
void MainWindow::on_treeWidget_itemClicked ( QTreeWidgetItem * item, int column ){
int i;
i++;
if (root_items_list.indexOf(item) != -1) ui->comboBox->setEnabled(true);
if (root_items_list.indexOf(item) != -1) {
QStringList classesNameList;
QStringList classesID_list;
 
int index;
classesID_list = class_list_map.keys();
classesNameList = class_list_map.values();
index = classesID_list.indexOf(item->child(0)->text(1));
ui->comboBox->setCurrentIndex(index);
 
ui->comboBox->setEnabled(true);
 
 
 
}
// if ((rootItem1) == (item) ) ui->comboBox->setEnabled(true);
else ( ui->comboBox->setEnabled(false));
}