Редакция 107 | Редакция 109 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 107 | Редакция 108 | ||
---|---|---|---|
Строка 616... | Строка 616... | ||
616 | 616 | ||
617 | 617 | ||
618 | void MainWindow::on_treeWidget_itemClicked ( QTreeWidgetItem * item, int column ){ |
618 | void MainWindow::on_treeWidget_itemClicked ( QTreeWidgetItem * item, int column ){ |
619 | int i; |
619 | int i; |
620 | i++; |
620 | i++; |
621 | if (root_items_list.indexOf(item) != -1) ui->comboBox->setEnabled(true); |
621 | if (root_items_list.indexOf(item) != -1) { |
- | 622 | QStringList classesNameList;
|
|
- | 623 | QStringList classesID_list;
|
|
622 | 624 | ||
- | 625 | int index; |
|
- | 626 | classesID_list = class_list_map.keys(); |
|
- | 627 | classesNameList = class_list_map.values(); |
|
- | 628 | index = classesID_list.indexOf(item->child(0)->text(1)); |
|
- | 629 | ui->comboBox->setCurrentIndex(index); |
|
- | 630 | ||
- | 631 | ui->comboBox->setEnabled(true); |
|
- | 632 | ||
- | 633 | ||
- | 634 | ||
- | 635 | }
|
|
623 | // if ((rootItem1) == (item) ) ui->comboBox->setEnabled(true);
|
636 | // if ((rootItem1) == (item) ) ui->comboBox->setEnabled(true);
|
624 | else ( ui->comboBox->setEnabled(false)); |
637 | else ( ui->comboBox->setEnabled(false)); |
625 | }
|
638 | }
|