* @brief Sets the currently selected subcategory * @param subcategory the name of the subcategory */
| 469 | * @param subcategory the name of the subcategory |
| 470 | */ |
| 471 | void ImportDatasetWidget::setSubcategory(const QString& subcategory) { |
| 472 | for (int i = 0; i < ui.twCategories->topLevelItemCount(); i++) { |
| 473 | if (ui.twCategories->topLevelItem(i)->text(0).compare(m_category) == 0) { |
| 474 | QTreeWidgetItem* categoryItem = ui.twCategories->topLevelItem(i); |
| 475 | for (int j = 0; j < categoryItem->childCount(); j++) { |
| 476 | if (categoryItem->child(j)->text(0).compare(subcategory) == 0) { |
| 477 | updateDatasets(categoryItem->child(j)); |
| 478 | break; |
| 479 | } |
| 480 | } |
| 481 | break; |
| 482 | } |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | /** |
| 487 | * @brief Sets the currently selected dataset |
no test coverage detected