MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / groupFolderPaths

Method groupFolderPaths

app/src/DataModel/ProjectEditor.cpp:6044–6058  ·  view source on GitHub ↗

* @brief Maps each group title to its folder path (empty at top level) for report selection. */

Source from the content-addressed store, hash-verified

6042 * @brief Maps each group title to its folder path (empty at top level) for report selection.
6043 */
6044QVariantMap DataModel::ProjectEditor::groupFolderPaths() const
6045{
6046 const auto& pm = DataModel::ProjectModel::instance();
6047 const auto& folders = pm.editorGroupFolders();
6048 const auto& groups = pm.groups();
6049
6050 QVariantMap out;
6051 for (const auto& g : groups) {
6052 const QString path =
6053 (g.parentFolderId != -1) ? folderDisplayPath(folders, g.parentFolderId) : QString();
6054 out.insert(g.title, path);
6055 }
6056
6057 return out;
6058}
6059
6060/**
6061 * @brief Returns the nested table folder hierarchy for the cascading "Move to Folder" menu.

Callers

nothing calls this directly

Calls 1

folderDisplayPathFunction · 0.85

Tested by

no test coverage detected