* @brief Updates content of cbSubcategory based on current category. */
| 321 | * @brief Updates content of cbSubcategory based on current category. |
| 322 | */ |
| 323 | void DatasetMetadataManagerWidget::updateSubcategories(const QString& category) { |
| 324 | ui.cbSubcategory->clear(); |
| 325 | const QString collection = ui.cbCollection->currentText(); |
| 326 | if (m_datasetModel->categories(collection).contains(category)) |
| 327 | ui.cbSubcategory->addItems(m_datasetModel->subcategories(collection, category)); |
| 328 | |
| 329 | Q_EMIT checkOk(); |
| 330 | } |
| 331 | |
| 332 | /** |
| 333 | * @brief Updates the metadata file containing the categories, subcategories and datasets. |
nothing calls this directly
no test coverage detected