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

Method setCategory

src/frontend/datasources/ImportDatasetWidget.cpp:458–465  ·  view source on GitHub ↗

* @brief Sets the currently selected category * @param category the name of the category */

Source from the content-addressed store, hash-verified

456 * @param category the name of the category
457 */
458void 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

Callers 1

datasetClickedMethod · 0.45

Calls 1

textMethod · 0.45

Tested by

no test coverage detected