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

Method datasets

src/frontend/DatasetModel.cpp:142–147  ·  view source on GitHub ↗

* @brief Returns the list of datasets of a given collection, category and subcategory. */

Source from the content-addressed store, hash-verified

140 * @brief Returns the list of datasets of a given collection, category and subcategory.
141 */
142QStringList DatasetModel::datasets(const QString& collection, const QString& category, const QString& subcategory) {
143 if (!collection.isEmpty())
144 return m_datasets[collection][category][subcategory];
145 else
146 return allDatasets(category, subcategory).toStringList();
147}
148
149/**
150 * @brief Returns the number of datasets belonging to the given collection

Callers 3

collectionChangedMethod · 0.80
updateCategoriesMethod · 0.80
addDatasetItemsMethod · 0.80

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected