* @brief Sets the currently selected category * @param category the name of the category */
| 456 | * @param category the name of the category |
| 457 | */ |
| 458 | void ImportDatasetWidget::setCategory(const QString& category) { |
| 459 | for (int i = 0; i < ui.twCategories->topLevelItemCount(); i++) { |
| 460 | if (ui.twCategories->topLevelItem(i)->text(0).compare(category) == 0) { |
| 461 | updateDatasets(ui.twCategories->topLevelItem(i)); |
| 462 | break; |
| 463 | } |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | /** |
| 468 | * @brief Sets the currently selected subcategory |