* @brief Resolves a positional groupId to its Group.uniqueId; returns -1 if absent. */
| 611 | * @brief Resolves a positional groupId to its Group.uniqueId; returns -1 if absent. |
| 612 | */ |
| 613 | int UI::Dashboard::groupUniqueIdForGroupId(int groupId) const |
| 614 | { |
| 615 | if (groupId < 0) |
| 616 | return -1; |
| 617 | |
| 618 | for (const auto& group : m_lastFrame.groups) |
| 619 | if (group.groupId == groupId) |
| 620 | return group.uniqueId; |
| 621 | |
| 622 | return -1; |
| 623 | } |
| 624 | |
| 625 | //-------------------------------------------------------------------------------------------------- |
| 626 | // Dataset & group access functions |
no outgoing calls
no test coverage detected