* @brief Maps each group title to its folder path (empty at top level) for report selection. */
| 6042 | * @brief Maps each group title to its folder path (empty at top level) for report selection. |
| 6043 | */ |
| 6044 | QVariantMap 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. |
nothing calls this directly
no test coverage detected