MCPcopy Create free account
hub / github.com/KDE/labplot / updateSubcategories

Method updateSubcategories

src/frontend/datasources/DatasetMetadataManagerWidget.cpp:323–330  ·  view source on GitHub ↗

* @brief Updates content of cbSubcategory based on current category. */

Source from the content-addressed store, hash-verified

321 * @brief Updates content of cbSubcategory based on current category.
322 */
323void 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.

Callers

nothing calls this directly

Calls 5

currentTextMethod · 0.80
categoriesMethod · 0.80
subcategoriesMethod · 0.80
clearMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected