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

Method updateCategories

src/frontend/datasources/DatasetMetadataManagerWidget.cpp:312–318  ·  view source on GitHub ↗

* @brief Updates content of cbCategory based on current collection. */

Source from the content-addressed store, hash-verified

310 * @brief Updates content of cbCategory based on current collection.
311 */
312void DatasetMetadataManagerWidget::updateCategories(const QString& collection) {
313 ui.cbCategory->clear();
314 if (m_datasetModel->collections().contains(collection))
315 ui.cbCategory->addItems(m_datasetModel->categories(collection));
316
317 Q_EMIT checkOk();
318}
319
320/**
321 * @brief Updates content of cbSubcategory based on current category.

Callers

nothing calls this directly

Calls 4

collectionsMethod · 0.80
categoriesMethod · 0.80
clearMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected