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

Method initCategories

src/frontend/DatasetModel.cpp:40–50  ·  view source on GitHub ↗

* @brief Initializes the list of categories. */

Source from the content-addressed store, hash-verified

38 * @brief Initializes the list of categories.
39 */
40void DatasetModel::initCategories(const QMap<QString, QMap<QString, QMap<QString, QVector<QString>>>>& datasetMap) {
41 for (auto i = datasetMap.begin(); i != datasetMap.end(); ++i) {
42 m_categories[i.key()] = i.value().keys();
43
44 for (auto it = i.value().constBegin(); it != i.value().constEnd(); ++it) {
45 const QString& category = it.key();
46 if (!m_allCategories.contains(category))
47 m_allCategories.append(category);
48 }
49 }
50}
51
52/**
53 * @brief Initializes the list of subcategories.

Callers

nothing calls this directly

Calls 5

appendMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
valueMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected