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

Method setDataset

src/frontend/datasources/ImportDatasetWidget.cpp:490–497  ·  view source on GitHub ↗

* @brief Sets the currently selected dataset * @param the currently selected dataset */

Source from the content-addressed store, hash-verified

488 * @param the currently selected dataset
489 */
490void ImportDatasetWidget::setDataset(const QString& datasetName) {
491 for (int i = 0; i < ui.lwDatasets->count(); i++) {
492 if (ui.lwDatasets->item(i)->text().compare(datasetName) == 0) {
493 ui.lwDatasets->item(i)->setSelected(true);
494 break;
495 }
496 }
497}
498
499/**
500 * @brief Updates the details of the currently selected dataset

Callers 1

datasetClickedMethod · 0.80

Calls 3

countMethod · 0.45
textMethod · 0.45
setSelectedMethod · 0.45

Tested by

no test coverage detected